Skip to content

Whitespace Indicators

Latest

Choose a tag to compare

@RobertoMachorro RobertoMachorro released this 24 Aug 00:56
· 5 commits to master since this release
2270a24

Housekeeping and documentation stuff, plus:

Added — Show whitespace (dad3b5c, PR #99)
New Settings ▸ Editing ▸ Show whitespace toggle. Draws a middle dot for each space and a chevron for each tab, anywhere in the line — display only, nothing written to the file. Off by default. New WhitespaceLayoutManager.swift (178 lines) does the drawing; wired through Preferences.swift, PreferencesView.swift, EditorState.swift, MopedTextView.swift, and EditorTheme.swift (theme colors for the markers). Covered by WhitespaceMarkerTests.swift (227 lines). The pref.whitespace.title key is localized across all supported languages.

Fixed — dark Find Bar (5153759, PR #103, Issue #101 (#101))
AppKit dressed the find bar for the system appearance while drawing it on the editor's background, so a dark theme in Light mode made the Done button, ‹ › arrows and replace row invisible against black. The bar (and the scrollbar knob) now follows the theme's lightness instead. Implemented in EditorScrollView.swift; FindBarChromeTests.swift + ThemeTests.swift added.