How to add keyboard shortcut in typer as command? #650
-
First Check
Commit to Help
Example Code@app.command()
def settings:
// settings codeDescriptionI want to add a keyboard shortcut to my cli app. I don't how to do it in Typer. I want to use a keyboard shortcut Operating SystemLinux Operating System DetailsNo response Typer Version0.9.0 Python Version3.11.4 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Based on the description you've given, I don't think that's something Typer should take care of. In any case, you might be looking for something like the monitoring capabilities of Edit: I forgot about |
Beta Was this translation helpful? Give feedback.
Based on the description you've given, I don't think that's something Typer should take care of. In any case, you might be looking for something like the monitoring capabilities of
pyinputor the TUI interfaces oftextualwith the key combinations of your preference (such asctrl+shift+s).Edit: I forgot about
keyboard(in this context it's easier to use than the other alternatives).