Skip to content

Commit 778da25

Browse files
author
Bruno Sutic
committed
Change internal script names
1 parent 7024154 commit 778da25

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- extract default keys and key options to `variables.sh` file
66
- require tmux version 1.9 or greater to use the plugin
77
- change all internal variable names (BREAKING CHANGE!)
8+
- change internal script names
89

910
### v1.0.0, 2014-11-09
1011
- improve `capture-pane`. It is now piped directly to the target file.

logging.tmux

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
source "$CURRENT_DIR/scripts/variables.sh"
66
source "$CURRENT_DIR/scripts/shared.sh"
77

8-
setup_pipe_pane_key_binding() {
8+
setup_logging_key_binding() {
99
local key=$(get_tmux_option "$logging_key_option" "$default_logging_key")
10-
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/tmux_proper_pipe_pane.sh"
10+
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/toggle_logging.sh"
1111
}
1212

1313
setup_pane_screenshot_key_binding() {
1414
local key=$(get_tmux_option "$pane_screen_capture_key_option" "$default_pane_screen_capture_key")
15-
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/tmux_pane_screenshot.sh"
15+
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/screen_capture.sh"
1616
}
1717

1818
setup_scrollback_dump_key_binding() {
1919
local key=$(get_tmux_option "$save_complete_history_key_option" "$default_save_complete_history_key")
20-
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/tmux_scrollback_dump.sh"
20+
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/save_complete_history.sh"
2121
}
2222

2323
setup_clear_scrollback_key_binding() {
2424
local key=$(get_tmux_option "$clear_history_key_option" "$default_clear_history_key")
25-
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/tmux_scrollback_clear.sh"
25+
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/clear_history.sh"
2626
}
2727

2828
main() {
29-
setup_pipe_pane_key_binding
29+
setup_logging_key_binding
3030
setup_pane_screenshot_key_binding
3131
setup_scrollback_dump_key_binding
3232
setup_clear_scrollback_key_binding
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

scripts/tmux_proper_pipe_pane.sh renamed to scripts/toggle_logging.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ get_log_name() {
2121

2222
start_pipe_pane() {
2323
local file="$(get_log_path)/$(get_log_name)"
24-
$CURRENT_DIR/tmux_start_pipe_pane.sh "$file"
24+
"$CURRENT_DIR/start_logging.sh" "$file"
2525
display_message "Started logging to $file"
2626
}
2727

0 commit comments

Comments
 (0)