3 ms·
It opens the command in nano/vim in the terminal and lets you edit it. Saving executes the final version. Currently, the user has to be experienced enough to k
by paletov 3y ago
It opens the command in nano/vim in the terminal and lets you edit it. Saving executes the final version.
Currently, the user has to be experienced enough to know if a command is safe to be executed. However, you are right, and I'll look into adding a safety feature that signifies if a command is potentially dangerous.
- Ferret7446 3y ago> Saving executes the final version That is quite dangerous, and I assume that it is actually "on exit" and not "on save", as I assume it is implemented by creating a temp file and opening it with the editor. There are various ways that an editor can crash/abort which would automatically execute the command.