Moped icon indicating copy to clipboard operation
Moped copied to clipboard

Request for unlimited tab stops per line

Open z4am opened this issue 2 years ago • 1 comments

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.

z4am avatar Feb 16 '22 19:02 z4am

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

RobertoMachorro avatar Feb 18 '22 18:02 RobertoMachorro