Yazi as file picker for Helix with sway
WM (no mulitplexer needed)
#1598
Replies: 3 comments 2 replies
-
Great Thank you so much! Can you make it into a repository, like yazi.nvim?? This will allow people to use configuration more easily. And it would be great if you could add it to yazi-rs and also awesome-yazi |
Beta Was this translation helpful? Give feedback.
-
Thanks. Would like to give it a try, but AFAICS all |
Beta Was this translation helpful? Give feedback.
-
It is okay if it is not in Lua, since neovim plugins are based on Lua only. But helix, sway may not use Lua at all. I have not used helix so I am not aware how configurations work there. It would be great if you could provide a way for configurations for opening in split windows, or diff tabs, etc(if that is so in helix), along with various keybindings from within Yazi, just like yazi.nvim has(just an example). |
Beta Was this translation helpful? Give feedback.
-
I just created a workaround to use
yazi
as file picker for Helix withsway
window manager andfoot
terminal on Void Linux without the need of an extra terminal multiplexer (not the most common combination, but maybe some day someone is searching for it... 😁 ). Since Void hasn't as many prebuilt setups, this might be helpful for someone with similar needs:For Helix PR #11164 is very helpful too.
sway config
Inside my sway config I added following line to make floating terminal windows possible:
script
Furthermore, I need a small wrapper script which opens a new
foot
window with the correctapp_id
to make it float. The script is also necessary since it combines theyazi
run and the following printing of the file path tostdout
(fff
is another possible file manager to use with this script):Helix shortcut
Finally, I just added the script call as shortcut to my
config.toml
:Now I can simply press
space
o
in normal mode. A floating window runningyazi
(orfff
) pops up and I can select a file which will be opened in my current Helix buffer...Beta Was this translation helpful? Give feedback.
All reactions