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

Prefill query from selection#314

Merged
smashwilson merged 9 commits intoatom:masterfrom
ColCh:prefill-from-selection
Sep 13, 2017
Merged

Prefill query from selection#314
smashwilson merged 9 commits intoatom:masterfrom
ColCh:prefill-from-selection

Conversation

@ColCh
Copy link
Contributor

@ColCh ColCh commented Aug 27, 2017

Description of the Change

When you select text, then activate fuzzy-finder, it will look for selection in active editor.

If there is some text selected, it will use it as query - and select text inside of query as well

Alternate Designs

Didn't noticed any. Only in Nuclide's nuclide-quick-open there is analogue for it, but you can't use it without installing entire nuclide package

Benefits

Now you don't need to Copy-Paste your selection in fuzzy finder.

This speedups programming performance :)

Possible Drawbacks

May be opened a bit* slowly, because it looks for editor selected text

  • didn't benchmarked... Also, didn't noticed any performance drop on my machine (MBP 2015)

Applicable Issues

resolves #161

@lee-dohm
Copy link
Contributor

lee-dohm commented Sep 5, 2017

We are interested in taking this feature. We need two modifications first:

  1. We need this functionality behind a configuration option
  2. We need to default to the current behavior (so default to off)

Once that's done, we'll take a deeper look.

Thanks for the submission!

* master:
  Decaffeinate lib/path-loader.coffee
  🎨 Use fat arrow function syntax
  👕 Remove unused assignment
  👕 Remove unused assignment
  Decaffeinate spec/fuzzy-finder-spec.coffee
  Remove obsolete shim for atom.workspace.getCenter()
  Decaffeinate lib/main.coffee
  Decaffeinate lib/load-paths-handler.js
  Decaffeinate lib/helpers.coffee
  Decaffeinate lib/file-icons.coffee
  Decaffeinate lib/default-file-icons.coffee
@ColCh ColCh force-pushed the prefill-from-selection branch from 28a83de to f2159c8 Compare September 5, 2017 20:13
@ColCh
Copy link
Contributor Author

ColCh commented Sep 5, 2017

Done.

Now this behaviour is turned on by config variable.
And this config variable is turned off by default, meaning current behaviour.
Also, I've merged master changer with decaffeinated files.

Please review, ping @lee-dohm

@smashwilson
Copy link
Contributor

👍 Works like a charm. Thanks for the contribution! 🎉

@smashwilson smashwilson merged commit 820af9e into atom:master Sep 13, 2017
@ColCh
Copy link
Contributor Author

ColCh commented Sep 13, 2017

@smashwilson great! Thank you!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fuzzy find and show results from selection?

5 participants