markor
markor copied to clipboard
Keyboard shortcuts for editor (HW)
General information
- App version: 0.2.5
- System:
Description
Add keybindings like Ctrl-Z, Ctrl-Y, Ctrl-A, Ctrl-S
https://stackoverflow.com/questions/12250563/custom-keyboard-shortcuts
Log
The basics for this implemented, just calls to the methods need to happen ;)
CTRL+V (Paste), CTRL+C (Copy), CTRL+X (Cut), CTRL+Z (undo), CTRL+A (mark all) ... all seem to work.
Only CTRL+S (save) is missing.
CTRL+S can be mapped to the save method. Estimated this is like 10 lines. Contributions welcome!
Long pressing the 'Special key' button will jump to bottom/top of document in next release.
Shortcuts for Markdown formatting would be very useful too:
H1, H2, H3: Ctrl + 1-3 Italic: Ctrl + i (or Ctrl + e = emphasis) Bold: Ctrl + b Quote: Ctrl + q Code: Ctrl + m (= normally in Monospace) Strike: Ctrl + s Link: Ctrl + k Numbered list: Ctrl + n Bullet points: Ctrl + p
This would also improve the usability of the soft keyboard with the formatting buttons that are located at the bottom: If the text is highlighted OR the cursor is at the beginning, end or in the middle of a word, then pressing the above mentioned shortcuts, by the hardware keyboard or the formatting buttons, should format the word correspondingly.
Ability to set some of the existing shortcuts to a Bluetooth keyboard mapping would be useful. For example, indent/de-indent requires hitting the keyboard button in the editor and scrolling down as opposed to just hitting tab on a regular computer editor. Perhaps ctrl+tab for indent and ctrl+shift+tab for de-indent?
Yes thats among what I thought too. But should work on any keyboard, shouldnt matter that its BT