Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to define custom commands #133

Closed
weilbith opened this issue Nov 15, 2020 · 4 comments
Closed

Allow to define custom commands #133

weilbith opened this issue Nov 15, 2020 · 4 comments

Comments

@weilbith
Copy link

Hey,
thanks for this cool plugin! 馃檹

The title already states it: it would be pretty cool if you could allow to define custom commands or overwrite existing ones. For example I would love to add an open command or adopt the edit one to make the window where to place the buffer selectable. For example the is the vim-choosewin a cool addition here (I wrote a plugin for NERDTree here).
If this is already possible (only glanced some minutes at the implementation), it would be cool if you could document that.

Looking forward to any feedback.

@kyazdani42
Copy link
Member

kyazdani42 commented Nov 15, 2020

Hi, thanks for the kind words :)
well, i'm currently rewriting the whole plugin so adding too many addition wouldn't be the best move right know.
Although i believe writing custom commands would not be too difficult actually. If you need to overwrite a lua plugin, you could do something like:

require'some_plugin.module'.some_func = function() ... end

@kyazdani42
Copy link
Member

kyazdani42 commented Nov 15, 2020

When the refactoring is done, the tree will propose a small api for users to play with or extend the tree (basically like the tree nodes, the tree buffer or window, the formatted lines or highlight data... etc, etc)

@weilbith
Copy link
Author

The overwrite hint is pretty cool. Thanks.

Alright. Then I close this issue and await the changes. What would be the best option to get notified about it? Do you do GitHub releases one could subscribe to?

@kyazdani42
Copy link
Member

I dont really do github releases because there is no versionning for this plugin. Maybe just check #14 and subscribe to it if you wish to get notified about it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants