Commit Graph

2392 Commits (63760073ef31584c656b6bfd8bfd11740aa9b0fc)

Author SHA1 Message Date
Don HO 68c537f697
Fix Find in Projects replace confirmation message localization problem 2021-03-07 17:05:02 +01:00
Udo Hoffmann a044cefe7c
Fix Project workspace changes lost on save cancel
Fix #9605, close #9609
2021-03-06 23:23:12 +01:00
Don HO 47ca5281fe
Revert "Improve high-dpi display"
This reverts commit 1364b199b4.

3 ways we can choose:
1. PerMonitorV2: it would be the ideal solution if there were no custom control in Notepad++ : some part of the custom controls like panels and Find dialog are not rendered properly in PerMonitorV2 mode.
2. PerMonitor: in v7.9.3 WM_DPICHANGED message was not processed and that makes Notepad++ unusable under a high resolution monitor.
3. Without "PerMonitor" feature: (as in v7.9.2), it will be a little bit blurry, but at least the system resizes all parts of application correctly

This commit revert the modification in v7.9.3 and go back to the way in v7.9.2 (Without "PerMonitor" feature).
It's not easy to solve this issue, all I can do is choose the "less worst" way, just like people in world-wide vote for choosing their political leader.

Fix #9513, fix #9579
2021-03-04 01:28:12 +01:00
Don HO 4b0010c4c3
Fix regression in "Find Result" field due to Scintilla upgrade
Fix #9595
2021-03-03 20:01:16 +01:00
Udo Hoffmann 5c884a80c6
Add "Find in Projects" features
Close #8125, close #9534
2021-02-27 23:58:17 +01:00
mere-human 91a570a305
Fix folder picker not displying as the given directory is invalid issue
Fix #9569, close #9570
2021-02-25 16:43:23 +01:00
mere-human 064d844a41
Fix handling of network path (UNC path) in CustomFileDialog
Use STL algorithms for path transformation.

Fix #9527, close #9551
2021-02-22 19:09:37 +01:00
QoL 26dad277c9
Fix shortcut name more than 64 characters makes an empty name issue
Fix #9556, close #9543
2021-02-22 05:05:41 +01:00
mere-human f96d81af11
Fix extension appending issue in file dialog
Fix #9510, close #9532
2021-02-22 03:58:30 +01:00
Udo Hoffmann 75bcb7c536
Fix file not turning dirty (with Session Manager plugin) issue
Fixes #9475, close #9498
2021-02-22 03:30:13 +01:00
Don HO dbac42edd0
Use unary operator '!' instead of "not" 2021-02-20 04:44:34 +01:00
Don HO 1eaaf45d87
Add needed space in "Window dialog"
Fix #9542
2021-02-20 03:44:37 +01:00
mere-human 35584b379f
Make tab splitter menu and incremental search translatable
Rename menu IDs in tab splitter to be in English.
Relocate some controls in incremental search dialog to ease translation.

Fix #8955, close #9496
2021-02-19 04:00:02 +01:00
mere-human 6e43ba6ea5
Add an option to mute all sounds in preferences dialog
Fix #7950, close #9507
2021-02-19 03:46:52 +01:00
Vince 69e6eb26a3
Make JSON auto-indent for brace
Fix #9499, close #9504
2021-02-18 02:33:13 +01:00
Don HO f576559eaa
Add some spiritual quotes 2021-02-16 03:05:29 +01:00
Don HO 994b10c18d Notepad++ 7.9.3 release 2021-02-15 01:43:19 +01:00
Don HO 3419a749d9 Change Notepad++ binary description
https://community.notepad-plus-plus.org/topic/20678/gnu-source-code-editor-error-on-close?_=1612738141494&lang=fr

Fix #9489
2021-02-07 23:24:25 +01:00
Don HO 541b4d1c7a
Add new localization file abkhazian.xml 2021-02-05 15:53:07 +01:00
mere-human 5a45674c36
Fix miss-treating browsing folder as saving file issue in FileDialog
Improve file name parsing.
Use the absolute path to check if a file name is a directory.
Expand environment variables if they are part of the file name.
Avoid unnecessary calls to onPreFileOk().

Close #9467
2021-01-29 23:11:16 +01:00
mere-human 3cf65ade81
Fix typo in ScitillaComponent directory name
Rename ScitillaComponent -> ScintillaComponent.
Git history should be kept because `git mv` was used.
Also change paths in source code.

This was noted in scope of #9403

Close #9450
2021-01-27 05:39:55 +01:00
mere-human e7079d57c6
Enhance FileDialog for allowing UNIX stile file path
And use modern CustomFileDialog istead of old FileDialog in Notepad++.

In the file dialog, override window procedure for "OK" button and
file name edit box to check for input.
Transform forward slash file name to a Window path after input.

Fix #9374, close #9403
2021-01-26 18:52:15 +01:00
Don HO ab5c1d3e2a
Upgrade Notepad++ License
Update GPL version from v2 to v3.

Fix #9425, close #9441
2021-01-24 01:51:19 +01:00
Udo Hoffmann fed1803c78
Fix Switch-To keyboard shortcuts cannot be used in context menu
Fix #943, close #9436
2021-01-22 14:08:36 +01:00
Udo Hoffmann 0004981ff7
Improve size calculation of value dialog
Fix #8443, close #9432
2021-01-21 16:17:43 +01:00
Pavel Nedev ce0012ab5c
Fix possible empty snapshot session on Windows reboot/shutdown
Save snapshot session immediately when needed (without incuring delay by using ::PostMessage).

Fix #7839 and latest user reported problems in #6133.
Close #9427
2021-01-20 19:25:16 +01:00
Don HO 3bf17ec697
Fix build error in MinGW
and fix a misuse of CopyFileEx function.
2021-01-20 04:55:42 +01:00
Don HO 051b17ca44
Enhance copy/move file Win32API functions to avoid system cach
Suggestion from:
https://github.com/d0vgan/nppexec/issues/29#issuecomment-761830889
2021-01-19 04:05:54 +01:00
Scott Sumner b5ec511c38
Add ability to delete from Find combobox history
When any of the Find window comboboxes are dropped and an entry is highlighted, pressing the Delete key will remove the highlighted entry from the following comboboxes:

1. Find what combobox
2. Replace with combobox
3. Directory combobox
4. Filters combobox

No method is provided for clearing all entries at once, but as the "depth" of the comboboxes is limited to a small amount, clearing one entry at a time (when one wants to clear all) is not overly burdensome.

Fix #9366, close #9396
2021-01-18 02:52:00 +01:00
Scott Sumner 5003a45306
Make split-lines work with multi-edge rightmost specified edge
Implements a fix whereby the RIGHTMOST user specified value in the vertical edge box is the column to split by, e.g. 60 in the following example: [15, 40, 60]

If the contents of the box were instead [15, 60, 40], the split-by column would be 40, as that is the RIGHTMOST value.

Fix #8262, close #9387
2021-01-18 02:30:13 +01:00
Don HO a2ee3e6254
Fix a memory leak issue in NppParameters::writeSession
Solution: simplify the method NppParameters::getSessionFromXmlTree by removing unecessary variable member NppParameters::_pXmlSessionDoc.
2021-01-17 19:47:45 +01:00
Don HO 67234d2269
Fix dockable panels 0 width/height in multi-instance mode regression
Fix #9341, fix #9363
2021-01-15 22:19:02 +01:00
mere-human 41c4180b2e
Make "Save Folder as Workspace" in Save Session dialog translatable
Fix #9375, close #9383
2021-01-12 00:36:15 +01:00
Scott Sumner 1364b199b4
Improve high-dpi display
Fix #8115, close #9381
2021-01-11 23:26:18 +01:00
Don HO e26199ab51
Make 1 section name of Preferences more explicit. 2021-01-11 12:16:34 +01:00
Christian Grasser a55d46d170
Fix incompatible plugin not being deleted issue
Unload incompatible plugin before deleting it.

Fix #9377, close #9382
2021-01-11 04:58:15 +01:00
mere-human b58a5cc227
Use the mordern browse folder dialog to get folder path
Add new methods to CustomFileDialog:
- setTitle() sets the dialog title
- setFolder() sets an initial directory
- pickFolder() shows a file open dialog to select a folder

Use CustomFileDialog in folderBrowser().

Affected areas:
- Search > Find in Files
- File > Open Folder as Workspace
- Preferences > Default Directory
- Preferences > Backup > Custom Backup
- Preferences > Cloud & Link

Fix #8513, close #9378
2021-01-11 03:56:46 +01:00
Don HO 38f6319f4e
Fix "Print Line Number" preference is ignored for printing regression
Fix #9379
2021-01-10 04:07:13 +01:00
Scott Sumner d5ad02521e
Improve option for setting save dialog filter to All Types
Fix #9325, close #9328
2021-01-08 04:34:23 +01:00
mere-human b9f498f041
Add "save Folder as Workspace in session" option in save session dialog
Save FileBrowser root folders if it is visible.
When loading a session file (from menu or via the command line),
launch a FileBrowser from scratch and add folders from the file to it.
When loading an auto-saved session, ignore saved FileBrowser folders.

Store roots and selected item of FileBrowser in a Session class.

Add "FileBrowser" node to session XML.
It containts "latestSelectedItem" attribute and "root" child nodes.
This structure corresponds to the one from "config.xml".

Current save session behavior for Folder as Workspace (FaW) is like this:
1. FaW isn't opened, checkbox is greyed-out -> FaW info is not saved in session
2. FaW is opened, checkbox isn't checked -> FaW info isn't saved in session
3. FaW is opened, checkbox is checked -> FaW info is saved in session

Load session behavior:
1. FaW isn't open, session without FaW info -> FaW isn't shown after loading
2. FaW isn't open, session with FaW info -> FaW is shown after loading
3. FaW is open, session without FaW info -> FaW is kept as is without changes
4. FaW is open, session with FaW info -> FaW is shown with new directories from session

Fix #9165, close #9286
2021-01-08 00:02:52 +01:00
Scott Sumner d6c941034d
Make find/replace in files progress translatable
Fix #9319, close #9356
2021-01-07 04:08:24 +01:00
Don HO 52e8c68f90
Change XML encoding from Windows-1252 to UTF-8 (config.xml and others)
and add XML declaration for session.xml, shortcuts.xml & userDefineLang.xml for conforming to XML standard specs.

Regarding the suggestions from #9339
2021-01-04 15:02:09 +01:00
Scott Sumner aca736b766
Fix logic bug in NPPM_SETLINENUMBERWIDTHMODE
Fix #9338, close #9340
2021-01-03 00:04:54 +01:00
Don HO edfd2b8a95
Fix the regression of copying line data from search results
Fix #9334
2021-01-02 12:21:47 +01:00
Don HO 0762af5ce2 Notepad++ 7.9.2 release
Notepad++ Stand with Hong Kong edition.
2021-01-01 00:01:37 +01:00
Don HO 9c8497a99d
Fix regression of URL double click issue
Fix #9320
2020-12-31 03:38:16 +01:00
Don HO 413762c393
Add "Toggle" for Character Panel & History Clipboard in Shortcut mapper 2020-12-27 15:59:39 +01:00
Don HO f617325006
Enhance ghost typing command line argument feature
Enhance ghost typing command line argument feature by changing its format:
With it's new format -qX="string contains white space" (where X is 't', 'n' or 'f'), the white spaces can be contained between double quote, so no need to use %20 anymore for substituting white spacees.
2020-12-21 17:54:10 +01:00
Don HO b6a66ba2b1
Add "-settingsDir" argument for overriding default settings path
Currently the settings directory could be:

1. Notepad++ installation dir if doLocalConf.xml is present.
2. %APPDATA%\Notepad++ if doLocalConf.xml is absent.
3. The path defined in \cloud\choice in Notepad++ installation or in %APPDATA%\Notepad++, it depends on the existence of doLocalConf.xml.

In this PR "-settingsDir" argument is added for overriding above settings paths:
4. Overrided by command line argument -settingsDir="E:\my NppSettings\" : All the above configurations will be ignored, Notepad++ will load (and write) config.xml and the other configuration xml files from (into) "E:\my NppSettings\". Note that double quotes is not necessary if there's no white space in the given path.

The priorities are: 1. -settingsDir 2. Cloud 3. %APPDATA%\Notepad++ or Notepad++ installation dir.
If the given path "E:\my NppSettings\" is not a valid directory (it doesn't exist or it's a file), this argument is ignored and the settings dir will fall back to Cloud (or to %APPDATA%\Notepad++ or Notepad++ installation dir, if settings on Cloud is not defined).

Close #4696, close #9287
2020-12-21 16:03:05 +01:00
Scott Sumner 8f38707d33
Improve text selection after Replace All In Selection operation
Fix #9270, close #9273
2020-12-18 01:49:58 +01:00