-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix copy-mode and keybindings with brackets #66
base: master
Are you sure you want to change the base?
Conversation
iloveitaly
commented
Jul 11, 2023
- fix copy-mode removal when not in copy mode
- fix: keybinding bracket commands
A keybinding like this: ``` command-prompt -T window-target -p index { select-window -t ":%%" }' ``` does not execute without this awk command Also, the `sed` replacement fixed menu corruption for me.
@sainnhe friendly reminder here! |
I also found this issue. Another way to fix is here #82 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -6,7 +6,7 @@ source "$CURRENT_DIR/scripts/.envs" | |||
|
|||
# remove copy-mode from options if we aren't in copy-mode | |||
if [[ "$TMUX_FZF_ORDER" == *"copy-mode"* ]] && [ "$(tmux display-message -p '#{pane_in_mode}')" -eq 0 ]; then | |||
TMUX_FZF_ORDER="$(echo $TMUX_FZF_ORDER | sed -E 's/\|?copy-mode\|?//')" | |||
TMUX_FZF_ORDER="$(echo $TMUX_FZF_ORDER | sed -E 's/\|?copy-mode\|?/|/')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add this? I intentionally removed |
because this will make the first line become empty.