Feature Requests #14
Replies: 10 comments 10 replies
-
Source Code highlighting support Use tree-sitter parser-based parsers to highlight text content |
Beta Was this translation helpful? Give feedback.
-
Markers visual line markers on the line number ruler ( |
Beta Was this translation helpful? Give feedback.
-
Full multi-cursor editing support There's already some support for that feature but it needs more work to feel complete. I found the VSCode approach appealing so that would be a reference (not necessarily how Xcode works) The areas to improvement are:
|
Beta Was this translation helpful? Give feedback.
-
Have you considered a markdown mode? This could also be a separate (paid?) component built on top of STTextView. I definitely had projects where I would have paid for this / sponsor this. Also, is there support for custom text storages, and if yes, how does that work? I've had a niche need for this (I was trying to build a CRDT that records the exact edits so I could replay them later). |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to expose the current selection as Binding<Range<String.Index>> over $text so that a SwiftUI wrapper view or MV can easily access it? It could also be used as the cursor position when the range start = end. For multi-cursor/multi-select use case, it could be a Binding<[Range<String.Index>]>. |
Beta Was this translation helpful? Give feedback.
-
Access “Spelling & Grammar” functionality using only the keyboard. In most Mac apps, to correct a spelling mistake, the mouse pointer needs to be involved, either to bring up the context menu for the underlined word or to pick a correction option in the system “Spelling & Grammar” window. The editor TextMate has a custom implementation where Edit → Spelling → Show Spelling and Grammar (bound to “⌘;”) selects the next misspelled word and opens a menu with items for replacement options as well as items for ignoring or learning the word. All of these options are also accessible using keyboard shortcuts. Spelling.Grammar.in.TextMate.mp4Being able to keep the hands on the keyboard while typing is very nice indeed, and others agree (The Talk Show: 312: ‘Not to Get Zealotrous’, With Craig Mod, 1:54:10–1:54:58). |
Beta Was this translation helpful? Give feedback.
-
Show Invisibles option NSTextView, via NSLayoutManager has an option for showsInvisibleCharacters, which would show whitespace and other "invisible" characters with special glyphs (and we you could tap into). Admittedly, OS substitutions weren't great, but you could tap into the layout manager to create invisibles that user would expect (dots for spaces, arrow for tabs, return etc). As of macOS 14.0 NSTextLayoutManager (TextKit 2) is still missing that. And honestly, not even sure where to tap into in order to render the invisibles. |
Beta Was this translation helpful? Give feedback.
-
Ability to have multiple dynamically expanding STTextViews vertically stacked together with one scrollbar I would like the ability to have a vertical
At the moment, the following code:
Has the two controls vertically stacked taking up 50% of the view, and having individual scrollbars for each. Admittedly, this may not be relevant for coding applications, which is possibly a primary use for For reference/comparison, the combination of
Screen.Recording.2024-02-22.at.10.16.35.am.mov
Firstly, hope this is clear. Secondly, hope this is possible. Finally, hope this can be implemented (: |
Beta Was this translation helpful? Give feedback.
-
I see the Neon plug-in depends on |
Beta Was this translation helpful? Give feedback.
-
Placeholder support
|
Beta Was this translation helpful? Give feedback.
-
If you're looking for a new feature, feel free to suggest it or vote for the one already proposed below!
(want to sponsor a new feature from the list or outside the list? contact me)
Beta Was this translation helpful? Give feedback.
All reactions