Moped
Moped copied to clipboard
Request for unlimited tab stops per line
Files have 12 preset tab stops and it's not possible to tab past column 36 since tab stops cannot be added or overridden. Existing text files with lines longer than 36 characters that also include tabs are automatically wrapped and not displayed as expected. An enhancement would be to tab continuously on any line until a new line is started.
Side note: I just checked and TextEdit also defaults to 12 tab stops, but allows tabs to set and cleared via the ruler which would seems like overkill for this clean an app.
Issue received. NSTextEdit has 12 tab stops.
Plan of Attack
- [ ] Research API (NSTextView, NSTabStop_, NSMutableParagraphStyle, etc)
- [ ] Review prior cases (other users's solutions)
- [ ] Evaluate ruler tab stop option
- [ ] Implement code
- [ ] Release beta
API documentation
- https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle/1531988-tabstops
- https://developer.apple.com/documentation/uikit/nsmutableparagraphstyle
Prior Cases
- https://ifnotnil.com/t/nstextview-tabstops/1173
- https://stackoverflow.com/questions/5005228/how-to-have-unlimited-tab-stops-in-a-nstextview-with-disabled-text-wrap
- https://cocoa-dev.apple.narkive.com/KIkpTlUN/nstextview-tab-stop-count