Repository navigation
Match case and whole word in both find boxes, and skip what git ignores in Find in files - #530
Merged
Merged
Conversation
Short names were buried: both find boxes matched case-insensitively inside words, and Find in files searched folders git ignores, so `Id` on this repo found 9,805 matches and a Replace in files of `Id` would rewrite `Hidden`. TextSearch takes MatchOptions (case, whole word), used by the bar, diff find, the pane and both replace paths. The pane lists files with `git ls-files --cached --others [--exclude-standard]`, falling back to the fixed skip list outside a repo or when git fails. The three toggles are Global commands enabled only while a find box has the keys, since the bar's keys are in the Editor scope and the pane's in Find. Closes #527 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Closed
15 tasks
As a hint for Alt+C and Alt+W, matching the menus' letters. FindOption underlines the hot letter but clears TG's hot key, which would otherwise toggle the pane's options from anywhere. Also drops the machine-local workspace entries the previous commit picked up. Closes #527 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Both find boxes now have Case and Word checkboxes, and Find in files skips what git ignores, with an Ignored files checkbox to bring those files back.
Ctrl+F, file and diff tabs):☐ Case ☐ Wordsit between the query and the count.Alt+C/Alt+Wtoggle them from either field, and so does a click. The search re-runs straight away. The options are shared by every tab for the session. Replace and Replace all follow them.Ctrl+Shift+F/Ctrl+Shift+H): Case and Word sit under the fields, with Ignored files below them. These options are separate from the bar's. In a repo, the pane searches whatgit ls-files --cached --others --exclude-standardlists, so.gitignore(nested ones too) and.git/info/excludeare honoured. Outside a repo, or if git fails, Ignored files is disabled, the old skip list applies, and the count reads e.g.4 in 1 files (not a git repo).Tabstill goes straight between Find and Replace. The checkboxes don't take focus.tmc,tmwandtfi. F1 in either box listsAlt+C/Alt+W.Closes #527
Worth flagging
Alt+C/Alt+Wfall through as before..Idmatchesx.Id._counts as a word character, so_Iddoesn't matchId.(not a git repo)reads in full at the sidebar's default width of 30.2 of 3rather than starting again at1.TextSearch.csgives1 of 2, highlighting only.Id/x.Id.Alt+C/Alt+Wrows.Idwith Case + Word gives180 in 66 files.tfibrings inbin/andobj/(10000+ in 472 files).bin/is skipped.FocusHostTestsand oneHelpPlaceHostTeststest hang onorigin/mainas well, so I didn't get a full run here. The classes this PR touches pass. CI is the full check.🤖 Generated with Claude Code
a-team try tuicode 530