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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: add autocmd option #46

Open
Azarattum opened this issue Jun 21, 2024 · 2 comments
Open

Feature: add autocmd option #46

Azarattum opened this issue Jun 21, 2024 · 2 comments

Comments

@Azarattum
Copy link

It would be nice if we could also provide an autocmd event in addition to keys to trigger a command. For example you might have a formatting command that you want to bind on a key, be able to use from Commander and trigger on save.

@FeiyouG
Copy link
Owner

FeiyouG commented Jun 28, 2024

Do you mean an autocmd that can also be triggered using a key? I can't really think of any use cases. Can you share me some?

@Azarattum
Copy link
Author

I think the most obvious would be actions that you do on save (BufWritePost), but also want to have an ability to trigger manually via command pallet or keybind. Such as formatting, applying liter fixes, syncing file with remote etc.

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