enchant97 / note-mark

Note Mark is a lighting fast and minimal; web-based Markdown notes app.
https://notemark.docs.enchantedcode.co.uk/
GNU Affero General Public License v3.0
297 stars 6 forks source link

Allow tab to indent text in editor #187

Closed RobViren closed 6 months ago

RobViren commented 6 months ago

I use bulleted lists a lot when editing markdown context. Needed to use the button is not ideal assuming people are spending a lot of time editing documents. This code includes normal tab behavior most users would expect from an editor.

Current behavior

Hitting the "tab" key results in my focus shifting around the page.

Desired behavior

Hitting the "tab" key results in indenting the selection Hitting the "shift+tab" keys results in removing indents from the selection

enchant97 commented 6 months ago

Thanks for your contribution! I had not got round to implementing.

Whilst it is not in the app yet, you can control indentation with ctrl+[ or ctrl+]