You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run :shell hx %p to open the Helix editor with all selected files
Current Behavior
The %p macro only expands to full paths of to the marked files in the current directory
Expected Behavior
The %p macro expands to full paths of all marked files from any directory
Context
I'm using ranger to walk through a large Git repository, previewing files to find the ones I need to work on. I mark said files and then simply want to open all of them for editing in an editor.
it seems like the %p macro should do exactly what I want.
It just seems that self.fm.thistab.get_selection() only returns the files in the currently opened directory. Is the current directory also implicitly the current tab?
I believe it is, and I see a logic in that. What if you forgot about a selection in another path? You could accidentally delete something. I think you can just write a script for that, with another shortcut.
Runtime Environment
Steps to reproduce
space
in different folders:shell hx %p
to open the Helix editor with all selected filesCurrent Behavior
The
%p
macro only expands to full paths of to the marked files in the current directoryExpected Behavior
The
%p
macro expands to full paths of all marked files from any directoryContext
I'm using ranger to walk through a large Git repository, previewing files to find the ones I need to work on. I mark said files and then simply want to open all of them for editing in an editor.
Possible Solutions
Perhaps I'm missing a different macro, but https://github.com/ranger/ranger/wiki/Official-User-Guide#macros makes it seem like there are only those that work in the current directory.
The text was updated successfully, but these errors were encountered: