Hey I was wondering if it is possible to keybind a command that I run in the terminal?
Second question, if the above question is possible is there a way to get the current file in focus in the editor and pass it into the command.
What I’m trying to run:
prettier --write [file_in_focus]
I want to run that command when a certain keybinding is triggered. Is this possible? Basically I want a shortcut so I don’t have to keep typing this command over and over, and I need it to know what file is in focus when the keybind is triggered. Thanks!