markor icon indicating copy to clipboard operation
markor copied to clipboard

Keyboard shortcuts for editor (HW)

Open gsantner opened this issue 7 years ago • 7 comments

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

gsantner avatar Dec 10 '17 20:12 gsantner

The basics for this implemented, just calls to the methods need to happen ;)

gsantner avatar May 05 '18 22:05 gsantner

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.

conrad-heimbold avatar Aug 01 '18 13:08 conrad-heimbold

CTRL+S can be mapped to the save method. Estimated this is like 10 lines. Contributions welcome!

gsantner avatar Sep 05 '18 08:09 gsantner

Long pressing the 'Special key' button will jump to bottom/top of document in next release.

gsantner avatar Sep 24 '18 22:09 gsantner

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.

sojusnik avatar Oct 30 '18 10:10 sojusnik

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?

mariellep avatar Mar 10 '20 18:03 mariellep

Yes thats among what I thought too. But should work on any keyboard, shouldnt matter that its BT

gsantner avatar Mar 10 '20 18:03 gsantner