Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Use wholeWord option in select-next (cmd-d) - #482

Merged
benogle merged 4 commits into
masterfrom
bo-cmd-d
Aug 11, 2015
Merged

benogle merged 4 commits into
masterfrom
bo-cmd-d

Conversation

@benogle

@benogle benogle commented Aug 11, 2015

Copy link
Copy Markdown
Contributor

Currently when using cmd-d, we're checking if the selected text is a word, if so, we only select words, and skip matches within other words. Tons of people think this is a bug.

Someone else's gif:

.

This PR retains the current behavior when the wholeWord option is enabled in one of the find panels, and will match all the things when wholeWord is false.

Closes atom/atom#6800
Closes #476
Closes #340
Closes #430
Closes #356
Closes #450

benogle added a commit that referenced this pull request Aug 11, 2015
Use wholeWord option in select-next (cmd-d)
@benogle
benogle merged commit 038a423 into master Aug 11, 2015
@benogle
benogle deleted the bo-cmd-d branch August 11, 2015 18:53
@jhasse

jhasse commented Aug 21, 2015

Copy link
Copy Markdown

Thank you so much for this! :)

@maxbrunsfeld

Copy link
Copy Markdown
Contributor

Woah just got the hang of this. Pretty nice.

@colllin

colllin commented Nov 18, 2015

Copy link
Copy Markdown
Contributor

In my opinion, the real bug here was that the find panel is still highlighting things even after you've conceptually departed from the find panel. In this example, is it considered a bug that cmd-d doesn't select crowdTypes, as highlighted by the find-and-replace search?

cmd-d is unrelated to find-and-replace

I'm working on a proposal / PR for how to reconcile these entangled and conflicting behaviors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants