micro-editor / micro-editor/micro

Feature request: nano-style click selection

Open
#2,136 1 comment 0 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

Description

Currently, the only way to select text using the mouse is to drag. This makes text selection with the mouse impossible if you don't have drag support. An example that comes to mind (and the reason for this) is Termux (and possibly, other touchscreens, although I can't say for certain).

There should be an option to change the selection to behave like nano's mark mode.

Basically, nano's mouse selection works like so:

  • Double-click (technically, click on the cursor) to enter selection mode. This will be the start (or end if selecting backwards).
  • Move the cursor to where you would like to end the selection.
  • Double-click (again, technically click on the cursor) to cancel the selection.
  • In nano's case, doing an action cancels the selection, although this might not be favorable.

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

No files or tests are named. Start by tracing the existing mouse-drag selection path and how editor options are defined, then compare the requested double-click start, end, and cancellation behavior with current input handling. Done means the behavior is available as an option and works for touch-oriented selection without breaking existing mouse selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.