Skip to content

Go to Next/Previous modification Editor commands #30

@pyscripter

Description

@pyscripter
Owner

As per title. Potential shortcuts:
Ctrl-Shift-NumPad- or Ctrl-Shift-NumPad+ to go to the previous or next modification in the file.

Activity

self-assigned this
on Feb 12, 2025
MShark67

MShark67 commented on Feb 12, 2025

@MShark67
Collaborator

#134 Pull request.

added a commit that references this issue on Feb 12, 2025
925d926
pyscripter

pyscripter commented on Feb 12, 2025

@pyscripter
OwnerAuthor

@MShark67
Thank you for implementing these commands!
I did a commit with some changes to your additions:

  • Previous/next change commands move between changed blocks and not changed lines.
  • Renamed the commands to the more translation friendly ecNextChange, ecPreviousChange. The extended names are "Next Change", "Previous Change" The corresponding command names in VS Code and VS are the same. However they only work when you compare files.
  • Changed the command type to ckSingleCaret. You should only have one caret after executing these commands

Could you please check the changed code?

MShark67

MShark67 commented on Feb 13, 2025

@MShark67
Collaborator

Very nice! The only issue I found is that in the new GotoNextChange and GotoPreviousChange functions stop one line too early in both directions. I've added a pull request for it. #135

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @pyscripter@MShark67

      Issue actions

        Go to Next/Previous modification Editor commands · Issue #30 · pyscripter/SynEdit