Skip to content

Commit 7024154

Browse files
author
Bruno Sutic
committed
Change all internal variable names
1 parent dc6da8f commit 7024154

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

CHANGELOG.md

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

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

logging.tmux

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ source "$CURRENT_DIR/scripts/variables.sh"
66
source "$CURRENT_DIR/scripts/shared.sh"
77

88
setup_pipe_pane_key_binding() {
9-
local key=$(get_tmux_option "$pipe_pane_key_option" "$default_pipe_pane_key")
9+
local key=$(get_tmux_option "$logging_key_option" "$default_logging_key")
1010
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/tmux_proper_pipe_pane.sh"
1111
}
1212

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

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

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

scripts/tmux_pane_screenshot.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66
default_path="$HOME"
77
default_name="tmux-screen-capture-#{session_name}-#{window_index}-#{pane_index}-%Y%m%dT%H%M%S.log"
88

9-
path_option="@screenshot_path"
10-
name_option="@screenshot_filename"
9+
path_option="@screen-capture-path"
10+
name_option="@screen-capture-filename"
1111

1212
source "$CURRENT_DIR/variables.sh"
1313
source "$CURRENT_DIR/shared.sh"

scripts/tmux_proper_pipe_pane.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
55
default_log_path="$HOME"
66
default_log_name="tmux-#{session_name}-#{window_index}-#{pane_index}-%Y%m%dT%H%M%S.log"
77

8-
log_path_option="@pipe_pane_path"
9-
log_name_option="@pipe_pane_filename"
8+
log_path_option="@logging-path"
9+
log_name_option="@logging-filename"
1010

1111
source "$CURRENT_DIR/variables.sh"
1212
source "$CURRENT_DIR/shared.sh"

scripts/tmux_scrollback_dump.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66
default_path="$HOME"
77
default_name="tmux-history-#{session_name}-#{window_index}-#{pane_index}-%Y%m%dT%H%M%S.log"
88

9-
path_option="@scrollback_dump_path"
10-
name_option="@scrollback_dump_filename"
9+
path_option="@save-complete-history-path"
10+
name_option="@save-complete-history-filename"
1111

1212
source "$CURRENT_DIR/variables.sh"
1313
source "$CURRENT_DIR/shared.sh"

scripts/variables.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ SUPPORTED_VERSION="1.9"
22

33
# Key binding options and defaults
44

5-
pipe_pane_key_option="@pipe-pane-key"
6-
default_pipe_pane_key="P" # Shift-p
5+
logging_key_option="@logging-key"
6+
default_logging_key="P" # Shift-p
77

8-
pane_screenshot_key_option="@pane-screenshot-key"
9-
default_pane_screenshot_key="M-p" # Alt-p
8+
pane_screen_capture_key_option="@pane-screen-capture-key"
9+
default_pane_screen_capture_key="M-p" # Alt-p
1010

11-
scrollback_dump_key_option="@scrollback-dump-key"
12-
default_scrollback_dump_key="M-P" # Alt-Shift-p
11+
save_complete_history_key_option="@save-complete-history-key"
12+
default_save_complete_history_key="M-P" # Alt-Shift-p
1313

14-
clear_scrollback_key_option="@scrollback-clear-key"
15-
default_clear_scrollback_key="M-c" # Alt-c
14+
clear_history_key_option="@pane-clear-history-key"
15+
default_clear_history_key="M-c" # Alt-c

0 commit comments

Comments
 (0)