Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

Ctrl+Space keyboard shortcut selects word/line... allow this to be disabled/customized?

Open Alyw234237 opened this issue 3 years ago • 4 comments

Hi. I use Ctrl+Space to change keyboard layouts. In Notepad3, this shortcut causes the current word to be selected if space is pressed once and the current line/paragraph to be selected if it's pressed twice. This behavior isn't present in Notepad or other applications. I'd like to disable it in Notepad3 but there doesn't seem to be a setting to do this. At least not without editing the source code and recompiling it. Could options that allow for customization/disabling of this shortcut be added? Thank you.

Alyw234237 avatar Aug 14 '21 22:08 Alyw234237

Unfortunately, there is no possibility to configure (remap, disable, etc.) the Accelerator-Keys in Notepad3. They are hard-coded, using the "table resource" method (https://docs.microsoft.com/en-us/windows/win32/menurc/using-keyboard-accelerators#using-an-accelerator-table-resource).

We are thinking about future versions to offer a configuration (https://docs.microsoft.com/en-us/windows/win32/menurc/using-keyboard-accelerators#using-an-accelerator-table-created-at-run-time).

RaiKoHoff avatar Aug 17 '21 08:08 RaiKoHoff

I'm using Edit / Convert / File System Path to URL and Edit / Convert / URL to File System Path a lot. Sadly they do not have shortcuts in Notepad3 (x64) v5.21.1129.1 (ba6de2c2) Maybe in the future?

ThomasHeinrichSchmidt avatar Jan 26 '22 15:01 ThomasHeinrichSchmidt

Hello @ThomasHeinrichSchmidt ,

Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_5.22.127.1_beta.paf" or newer, see 1st list in issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.

Also, feel free to test the "BETA/RC Setup", version "Notepad3_5.22.127.1_beta_Setup" or newer, see the 2nd list in issue #1129.

Comments and suggestions are welcome... 😃

hpwamr avatar Jan 26 '22 23:01 hpwamr

Wow, that was quick. Yes 👍, the new accelerator keys for Edit / Convert / File System Path to URL and Edit / Convert / URL to File System Path (Ctrl/Alt+F10) work like a charm. Thanx! I'm happy ☀️

ThomasHeinrichSchmidt avatar Jan 27 '22 07:01 ThomasHeinrichSchmidt

Please consider changing "Date/Time (Short Form)" to the general default of 'F5' common in most text editors, including Windows Notepad.

That shortcut is currently assigned to "Revert from File", a function that shouldn't be triggered by mistake IMHO as it happens a lot...

Here's my simple proposal to better avoid shortcut collisions:

Date/Time (Short Form): F5 Date/Time (Long Form): Shift+F5 Update Timestamps: Control+F5 Revert from File: (AltGr i.e.) Control+Alt+F5

TiA,

midaspt avatar Nov 21 '22 15:11 midaspt

...changing "Date/Time (Short Form)" to the general default of 'F5...

But also very often under Windows, "F5" is used to "refresh" the screen or an application! 🤔

In Notepad3:

F5 = Reload file or Revert from file. Ctrl+F5 = Time/Date (Short Form). Ctrl+Shift+F5 = Time/Date (Long Form). Shift+F5 = Update Timestamps. Alt+F5 = File Change Notification...

In Minipath:

F5 = Update view of directory.

hpwamr avatar Nov 21 '22 16:11 hpwamr

I've never used F5 in Notepad3 so far, neither for "Revert from file" nor for "Refresh", not even accidentally. It never occurred to me that I needed to "refresh" my file. I'm using Ctrl+F5 a lot for inserting my custom timestamp. I'm not using Windows Notepad (any more). In standard Atom ctrl-shift-f5 is window:reload, besides that F5 is not used. In Visual Studio Code F5 is used a lot in various keybindings mainly related to debugging. There is no "refresh" function or a method to insert timestamps.

ThomasHeinrichSchmidt avatar Nov 22 '22 10:11 ThomasHeinrichSchmidt

@hpwamr:

But also very often under Windows, "F5" is used to "refresh" the screen or an application! 🤔

In Minipath:

F5 = Update view of directory.

True that, but usually only in non actively editing contexts. 😐

@ThomasHeinrichSchmidt:

I've never used F5 in Notepad3 so far

I'm not using Windows Notepad (any more).

Other text editors use this convention by default, too -- Notepad++ is just one such example.

midaspt avatar Nov 22 '22 14:11 midaspt

In my Notepad++ F5 is used to Run an external program, somewhat similar to what Visual Studio Code does.

ThomasHeinrichSchmidt avatar Nov 22 '22 16:11 ThomasHeinrichSchmidt

As I don't use Notepad++ myself, I was probably mislead by https://superuser.com/questions/1278798/.

Windows Notepad does use F5 for date insertion (e.g., see https://www.experts-exchange.com/questions/20430625/).

This also works in Vim, EditPad and TedNotePad, to name a few editors I'm familiar with.

midaspt avatar Nov 30 '22 15:11 midaspt

So, shall we change:

  • F5 = Reload file or Revert from file.
  • Ctrl+F5 = Time/Date (Short Form).
  • Ctrl+Shift+F5 = Time/Date (Long Form).
  • Shift+F5 = Update Timestamps.
  • Alt+F5 = File Change Notification...

to:

  • F5 = Date/Time (Short Form)
  • Shift+F5 = Date/Time (Long Form)
  • Ctrl+F5 = Update Timestamps
  • Alt+F5 = File Change Notification...
  • Control+Alt+F5 = Revert from File: (AltGr i.e.)

Please vote for 👍 or 👎

RaiKoHoff avatar Dec 30 '22 00:12 RaiKoHoff

👎

ThomasHeinrichSchmidt avatar Dec 30 '22 08:12 ThomasHeinrichSchmidt

https://github.com/rizonesoft/Notepad3/issues/3571#issuecomment-1322237160 Please vote for 👍 or 👎

👎

hpwamr avatar Dec 31 '22 08:12 hpwamr

Seems the vocal majority is against this. Any chance of making it a user setting?

midaspt avatar Jan 20 '23 12:01 midaspt

That would probably require making shortkeys generally configurable, a major endeavor.

ThomasHeinrichSchmidt avatar Jan 20 '23 18:01 ThomasHeinrichSchmidt

Title restored, to ensure this issue has reasonable title on search.

RaiKoHoff avatar Jun 19 '23 12:06 RaiKoHoff