-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Question/Brainstorming: Recommendation for managing macros #3
Comments
Hey, thanks for checking out my plugin! Regarding your questions:
Could you give an example for that? For me, it works to surround the macro in
Even though, it's not in Lua, did you check out https://github.com/svermeulen/vim-macrobatics? This plugin seems to contain many features regarding managing of macros.
That is actually a usecase of this plugin and one reason why I started creating it. Essentially, you would use the After you ran the command, you can then store the command as a macro. (Did you know about
Not sure I understood you correctly here: could you clarify when a macro can and cannot be applied to some lines of code?
That definitely seems useful, but seems a bit out of scope for this plugin. Maybe there is already a plugin for this though? If not that sounds like a great idea! :) |
A question to you, since you're already here: what do you think of changing the plugin's name to
|
Real-time is to me more related with deterministic time result, but mostly due to the misnaming in the Linux Kernel.
Sounds good. Telescope also has |
Here is the upstream issue: JohnnyMorganz/StyLua#494
Yes, the plugin is great. However, it is lacking a way to debug problems and a good way to organize the macros (tailor it via lua to projects or languages).
Ah. Mhm. But what about doing vice versa? Many things are much quicker with
case 1 case 2 Let What usually the programmer expects is any kind of error on a failing
That would be indeed very nice, but there are not even any errors/error handling for applying macros, so I doubt that. I really hope its not like upstream vim refuses fixing the behavior like in https://github.com/linty-org/key-menu.nvim/issues/10 |
Ah got you. Unfortunately, I am fairly certain that there is currently no way in Vim / Nvim to check whether any default motion such as
Sorry, not sure I can follow here. Do you mean that you want to create a command from an existing mapping? |
Assuming the first problem has been solved, one could translate the functionality to lua (including an error message) "for debugging". This sounds less error-prone to me and one could use the debug infrastructure for neovim + lua then. |
Closing since there is nothing actionable by my plugin currently :) Feel free to reopen if you think there are concrete things that can be improved. |
Do you have a recommendation for storing and loading macros with lua?
Please let me know, what you think of those ideas and how to structure them into actionable items (for investigation).
The text was updated successfully, but these errors were encountered: