Skip to content
This repository has been archived by the owner on Aug 12, 2018. It is now read-only.

Add hidden features to program menu, fix reload as UTF-8 bug #200

Merged
merged 2 commits into from Aug 15, 2017

Conversation

zufuliu
Copy link
Contributor

@zufuliu zufuliu commented Aug 13, 2017

There are many useful hidden features in the program, which can only be accessed via command shortcuts.
Adding these shortcuts to program menu make it easy to use, without to read the document (Notepad2.txt, Readme-mod.txt or http://www.flos-freeware.ch/notepad2.html) carefully and remember these key combinations.

Commit list:

  1. Add hidden features: reload as UTF-8, ANSI or OEM; reload no FileVars; reload default; lanuch web template; file browse; enclose selection with braces, brackets, quotes or backticks; delete line left or right; delete word left or right; update timestamps; open Notepad2.ini; show command line help; to program menu.

  2. fix reload as UTF-8 not work bug.

…; reload default; lanuch web template; file browse; enclose selection with braces, brackets, quotes or backticks; delete line left or right; delete word left or right; update timestamps; open Notepad2.ini; show command line help; to program menu.
RaiKoHoff added a commit to RaiKoHoff/Notepad3 that referenced this pull request Aug 14, 2017
…t#200 : (XhmikosR/notepad2-mod#200)

   and put some of the "hidden" shortcuts into NP3's menu tree.
   - couldn't reproduce the "reload as UTF-8 not work bug" in NP3 (?) - so didn't merge the related change.
     (if someone can reproduce it, please tell me)
+  I "guard" the shortcut for direct editing the NP3's .ini-file (Ctrl+F7) by disabling "Save Settings Now (F7)" and  "Save Settings on Exit" - Flag
    as long as I edit the settings file itself.
    (Example not disabling this:  Editing the .ini-file while "Save Settings on Exit"-Flag is checked,
     leaving NP3 would override the just edited .ini-file with "old" NP3 settings ...)
@zufuliu
Copy link
Contributor Author

zufuliu commented Aug 14, 2017

@XhmikosR how to fix "continuous-integration/appveyor/branch — Waiting for status to be reported"?

@XhmikosR
Copy link
Owner

@zufuliu: no idea. You can try force pushing.

@XhmikosR
Copy link
Owner

@zufuliu : if you split this I could merge the hidden stuff patch only.

@zufuliu
Copy link
Contributor Author

zufuliu commented Aug 15, 2017

@XhmikosR without commit 2, reload as UTF-8 not works. as an example, reload src/Edit.c always in ANSI without commit 2.
see commit 2: 1897062

or shoud I make two PR?

@XhmikosR XhmikosR merged commit 453f9e3 into XhmikosR:master Aug 15, 2017
@XhmikosR
Copy link
Owner

Thanks!

@XhmikosR
Copy link
Owner

@zufuliu: can you make the Command line help window open to the center of the program's window and not to the center of the screen like it happens with the About dialog?

@zufuliu
Copy link
Contributor Author

zufuliu commented Aug 15, 2017

@XhmikosR I will try to find a way to center that message box based on https://stackoverflow.com/questions/6299797/c-how-to-center-messagebox

@XhmikosR
Copy link
Owner

Don't forget to CC me @zufuliu

@zufuliu
Copy link
Contributor Author

zufuliu commented Aug 16, 2017

@XhmikosR see PR #204

@zufuliu
Copy link
Contributor Author

zufuliu commented Aug 20, 2017

from the source code for CMD_WEBACTION1 and CMD_WEBACTION2, "launch web template" execute external command (set by WebTemplate1 or WebTemplate2 in section Settings2), with current selected text as argument.

"update timestamps" update timestamp in current document, in some circumstances document creation / modification time is recorded in the file (most likely beginning of file).

maybe we could ask Florian, why there are so many shortcuts not accessible from menu. (there are several others even after this PR)

@bluenlive
Copy link
Contributor

@zufuliu
Thank you!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants