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

Alt(Option) shortcuts overlap with characters on macOS #667

Open
Sylphe88 opened this issue Nov 20, 2024 · 3 comments
Open

Alt(Option) shortcuts overlap with characters on macOS #667

Sylphe88 opened this issue Nov 20, 2024 · 3 comments
Labels
macos Related specifically to macOS

Comments

@Sylphe88
Copy link

Operating System and Version

macOS Sonoma

Distribution

installer (brew) - 0.8

Description

Not sure if feature request or bug, but I can't type some characters because they're behind the Alt/option modifier. So basically on my french keyboard, I can't type the "[" character (Option+Shift+() because it corresponds to an Unfold shortcut.

One solution would be to be able to change the shortcut mappings but I could not find a way to do this.

Steps to Reproduce

  1. Have a macOS setup with a french keyboard layout
  2. Try typing a square bracket. Does not work!

Additional Details

e.g. screenshots, logs, etc

@dail8859 dail8859 added the macos Related specifically to macOS label Nov 20, 2024
@dail8859
Copy link
Owner

Probably sounds like a bug but cannot say for sure. Might be Qt related or something in the application. I don't have a Mac at all so I don't have a good way to debug it unfortunately.

There is a mostly undocumented feature to override shortcuts that are interfering (e.g. the Unfold shortcut). Adding a [Shortcuts] section in the ini file (not sure where that is on MacOS) will override the default shortcuts (do not edit the file with Notepad Next). For example:

[Shortcuts]
New=Ctrl+F1

If you look through this file you'll see action names such as "actionUnfoldAll" so for example you could use:

[Shortcuts]
UnfoldAll=

And that would remove the shortcut.

@Sylphe88
Copy link
Author

Sylphe88 commented Nov 21, 2024

Spent some time looking for this ini file but I can't find it anywhere. Any environment variable / standard path on Windows I can relate to? The closest I could find was /Users/<myname>/Library/Application Support/NotepadNext but it only contains session history (unsaved files)

@dail8859
Copy link
Owner

On Windows the ini file is stored in %APPDATA%/NotepadNext which is the same location that stores the session file. So I would have assumed it is close to there.

Though I'm using the generic QSettings class so maybe it stores it differently than I'm expecting. As a last guess I'd check here $HOME/.config/NotepadNext/NotepadNext.ini

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

No branches or pull requests

2 participants