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

Add exec_cached #156

Open
ChillerDragon opened this issue Jul 20, 2024 · 1 comment
Open

Add exec_cached #156

ChillerDragon opened this issue Jul 20, 2024 · 1 comment

Comments

@ChillerDragon
Copy link
Member

The exec command is nice to load configs. But it's not ideal for binds. Because it does read from the disk every time. If it is a frequently pressed bind that is a bunch of unnecessary IO. Also it logs every time and spams the console.

So exec_cached should read a file only once and then store the data in memory. If it is run again it will not print anything to the console.

@ChillerDragon
Copy link
Member Author

Another idea would be to add methods to the config language. Because that is what exec is abused for in those binds. To have multiple commands run at once.

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

1 participant