XhmikosR / notepad2-mod

LOOKING FOR DEVELOPERS - Notepad2-mod, a Notepad2 fork, a fast and light-weight Notepad-like text editor with syntax highlighting
https://xhmikosr.github.io/notepad2-mod/
Other
1.45k stars 270 forks source link

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

Closed zufuliu closed 7 years ago

zufuliu commented 7 years ago

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.

zufuliu commented 7 years ago

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

XhmikosR commented 7 years ago

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

XhmikosR commented 7 years ago

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

zufuliu commented 7 years ago

@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: https://github.com/XhmikosR/notepad2-mod/pull/200/commits/1897062c1926cad6d707e44baa6dc4b2e8210418

or shoud I make two PR?

XhmikosR commented 7 years ago

Thanks!

XhmikosR commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

Don't forget to CC me @zufuliu

zufuliu commented 7 years ago

@XhmikosR see PR #204

zufuliu commented 7 years ago

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 commented 7 years ago

@zufuliu Thank you!!!