Replies: 8 comments 11 replies
-
I currently use [keys.normal.space.f]
d = ":sh zellij run -fc -- yazi" Which gives me a file exploror I can fuzzy find through and quickly move through. Even in |
Beta Was this translation helpful? Give feedback.
-
You can have a look here: https://github.com/quantonganh/helix-wezterm https://quantonganh.com/2023/08/19/turn-helix-into-ide.md |
Beta Was this translation helpful? Give feedback.
-
I have a fork with the file explorer patch merged in based on a commit a few months ago: https://github.com/omentic/helix/tree/staging. I've been daily driving it for a few months. There are a few stability issues related to two other patches it's running (unicode input support & moving lines directly support) but if you don't use those, it should be fine. When Helix 23.09 releases, I plan to rebase all the patches in https://github.com/omentic/helix-patches on it, package it up, merge in a few more rejected patches, and release binaries & publish it for the AUR. |
Beta Was this translation helpful? Give feedback.
-
I'm using Wezterm + xplr with tree-view plugin. With a few lua scripting. |
Beta Was this translation helpful? Give feedback.
-
I am using a floating zellij pane with broot. Edit: details in the comment below. |
Beta Was this translation helpful? Give feedback.
-
This threads lists several workarounds that are in use: #2177 |
Beta Was this translation helpful? Give feedback.
-
I made a one-liner that does this with yazi and wezterm's split panes [keys.normal.space]
"n" = """:sh wezterm cli split-pane sh -c "yazi --chooser-file=/dev/stdout | while read -r; do wezterm cli send-text --pane-id ${WEZTERM_PANE} --no-paste \\":o \\${REPLY}\\"; done" > /dev/null"""
|
Beta Was this translation helpful? Give feedback.
-
Just for the sake of completeness, I show my solution using For Helix PR #11164 is very helpful too. sway configInside my sway config I added following line to make floating terminal windows possible:
scriptFurthermore, I need a small wrapper script which opens a new #!/usr/bin/env bash
# Send picker as $1, save selected filepath in cache file
# and print filepath to stdout using cat
# -a `floating_foot` sets app_id for floating term window
# -p option to fff saves selected filepath in tmp-file instead of opening
case "$1" in
fff)
foot -a 'floating_foot' zsh -c 'fff -p' && cat "/home/lukeflo/.config/cache/fff/opened_file"
;;
yazi)
tmp="$(mktemp -t yazi-picker.XXXXXX)"
foot -a 'floating_foot' yazi --chooser-file "$tmp"
cat -- "$tmp"
rm -f -- "$tmp"
;;
*)
echo "Unknown picker"
;;
esac Helix shortcutFinally, I just added the script call as shortcut to my [keys.normal.space]
"o" = [ ":open %sh{ sway-picker fff }" ] To use Now I can simply press |
Beta Was this translation helpful? Give feedback.
-
I'm really sad to see #5768 being closed until the plugin system is ready.
While I do see the point, I was really hoping for this to be merged as it's really blocking me from working with helix properly. Not being able to browse the file structure from within the editor is a big deal for me, and I don't see the plugin system being ready anytime soon.
However, I totally understand the reasoning that was mentioned in the chat.
Until this can be done using plugins, is there some kind of workaround that people have found using wezterm or zellij magic? Like having an explorer open in another split that can actually open files in the existing helix instance in the other split?
Beta Was this translation helpful? Give feedback.
All reactions