Control key support
If you press the Control key with another key, it triggers a shorcut. Here is a list of shortcuts I plan to support:
- [x] Control + A - go to the beginning of the line you are currently typing on.
- [x] Control + E - go to the end of the line you are typing on.
- [x] Control + L - clears the screen.
- [x] Control + U - clears the line you are typing in.
- [x] Control + H - backspace.
- [ ] Control + C - stops whatever you are running.
- [x] Control + D - exits the shell instance.
- [x] Control + N - opens a new shell instance.
- [x] Control + W - deletes the word before the cursor.
- [x] Control + T - swaps the last two characters before the cursor.
Why don't use shortcut many people already know? (i.e. Control + W to close window (shell instance))
Also, can we make use of Home and End key?
@srifqi to stop a shell instance do Control+D, that is the *nix standard. What do you want to use the "Home" and "End" key for?
Home - go to the beginning of the line you are currently typing on. End - go to the end of the line you are typing on.
@srifqi okay, can make those aliases of Control+A and Control+E respectively.
Plan on finishing?
@amanuel2 nope, I'm extremely busy nowadays and my first priority is completing a refactor on FireAlarm.