Skip to content

docs(tutor): explain multi-selection yank and paste - #16167

Open
AndroLay wants to merge 1 commit into
helix-editor:masterfrom
AndroLay:docs/tutor-multiselection-yank-paste
Open

docs(tutor): explain multi-selection yank and paste#16167
AndroLay wants to merge 1 commit into
helix-editor:masterfrom
AndroLay:docs/tutor-multiselection-yank-paste

Conversation

@AndroLay

Copy link
Copy Markdown

Closes #11413

Adds a hands-on tutor exercise showing that:

  • y stores each selection as a separate register value
  • p distributes those values across destination selections in order
  • the last value repeats when there are more destinations

The exercise yanks red, green, and blue, creates three numbered destination selections, and produces 1red 2green 3blue.

Validation:

  • cargo fmt --all -- --check
  • cargo test --workspace -- --test-threads=1
  • git diff --check
  • completed the new exercise in hx --tutor with default bindings; Helix reported yanked 3 selections to register " and produced the expected line

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an example to tutor how to yank & paste multiple selections using y and p bindings

1 participant