-
Notifications
You must be signed in to change notification settings - Fork 21
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
Better terminal list handling #20
base: main
Are you sure you want to change the base?
Conversation
The state of the terminal list are often outdated by the time nvterm does things with it, so we should always verify it first.
I would have to test this pretty extensively. A lot of those verifications are done because of things like the terminal picker in the extensions repo calling the plugin in ways that aren't expected or causes edge cases. I used to just verify the low level functions, but there were tons of issue posts because people are doing unexpected things and getting an error message. |
Yeah, it might need some testing, but I don't think it should break anything major. All |
Hey i love using this config |
alt i , alt h , alt v leader v , leader h |
I agree the list handling is in need of improvement, but there's still the issue of having to use I'm thinking of modifying the API to be higher level, so that there is only one command called by users. something like
The benefit of the variable arg format is that the existing functions wouldn't need to be changed much. The table of arguments is probably a bit more intuitive to most users, but would require them to actually know the names of the arguments to the functions which currently are not well documented, and thus would also require writing and maintaining docs. |
The state of the terminal list are often outdated by the time nvterm does things with it, so we should always verify it first. The verification is now done in the lower-level functions, so they are no longer needed in some functions and thus removed.
Also, fixed some outdated(?) references to non-existing tables.