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 a function to send keypress to the terminal #544

Open
blurskye opened this issue Feb 15, 2024 · 1 comment
Open

[feature] Add a function to send keypress to the terminal #544

blurskye opened this issue Feb 15, 2024 · 1 comment

Comments

@blurskye
Copy link

we need a way to send keypress to terminal..... some users might want to send ctrl+c(keyboard interupt) to the terminal, specifically with code-runners that use toggle-term to run code.... to stop execution

https://github.com/akinsho/toggleterm.nvim/assets/145671529/7fe03dfa-4f41-4677-8880-7c7b74013337
video might a little out of point here, but the code-runners can infact benifit greatly from such a feature

there might be hacky ways to send ctrl+c, but those arent bullet proof method, so i am requesting a Feed keypress to terminal here

thanks in advance

@blurskye blurskye changed the title (feature enhancement) Add a function to send keypress to the terminal [feature] Add a function to send keypress to the terminal Feb 15, 2024
@akinsho
Copy link
Owner

akinsho commented Feb 19, 2024

So this will definitely need to be something that a user contributes. As I mentioned in the README I personally am not looking to go on adding things to this plugin ad infinitum, not saying it's not a good idea or won't have utility but isn't something I'll likely have the time to add. Will leave this here if anyone want's to take it up otherwise if not takers after a while I'll close this out.

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