Commit Graph

3966 Commits (666f228027e24a616cf17deb88b708d949c3530c)

Author SHA1 Message Date
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
mere-human 477dd1dbb0
Update contribution rules related to PR
Clarify the information about creating a PR
and addressing the review comments.

Address comment discussion in #9286

Close #9400
2021-01-16 23:38:20 +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 9f635b22af
Fix invalid XML file 2021-01-04 23:33:42 +01:00
Don HO cb3d328666
Fix invalid UTF-8 XML files 2021-01-04 20:02:23 +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
Christian Grasser e24ad94ddd
Move script validator_xml.py to "Test" folder
Fix #9330 part 2
Close #9345
2021-01-04 01:42:57 +01:00
Christian Grasser d17fa02a6f
Check XML validation in Notepad++ build system
1. Added xml syntax check via python script just for the win32 debug build because there already the functionlist check happens.
2. Fixed an issue found for perl.

Fix #9330, close #9339
2021-01-03 01:52:23 +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 3373756afb
Fix a regression in Chinese Simplified localization
Fix #9329
2021-01-01 16:00:28 +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 a68805b7ff
Make user defined overrideMap.xml not overridable during installation
Fix https://community.notepad-plus-plus.org/topic/20534/notepad-v7-9-2-release-candidate-2/4?_=1609416552124
2020-12-31 20:16:00 +01:00
Don HO 0472052f8e
Make installer override all the function list files on the installation 2020-12-31 03:50:56 +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
Artem Polivanchuk 1a9c28dacb
Update ukrainian.xml
Close #9105
2020-12-23 16:00:05 +01:00
conky77 916bbfc7fd
Update venetian.xml
Close #9253
2020-12-23 15:57:54 +01:00
popcorner 528712f050
Update chineseSimplified.xml
Close #9295
2020-12-23 15:55:10 +01:00
schnurlos f77b03f82d
New Update for german.xml v7.9.1
Close #9122
2020-12-22 19:39:26 +01:00
rddim 18f482619a
Update Bulgarian localization
Close #9147
2020-12-22 19:36:40 +01:00
ArkadiuszMichalski 8cd4d9d066
Update polish.xml
Close #9297
2020-12-22 19:08:16 +01:00
Sapziller 2c872b0fa8
Update korean.xml (7.9.2)
Close #9294
2020-12-22 16:35:40 +01:00
Vladimír Kubala 34c54c9442
Update Slovak translation
Close #9126
2020-12-22 16:29:45 +01:00
yasmise 7408f34364
update japanese.xml to v7.9.2
Follow-up for these commits:
* Make UI text consistent regarding search results (f5dcfc196a)
Note: Diff of this PR is smaller than the commit above, but it's OK. Japanese translation was already translated correctly.
* Add ellipsis to Rename and Print on tab bar context menu (1961f708c1)
* Add tooltips for Folderas Workspace 3 commands (070630a243)
* Prevent names of untitled tabs from duplication (f75f8b8d40)
* Update English file with missing strings (a7f866b89e)
* Add context menu with "Copy link" ability (d155f0326a)
* Add GUI in preferences dialog for adding URI customized schemes (4b29971168)
* Create new Margin/Border/Edge sub-page in Preferences (053266c706)
* Add an option for displying constant line number width (c9c2d1e376)
* Make "Line" preceding each line number on Search Results translatable (e3455a0f7e)
* Make "total documents number" feature in Window dialog translatable (0546f75a71)

Close #9111
2020-12-22 16:26:35 +01:00
Tmp341 141e893af5
Update Turkish localization
Close #9112
2020-12-22 16:23:07 +01:00
~GOLEM~ 62e131105a
Update russian.xml to v7.9.2
Close #9176
2020-12-22 16:17:55 +01:00
Patriccollu 10b5302fc9
Update Corsican translation for Notepad++ 7.9.2
Close #9186
2020-12-22 16:13:45 +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
Don HO 0546f75a71
Make "total documents number" feature in Window dialog translatable 2020-12-16 18:49:06 +01:00
X1ngyuL1u 435834651b
Add the number of total documents on windows dialog's title bar
Close #8338, close #9245
2020-12-16 16:43:01 +01:00
Scott Sumner 7aafa2e8fe
Fix scroll to last line problem after main window resize
Fix #9123, close #9265
2020-12-16 12:58:39 +01:00
Don HO 5e0e7a7f73
Update nlohmann's json.hpp from v2.2.1 to v3.9.1
Close #9272
2020-12-16 00:22:01 +01:00
Christian Grasser a0ffb6b6ff
Fix Plugin admin display UTF-8 issue in its description
Allow UTF-8 input for plugin autor and description.

Fix #9266, close #9267
2020-12-15 19:25:01 +01:00
Don HO 21e9239203
Make find in finder result's text direction follows the search results' one 2020-12-15 04:07:05 +01:00
Don HO bf62bda851
Fix a typo
Fix #9259
2020-12-14 16:34:01 +01:00
Don HO 241393407c
Fix Search result's text direction not always synchronized with main edit zone's one issue 2020-12-13 15:29:56 +01:00