'Dwim' commands for navigating subtrees #203
yuhan0
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I cobbled together these two functions to simulate the behaviour of left/right keys in various file tree GUIs, like MacOS Finder's list view or the VS Code sidebar. But when pressing left at the root level or right at an already expanded tree, instead of being a no-op it tries to DWIM and navigates up / into the directory.
dirvish-dwim-keys.mp4
It's a small change but it really made it more intuitive to navigate around with my existing muscle memory :)
Not sure if this merits being included in the main repo but I thought others might benefit.
Beta Was this translation helpful? Give feedback.
All reactions