mirror of
https://github.com/tmux-plugins/tmux-logging.git
synced 2026-09-10 07:16:28 -04:00
Change internal script names
This commit is contained in:
parent
70241546e0
commit
778da25450
|
|
@ -5,6 +5,7 @@
|
|||
- extract default keys and key options to `variables.sh` file
|
||||
- require tmux version 1.9 or greater to use the plugin
|
||||
- change all internal variable names (BREAKING CHANGE!)
|
||||
- change internal script names
|
||||
|
||||
### v1.0.0, 2014-11-09
|
||||
- improve `capture-pane`. It is now piped directly to the target file.
|
||||
|
|
|
|||
12
logging.tmux
12
logging.tmux
|
|
@ -5,28 +5,28 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||
source "$CURRENT_DIR/scripts/variables.sh"
|
||||
source "$CURRENT_DIR/scripts/shared.sh"
|
||||
|
||||
setup_pipe_pane_key_binding() {
|
||||
setup_logging_key_binding() {
|
||||
local key=$(get_tmux_option "$logging_key_option" "$default_logging_key")
|
||||
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/tmux_proper_pipe_pane.sh"
|
||||
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/toggle_logging.sh"
|
||||
}
|
||||
|
||||
setup_pane_screenshot_key_binding() {
|
||||
local key=$(get_tmux_option "$pane_screen_capture_key_option" "$default_pane_screen_capture_key")
|
||||
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/tmux_pane_screenshot.sh"
|
||||
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/screen_capture.sh"
|
||||
}
|
||||
|
||||
setup_scrollback_dump_key_binding() {
|
||||
local key=$(get_tmux_option "$save_complete_history_key_option" "$default_save_complete_history_key")
|
||||
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/tmux_scrollback_dump.sh"
|
||||
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/save_complete_history.sh"
|
||||
}
|
||||
|
||||
setup_clear_scrollback_key_binding() {
|
||||
local key=$(get_tmux_option "$clear_history_key_option" "$default_clear_history_key")
|
||||
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/tmux_scrollback_clear.sh"
|
||||
tmux bind-key "$key" run-shell "$CURRENT_DIR/scripts/clear_history.sh"
|
||||
}
|
||||
|
||||
main() {
|
||||
setup_pipe_pane_key_binding
|
||||
setup_logging_key_binding
|
||||
setup_pane_screenshot_key_binding
|
||||
setup_scrollback_dump_key_binding
|
||||
setup_clear_scrollback_key_binding
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ get_log_name() {
|
|||
|
||||
start_pipe_pane() {
|
||||
local file="$(get_log_path)/$(get_log_name)"
|
||||
$CURRENT_DIR/tmux_start_pipe_pane.sh "$file"
|
||||
"$CURRENT_DIR/start_logging.sh" "$file"
|
||||
display_message "Started logging to $file"
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue