micro-editor / micro-editor/micro
[Feature Request] Pre-enter selected text in search field
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
Hi,
First of all, thanks a lot for micro !
It would be nice to have that feature as in every main GUI text editors, when you select some text, and type Ctrl-f, you have the search field already filled in with that selected text.
For now I'm selecting the text, Ctrl-c,Ctrl-f,Ctrl-v, and this feature would spare me 2 shortcuts in the process (maybe I'm not the only one in this case).
And of course keeping the default behaviour (no value) when no text is selected.
And some limit shall be set regarding the number of selected characters.
Never coded in go nor looked into the code but I can try to make a plugin or a PR if needed.
Just wanting some feedback, see if it's worth integrate in native micro or not.
Thanks in advance
Commit hash: cfcb2e45
OS: Debian
Terminal: Windows Terminal
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Ctrl-f search-field entry point and how the current selection is exposed in micro. Confirm the existing behavior with and without selected text, then define a character limit and verify that the search field is prefilled only when the selection qualifies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100