Feature: Custom actions
sayanarijit opened this issue · 2 comments
sayanarijit commented
A simple API to get the hovered or selected paths (absolute) along with their IDs so that I can perform custom actions on them.
A simple API to bind the custom actions to key bindings when in the directory buffer.
andrewferrier commented
The first already exists:
Line 110 in ac7ad3c
The second is straightforward - use vim.keymap.set()
in after/ftplugin/dirbuf.lua
with buffer = true
. I don't think it needs a specific API. You can find an example in my config.
sayanarijit commented
Nice. Thanks 👍