-
How can I not jump to file, but open selected line in $EDITOR? when use plugin fr rg? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Add the following to your require("fr"):setup {
fzf = "--bind 'ctrl-o:execute:$EDITOR {1} +{2}'",
} This allows you to use You can replace Let me know if this works for you! |
Beta Was this translation helpful? Give feedback.
Add the following to your
~/.config/yazi/init.lua
file:This allows you to use
ctrl + o
to open the selected file in your default editor, placing the cursor on the corresponding line.After exiting the editor, you'll return to the
fzf
interface.You can replace
ctrl + o
with any other key thatfzf
supports.You could even override the default behavior of the
enter
key using this option:--bind 'enter:execute:$EDITOR {1} +{2}'
.Let me know if this works for you!