Commit Graph

3220 Commits (35584b379f017402ab8e8244364400137bb500c0)

Author SHA1 Message Date
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
Don HO 5e96dd0166
Make the text direction of finder's search result follow the main edit zone's one 2020-12-12 13:03:31 +01:00
Don HO edaa67db28
Make the text direction of search result window follow the direction of main edit zone
and the text direction of function list always LTR.
2020-12-12 04:05:22 +01:00
Don HO db4a6f5ec6
Fix dockable panels display issue in RTL direction
Fix #9241
2020-12-11 20:09:55 +01:00
Don HO 4768fec82d
Remove obsolete code 2020-12-10 14:56:47 +01:00
Don HO 6c3ecacdb7
Enhance localization of "Line" of Search result
This enhancement translates "Line" prefix of Search resulton when user change each time the localization.

Inspired from #9233
2020-12-09 16:25:35 +01:00
Don HO 2f6454a085
Fix Search result line number highlighting inaccurate issue 2020-12-09 03:34:18 +01:00
Don HO e3455a0f7e
Make "Line" preceding each line number on Search Results translatable
Fix #9224
2020-12-08 18:50:23 +01:00
Coin a0221c4832
Update taiwaneseMandarin.xml
Close #9236
2020-12-08 16:07:46 +01:00
Don HO 59a0c7c3d8
Fix menu check marks not being removed after closing the panels
For both "Clipboard History" and "Character Panel" panels.

Fix #9216
2020-12-07 23:14:42 +01:00
Don HO c9c2d1e376
Add an option for displying constant line number width
1. Add an option for displying constant line number width in Preferences dialog.
   This option set the line number constant width according the total line number in the document (minimun 4 digits).
   It ensures no unexpected visual effect while scrolling content vertically.
   If the document content is modified and the total number of lines is increased or decreased, more digits will be added or removed according the number of digits in total number of lines.

2. Add new plugin messages NPPM_GETLINENUMBERWIDTHMODE & NPPM_SETLINENUMBERWIDTHMODE for getting or setting LINENUMWIDTH_DYNAMIC / LINENUMWIDTH_CONSTANT.
   So plugins may send NPPM_SETLINENUMBERWIDTHMODE message with LINENUMWIDTH_CONSTANT to Notepad++ for avoiding some unexpected visual effect (while scrolling).

Fix #5670
2020-12-06 16:38:53 +01:00
Don HO fefdbc9cad
Fix command line arguments -p, -n & -c negative value's undefined behaviour
The negative values of these 3 arguments won't be undefined anymore.
They will be rejected - so negative values are just ignored.

Fix #9146
2020-12-03 18:13:25 +01:00
Don HO 053266c706
Create new Margin/Border/Edge sub-page in Preferences
1. Add Margins/Border/Edge sub-page in Preferences dialog
2. Update Preferences dialog sub-page naming

Close #8896, close #9218
2020-12-02 23:28:39 +01:00
Scott Sumner b2387286b1
Fix find in files failure issue due to directory path with leading/trailing spaces
Trim spaces on Directory for FindInFiles to fix such issue.

Fix #9199, close #9208
2020-11-29 14:29:16 +01:00
mere-human ecf44bd085
Folder as Workspace: Change folder images after "Expand/Collapse All"
Folder images are changed in FileBrowser::notified() when TVN_ITEMEXPANDED
is recieved. This works fine when e.g. expand/collapse using "+" button.
However, when foldAll() or expandAll() are called on a TreeView,
the TVN_ITEMEXPANDED is not sent. The reason is that TVIS_EXPANDEDONCE flag
is set. To reset that flag, it would be needed to pass TVE_COLLAPSERESET
to TreeView_Expand that also removes all child items which is unwanted.

Resolve the problem by notifying TreeView parent manually when recieve
TVM_EXPAND and TVIS_EXPANDEDONCE is set.

Fix #8912
2020-11-27 15:26:01 +01:00
Don HO 814e6591b5
Fix function list is empty with new user profile issue
The new behaviour of loading function list will be:

1. For the installer package:
Try to load from %APPDATA%\Notepad++\functionList\, if it failed, then load from %PROGRAMFILES%\Notepad++\functionList\.
In this way, users can override function list in %APPDATA%\Notepad++\functionList\ manually. Otherwise, function list won't be empty.

2. For the portable package:
  - with doLocalConf.xml : Load always from <Notepad++ Dir>\functionList\
  - without doLocalConf.xml : Try to load from %APPDATA%\Notepad++\functionList\, if it failed, then load from <Notepad++ Dir>\functionList\

Fix #9134
2020-11-27 03:54:37 +01:00
Don HO 4b29971168
Add GUI in preferences dialog for adding URI customized schemes
And add default supported url schemes.
Related: 5168bdb and #9155

Close #9195
2020-11-25 03:19:30 +01:00
Udo Hoffmann 5168bdb7c5
Allow custom URL schemes
Fix #9155, close #9190
2020-11-22 18:06:37 +01:00
chomdoo a7f8056c29
Fix Wrap Around shortcut in Korean.xml
Close #9133
2020-11-20 22:27:47 +01:00
Patriccollu a7f866b89e
Update English file with missing strings
Close #9187
2020-11-20 22:19:52 +01:00
Don HO cabf726778
Fix single-quoted string being badly recongnized as attribute value in XML
Fix #3403
2020-11-19 16:09:59 +01:00
Don HO 7874f8dab3
Add new API NPPM_GETSETTINGSONCLOUDPATH for plugins
#define NPPM_GETSETTINGSONCLOUDPATH (NPPMSG + 98)
	// INT NPPM_GETSETTINGSCLOUDPATH(size_t strLen, TCHAR *settingsOnCloudPath)
	// Get settings on cloud path. It's useful if plugins want to store its settings on Cloud, if this path is set.
	// Returns the number of TCHAR copied/to copy. If the return value is 0, then this path is not set, or the "strLen" is not enough to copy the path.
	// Users should call it with settingsCloudPath be NULL to get the required number of TCHAR (not including the terminating nul character),
	// allocate settingsCloudPath buffer with the return value + 1, then call it again to get the path.

Close #9168
2020-11-19 04:29:50 +01:00
Don HO 1d75c06305
Update localization files 2020-11-17 03:53:49 +01:00
Udo Hoffmann d155f0326a
Add context menu with "Copy link" ability
Close #2435, close #9154
2020-11-17 03:47:09 +01:00
Udo Hoffmann b7d148f493
Fix Find in found results dialog launch failure after macro execution
The solution is to find a new better parent for Finder dockable panel.

Fix #8199, close #9158
2020-11-17 00:02:56 +01:00
Scott Sumner bfa44f5db3
Fix bug where -p0 cmd line arg causes wrong positioning
Fixes small bug introduced by #9143.

Close #9150
2020-11-14 17:33:03 +01:00
Don HO 9f8932b375
Add "Copy selected text" and rename "Copy" cmd in Search Results Pane
"Copy selected text" is named "Copy" and old "Copy" command is renamed to "Copy Selected Line(s)".

Close #9151
2020-11-14 15:24:06 +01:00
Don HO daa31c1a9a
Fix "Go to..." dialog wrong Offset value in empty files
Fix #9145
2020-11-14 11:34:19 +01:00
Scott Sumner 26428bd2ba
Prevent corruption possibility when using -p command line parameter
Fix #9142, close #9143
2020-11-13 04:00:05 +01:00
Don HO b54b8ee54f
Improve indent guidelines on non-brace control block languages
Fix #9137
2020-11-12 15:14:51 +01:00
Scott Sumner f027e9271d Disallow Goto dlg offset option from moving to position inside multibyte char or between CR and LF
Fix #9101, fix #9125, close #9129
2020-11-12 02:37:01 +01:00
Scott Sumner f75f8b8d40
Prevent names of untitled tabs from duplication
Fix #9119, close #9127
2020-11-12 00:02:23 +01:00
Don HO c58f3f7cb3
Fix an exception with -export=functionList while absence of config.xml 2020-11-11 03:33:39 +01:00
Don HO bbeb66aa56
Fix crash issue while passing argument "-export=functionList"
This regression is due to commit 7399257f56
(7399257f56)
2020-11-11 02:23:24 +01:00
Don HO 5813e4d8e6
Clean up 2020-11-10 14:08:33 +01:00
Don HO 070630a243
Add tooltips for Folderas Workspace 3 commands
Fix #8325
2020-11-10 05:06:25 +01:00
Don HO 79d7521f07
Add -L argument for hongKongCantonese.xml
875a397c14 (commitcomment-43992197)
2020-11-09 14:02:34 +01:00
Don HO 7399257f56 Fix docked panels appear with "-nosession" cmd line parameters
Fix #8005
2020-11-09 04:19:37 +01:00
Scott Sumner 1961f708c1 Add ellipsis to Rename and Print on tab bar context menu
Close #9124
2020-11-08 03:57:37 +01:00
Don HO d17c303665 Fix "SCI_NEWLINE" inside a macro not working issue
Fix #5571
2020-11-08 03:34:45 +01:00
Scott Sumner d80816f930 Fix bug where search-results won't open 'new 1' file
Fix #8461, fix #9098, close #9115
2020-11-07 02:57:10 +01:00
Vince f91246e312 Fix regression of auto-Indent
The regression is introduced by 073f0bc8c6

Fix #9113, close #9114
2020-11-06 20:42:34 +01:00
Juan Cuartas 776fa414ba
Update spanish.xml
Close #9099
2020-11-05 23:13:41 +01:00
Don HO 3657df7ebd
Fix a wrong translation 2020-11-05 21:49:13 +01:00
Don HO 8640fd6693
Move 'Normal Text' to top in Languages Menu
Fix #7746, fix #8277
2020-11-05 20:17:26 +01:00
Don HO 8207084111
Fix several bugs of PHP parser rule for function list
1. Fix the function name gets truncated issue if function starts with reserved words (ie. if, while, for, switch...).
2. Fix abstact function and classes not recognized by parser rule.
3. Fix function detection fails on string containing asterisk issue.

Contributed by @MAPJe71 & @TutoInformatik :
https://community.notepad-plus-plus.org/topic/15124/php-function-list-and-abstract-functions/18?_=1604532045222

Fix #3321, fix #5045, fix #4627, fix #4606, fix #8855, fix #4208, fix #981, fix #2522, fix #1103, fix  #4712, fix #3560, fix #5150, fix #4606, close #9102
2020-11-05 14:53:41 +01:00
Scott Sumner f5dcfc196a
Make UI text consistent regarding search results
Fix #9053, close #9061
2020-11-04 01:56:10 +01:00
Delhove Erwan 2e39525782
Fix tab close button remain pushed issue
Fix #7750, close #9062
2020-11-04 01:07:02 +01:00
Don HO 6284680e30
Update Spanish localization to v7.9.1 2020-11-03 00:39:36 +01:00
Don HO cfe3f3b64c
Make "Clipboard History" and "Character Panel" togglable
Make "Clipboard History" and "Character Panel" have the same behaviour of the other dockable panels.

Fix #9094, fix #9078, close #9096, close #9079
2020-11-02 23:38:28 +01:00
Udo Hoffmann 2aac88e3b1
Improve URL parser: fix apostrophe in an URL issue
Improve also test tool.

Fix #9031, close #9090
2020-11-02 16:00:11 +01:00
Udo Hoffmann 47419910f6
Fix crash while exit command issued by plugin
Fix #9082, close #9084
2020-11-02 15:48:26 +01:00
Scott Sumner c28116a04f
Add color samples on menu items for styling features
Fix #8983, close #9089
2020-11-02 15:15:37 +01:00
Don HO c189cc7571 Notepad++ v7.9.1 release
pour Samuel Paty
2020-11-02 01:40:33 +01:00
Scott Sumner 5965b3d352 Project structure improvement: Move TreeView files in the right place
Close #9083
2020-10-31 19:15:11 +01:00
Scott Sumner 91e3594836 Remove some unused files from project
Close #9075
2020-10-29 19:13:22 +01:00
Scott Sumner 7bcb34b848 Add some missing items to Visual Studio project
Fix #9063, close #9073
2020-10-29 14:51:13 +01:00
ekopalypse 2ff50ec9bc
Update themes to v7.9.1
Fix #9071, close #9070
2020-10-29 13:47:36 +01:00
Don HO 13d2fdadb0
Add "Bookmark margin" into GlobalStyles for all themes 2020-10-29 05:40:37 +01:00
Artem Polivanchuk 3c68f0ae26
Update ukrainian.xml
Close #8970
2020-10-28 15:05:43 +01:00
scootergrisen 5d6e5c6e9c
Update Danish translation to 7.9.1 2020-10-28 15:01:42 +01:00
Don HO 21e66936e5
Update Uzbek localization 2020-10-28 14:26:06 +01:00
Don HO 3c9d58176b
Fix the regression of mark margin colour for dark theme 2020-10-27 16:01:48 +01:00