micro-editor / micro-editor/micro

Allow find-next without pressing enter

Open
#1,150 21 comments 57 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

Currently the find behaviour is:

  1. Type ctrl-F
  2. Type your search string
  3. Press enter to find the first match
  4. Press Ctrl-N to find the next match.

Modern text editors (VSCode, etc.) use Ctrl-G for find-next so you can just do:

  1. Type ctrl-F
  2. Type your search string.
  3. Press ctrl-G to find the first match, and subsequent matches.

This is quite a bit nicer. It would be good if micro worked the same way.

Edit: Apparently the default bindings are now fixed in stone so as a compromise the plan is to bind ctrl-F to find and find-next, i.e.

  1. Press ctrl-F
  2. Type your search string.
  3. Press ctrl-F to find the first match and subsequent matches.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing Ctrl-F find flow and the default key bindings described in the issue. Confirm how the current first-match and next-match actions are separated, then make Ctrl-F repeat the search as specified and verify that the first and subsequent matches are reached without pressing Enter.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.