-
Notifications
You must be signed in to change notification settings - Fork 504
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
Symlink features: go to target, yank target #2437
Comments
Do you have any suggestions for command names, parameter names, and default key bindings?
This is already supported via |
follow_symlink: (go to link a.k.a <gl>) { on = [ "g", "l" ], run = '''shell 'ya emit cd "$(readlink -f "$1")"' ''', desc = "Follow hovered symlink" }, |
@hakan-demirli, thanks a lot. I've done a few modifications:
I've tried using [[manager.prepend_keymap]]
on = [ "g", "l" ]
run = '''shell 'ya emit cd "$(readlink -f "$0")" && ya emit leave' '''
desc = "Follow hovered symlink" |
Thank you for pointing to this. The only difference from the proposal is that when you are able to yank target paths you can use |
Try: [[manager.prepend_keymap]]
on = [ "g", "l" ]
run = 'shell -- ya emit reveal "$(readlink -f "$0")"'
desc = "Follow hovered symlink" |
@sxyazi, this works, thanks a lot. (do not understand how I've missed the command when searching the docs) |
yazi --debug
outputPlease describe the problem you're trying to solve
For symlinks I see where it points to. It is often needed to do something not with the symlink itself, but with the target. The basic features include:
Would you be willing to contribute this feature?
Describe the solution you'd like
Introduce commands:
Additional context
I've searched documentation, list of keys, plugins, issues and merge requests and did not find anything relevant.
Checklist
The text was updated successfully, but these errors were encountered: