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
Ability to explore directories within kakoune #4014
Comments
Inside Kakoune, if you type Perhaps a better solution would be something like a
...to teach Kakoune to edit files stored inside |
Hello, |
I think it's even more useful with zips and tars than plain directories. It's one of the few things I miss from vim. |
I just came across another real-world use case where it would be convenient for Kakoune to handle being given a directory. Bundler, the defacto package manager for RubyGems, provides a command It opens the editor assigned to Now that my |
On Thu, Feb 03, 2022 at 07:05:55PM -0800, benjamin wil wrote:
and there doesn't seem to be an easy way to get the working directory
There is, try `:echo %sh{pwd}`
|
It is easy but only for someone with some experience with kakoune. There has been a lot of discussion around The fact that this is brought up reasonably regularly means that it continues to be a paper cut, whether or not @mawww agrees with it. Anyways, I've made my peace with it and accepted that it is likely never to be incorporated. |
Of course, thank you. So if I can gracefully handle the error state and either a) do something with |
On Fri, Feb 04, 2022 at 09:00:06AM -0800, benjamin wil wrote:
So if I can gracefully handle the error state and either a) do something with `$PWD` or b) pre-fill `:edit <tab>` in Kakoune, I could be very happy. But I am not yet clear on whether there's a hook I could use, or how I might rescue from this specific error.
That hook doesn't exist yet.
For now you could check for a directory argument in a wrapper script.
|
Feature and Usecase
I would like to be able to explore directories from within kakoune, so that when I run
kak
on a directory and not a file (usually accidentally), I can somehow navigate to one of the contained files, akin to vim'snetrw
feature.I'd also settle for being able to hook into the error that happens when running
kak
on a directory, so that I can lift from https://github.com/TeddyDD/kakoune-edit-or-dir to satisfy this. I found #1056, but it was closed without a(n obvious) solution. I don't considerconnect.kak
a solution to this unless kak grows libvterm integration (becauseconnect.kak
doesn't work over SSH unless I use tmux, which I don't (want to) use all the time).The text was updated successfully, but these errors were encountered: