Automattic / Automattic/simplenote-electron

I'd like for the Tab key to insert tabs, not spaces. I'm willing to change my settings, if needed.

Open
#3,060 0 comments 1 reaction 0 assignees View on GitHub
[feature] editor feature request
Dominant language
TypeScript
Stars
5.3k
Forks
588
Avg merge
9h 45m
Merged PRs (30d)
4

Description

### What

I would like the Tab key to insert tabs, not spaces, just like it used to do long ago. [(Source.)](https://github.com/Automattic/simplenote-electron/pull/386#:~:text=previous%20Simplenote%20apps%20have%20all%20allowed%20inserting%20a%20tab%20character%20as%20seamlessly%20as%20we%20can%20do%20in%20normal%20text%20editors)

I am willing to make a settings change in order to get what I want. But, currently, there is no setting which can make Simplenote insert tabs. Currently, the only way to insert a tab is to paste one in from the clipboard.

If you provide automatic indentation, I would like that feature to also only ever insert tabs; not spaces. I am perfectly willing to disable automatic indentation; but I see no such setting.

I use the Simplenote web app.

### Why

I'm not sure why I prefer tabs over spaces; but I'm far from the only person with such a preference. [(Source.)](https://en.wikipedia.org/wiki/Tab_key#:~:text=Disagreements%20between%20programmers%20about%20what%20size%20tabs%20are%20correct%2C%20and%20whether%20to%20use%20tabs%20at%20all%2C%20are%20common.) Perhaps I prefer them because they are easier to delete (if needed), and easier to navigate past using the cursor keys.

People who prefer spaces can (if necessary) insert them using the spacebar. But, for the people who prefer tabs, please provide a way for them to insert tabs.

### Conclusion

I would be curious to hear your thoughts.

Thank you for reading this!

Contributor guide

Open the contributing guide

Research direction

Start at the web app's editor keyboard handling and settings, then trace how the Tab key and automatic indentation are currently implemented. The change is done when users can configure Tab insertion to use tab characters, with automatic indentation following that choice or being disableable, and the behavior works in the web app.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.