Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing/inconsistent text navigation shortcuts on MacOS #712

Open
mutleybg opened this issue Feb 11, 2025 · 2 comments · May be fixed by #716
Open

Missing/inconsistent text navigation shortcuts on MacOS #712

mutleybg opened this issue Feb 11, 2025 · 2 comments · May be fixed by #716
Labels
macos Related specifically to macOS

Comments

@mutleybg
Copy link

mutleybg commented Feb 11, 2025

Description

Hi guys,

I really appreciate this project as a big Notepad++ fan who moved to Mac OS.
I have the following issues on MAC:

  • I see no shortcut to go to beginning/end of a file. For MacOS: Cmd + Arrow Up, Arrow Down are the standard shortcuts for all text editors
  • Cmd + Left/Right arrow moves the cursor one word left/right. This is the behavior on Windows, however on Mac these shortcut by default move the cursor to the beginning/end of line. Option + Left/Right arrow move the cursor one word left/right. Could you please change it to correspond to Mac OS: Cmd + Arrow - move the cursor to the beginning/end of the line. Option + Arrow - move the cursor one word left/right.

Best regards

Describe the solution you'd like

On Mac OS:
Cmd + Arrow Up/Down -> Move the cursor to the beginning/end of a file.
Cmd + Arrow Left/Right -> Move the cursor to the beginning/end of a line.
Option + Arrow Left/Right -> Move the cursor one word left/right.

Describe alternatives you've considered

No response

@dail8859 dail8859 added the macos Related specifically to macOS label Feb 11, 2025
@dail8859
Copy link
Owner

There were some possibly similar issues reported in #516 about shortcuts not getting mapped correctly on MacOS but not specifically the ones you mentioned.

Cmd + Arrow Up/Down -> Move the cursor to the beginning/end of a file.
Cmd + Arrow Left/Right -> Move the cursor to the beginning/end of a line.

There looks to be a flag in the Scintilla library that I might be able to set to enable these here:

#if OS_X_KEYS
{Keys::Down, SCI_CTRL, Message::DocumentEnd},
{Keys::Down, SCI_CSHIFT, Message::DocumentEndExtend},
{Keys::Up, SCI_CTRL, Message::DocumentStart},
{Keys::Up, SCI_CSHIFT, Message::DocumentStartExtend},
{Keys::Left, SCI_CTRL, Message::VCHome},
{Keys::Left, SCI_CSHIFT, Message::VCHomeExtend},
{Keys::Right, SCI_CTRL, Message::LineEnd},
{Keys::Right, SCI_CSHIFT, Message::LineEndExtend},
#endif

Option + Arrow Left/Right -> Move the cursor one word left/right.

It's a bit hard to follow if these keys are configured in that file. I can try to at least turn on that OS_X_KEYS flag and have you test it. Ultimately someone with a Mac would be best to do a trial and error on all these since I'm not familiar with the mac specific key combos.

@dail8859 dail8859 changed the title Missing/inconsistent text navigation shortcuts Missing/inconsistent text navigation shortcuts on MacOS Feb 11, 2025
dail8859 added a commit that referenced this issue Feb 14, 2025
@dail8859 dail8859 linked a pull request Feb 14, 2025 that will close this issue
@dail8859
Copy link
Owner

If you could, try this new dmg (might need to unzip it first) and see if they keyboard shortcuts behave more like you'd expected:

https://github.com/dail8859/NotepadNext/actions/runs/13330403764/artifacts/2592759409

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macos Related specifically to macOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants