nextcloud / nextcloud/text

Scroll to Ctrl+Z/Y action

Open
#4,344 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement papercut
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Is your feature request related to a problem? Please describe.
When you press Ctrl+Z/Y the line where you are currently editing might not be in view. This is quite confusing because you can't see what is going on.

Describe the solution you'd like
The content should scroll to where there cursor currently is.

Describe alternatives you've considered
Maybe block Ctrl+Z/Y when out of view, but that is also not great.

Contributor guide

Open the contributing guide

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 locating the editor's Ctrl+Z/Y handling and the code responsible for keeping the current cursor position visible. Reproduce the issue with the cursor outside the viewport, then verify that undo and redo scroll to the edited line.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.