Mercurial > dotfiles
comparison dot_tmux.conf @ 822:0c2dcf35d759
feat: show fzf to select paths from last command output
author | zegervdv <zegervdv@me.com> |
---|---|
date | Mon, 25 Dec 2023 21:24:11 +0000 |
parents | 9f4e4087e2e7 |
children | 9e2c5662c2cb |
comparison
equal
deleted
inserted
replaced
821:03e120882791 | 822:0c2dcf35d759 |
---|---|
162 } | 162 } |
163 } | 163 } |
164 | 164 |
165 bind-key -T copy-mode-vi 's' send -X copy-pipe-and-cancel "cat > /tmp/error.txt && tmux new-window -n 'quickfix' -c \"#{pane_current_path}\" 'nvim -q /tmp/error.txt && rm -f /tmp/error.txt'" | 165 bind-key -T copy-mode-vi 's' send -X copy-pipe-and-cancel "cat > /tmp/error.txt && tmux new-window -n 'quickfix' -c \"#{pane_current_path}\" 'nvim -q /tmp/error.txt && rm -f /tmp/error.txt'" |
166 | 166 |
167 | |
168 bind-key 'o' { | |
169 copy-mode | |
170 send -X clear-selection | |
171 send -X start-of-line | |
172 send -X start-of-line | |
173 send -X cursor-up | |
174 send -X cursor-up | |
175 send -X start-of-line | |
176 send -X start-of-line | |
177 | |
178 if -F "#{m:*->\u00A0*,#{copy_cursor_line}}" { | |
179 send -X search-forward-text "->\u00A0" | |
180 send -X stop-selection | |
181 send -X -N 2 cursor-right | |
182 send -X begin-selection | |
183 send -X end-of-line | |
184 send -X end-of-line | |
185 if "#{m:*->\u00A0?*,#{copy_cursor_line}}" { | |
186 send -X cursor-left | |
187 } | |
188 } { | |
189 send -X end-of-line | |
190 send -X end-of-line | |
191 send -X begin-selection | |
192 send -X search-backward-text "->\u00A0" | |
193 send -X end-of-line | |
194 send -X end-of-line | |
195 send -X cursor-right | |
196 send -X stop-selection | |
197 } | |
198 | |
199 send -X copy-pipe-and-cancel "grep -oE '([^\s]+)\/([^/]+)' | fzf-tmux -d20 --multi --bind alt-a:select-all,alt-d:deselect-all | paste -sd \" \" - | xargs -I {} tmux send-keys -t #{pane_id} \"{}\"" | |
200 | |
201 } | |
202 | |
203 | |
167 # unbind after loading plugins | 204 # unbind after loading plugins |
168 unbind -T copy-mode-vi MouseDragEnd1Pane | 205 unbind -T copy-mode-vi MouseDragEnd1Pane |