mirror of
https://github.com/tmux-plugins/tmux-yank.git
synced 2026-09-10 07:36:17 -04:00
Code cleanup
Removed lines weren't really used.
This commit is contained in:
parent
144a849901
commit
2fa5010bf4
|
|
@ -6,6 +6,7 @@
|
|||
line is more correct
|
||||
- fix bug when yank-line is used in the last line in buffer. New 'solution' is
|
||||
implemented for copying multiple lines.
|
||||
- code cleanup
|
||||
|
||||
### v0.0.2, Jun 25, 2014
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
source "$CURRENT_DIR/key_binding_helpers.sh"
|
||||
|
||||
COPY_COMMAND="$*"
|
||||
|
||||
# sets a TMUX_COPY_MODE that is used as a global variable
|
||||
get_tmux_copy_mode() {
|
||||
TMUX_COPY_MODE="$(tmux show-option -gwv mode-keys)"
|
||||
|
|
|
|||
|
|
@ -47,14 +47,13 @@
|
|||
}
|
||||
|
||||
set_copy_line_bindings() {
|
||||
local copy_command="$1"
|
||||
tmux bind-key "$(yank_line_key)" run-shell "$CURRENT_DIR/scripts/copy_line.sh $copy_command"
|
||||
tmux bind-key "$(yank_line_key)" run-shell "$CURRENT_DIR/scripts/copy_line.sh"
|
||||
}
|
||||
|
||||
main() {
|
||||
local copy_command="$(clipboard_copy_command)"
|
||||
error_handling_if_command_not_present "$copy_command"
|
||||
set_copy_mode_bindings "$copy_command"
|
||||
set_copy_line_bindings "$copy_command"
|
||||
set_copy_line_bindings
|
||||
}
|
||||
main
|
||||
|
|
|
|||
Loading…
Reference in a new issue