Commit Graph

294 Commits

Author SHA1 Message Date
Don HO
9fecbae030 Move plugins home from %ProgramData% to %ProgramFiles% for the sake of security
Whole specs here:
https://notepad-plus-plus.org/community/topic/16996/new-plugins-home-round-2
2019-01-25 02:10:11 +01:00
Don HO
a079013c22 Fix the plugin crash issue due to the inexistent path
Inexistent path %APPDATA%\Notepad++\plugins\Config\ made some plugins crash.
In this PR the folder is checked (and created if it doesn't exist) by each launch of Notepad++.
2018-12-17 10:16:01 +01:00
Don HO
775d204ef9 Change loading plugin list location
Loading plugin list location is changed from %LOCALAPPDATA%\Notepad++\plugins\Config\ to
%PROGRAMDATA%\Notepad++\plugins\Config\

Enhance API NPPM_GETPLUGINSCONFIGDIR
2018-12-04 13:38:25 +01:00
Don HO
c919dc6270 Notepad++ won't load plugins from %LOCALAPPDATA%\Notepad++\plugins\ anymore
Notepad++ loads plugins only from 2 locations:
1. %PROGRAMDATA%\Notepad++\plugins\ - while Notepad++ installed on: %PROGRAMFILES%\Notepad++\ or wherever without doLocalConf.xml
2. <NPP_INST_DIR>\plugins\ - while Notepad++ installed on wherever (except in %PROGRAMFILES%\Notepad++\) with doLocalConf.xml
2018-11-28 13:31:44 +01:00
Don HO
61402a354f Add elevation capacity for wingup if plugins are installed in %PROGRAMDATA%
While plugins are in %PROGRAMDATA%, we need admin's rights to modify them. This PR detects the plugins installation in %PROGRAMDATA%, then launch wingup with UAC.
2018-11-24 16:26:24 +01:00
Don HO
116f400753 Add thee new capacity to load plugins from %ALLUSERSPROFILE%
By putting an empty "pluginsForAllUsers.xml" file, all the plugins will be loaded from %ALLUSERSPROFILE%\Notepad++\plugins\.
2018-11-21 02:20:36 +01:00
Don HO
8dea25feb5 Refactoring for optimizing/simplifying the code for getting plugin root path 2018-11-07 22:51:27 +01:00
Don HO
fdf954f714 Revert "Fix scintilla restoring wrapped buffer issue" due to a serious performance issue
Check https://notepad-plus-plus.org/community/topic/16468/notepad-7-5-9-release

This reverts commit 40192bda0c.
2018-10-31 00:38:26 +01:00
Rajendra Singh
90ab58aea8 Fix last active tab is ignored on N++ restart issue
Fix #4716, fix #4755, close #4722
2018-10-03 09:36:44 +02:00
Christophe Meriaux
40192bda0c Fix scintilla restoring wrapped buffer issue
When we are restoring a wrapped buffer,
we send SCI_VISIBLEFROMDOCLINE message to convert a file line number to a visual line number,
scintalla seems to ignore the "wrap" option of this buffer.
Workaroud: execute SCI_ENSUREVISIBLE after set position and before executing SCI_VISIBLEFROMDOCLINE.

It seems that this issue has been encountered in ScitillaComponent/FindReplaceDlg.cpp in Searching::displaySectionCentered

Fix #4571, close #4624
2018-10-02 02:52:34 +02:00
Don HO
74e89bdf5f The best easter egg I could hide ;) 2018-09-19 00:32:26 +02:00
Don HO
3325da03a0 Fix a plugin installation problem
Add a new plugins loadding behaviour:
if it's not doLocalConf mode, then plugins can be loadded from "AppData\Local\Notepad++\plugins\", without presence of "allowAppDataPlugins.xml".
2018-08-19 18:04:16 +02:00
Silent
a9d203a60a Deprecate wstat/stat in favour of WinAPI GetFileAttributesEx - unifies code and behaviour between Windows versions
Fixes #4491, fixes #3969, fixes #2535, fixes #215, close #4541
2018-06-25 00:33:09 +02:00
Silent
9cb8fce854 Migrate timestamps from time_t to FILETIME and store them in UTC universally
Fixes #4491, #3969, #2535 and #215.
2018-06-25 00:32:46 +02:00
Silent
08eb29e3d6 Force cpp standard const char pointer on string literals
const-ified all string literals to suppress warnings on gcc and allow /Zc:strictStrings to be used with Visual Studio

Fix #4146, close #4150
2018-06-25 00:06:26 +02:00
SinghRajenM
bf9416d17f Minor enhancements for Kurdish language
Make Kurdish be RTL
Command line support for Kurdish

Close #4206
2018-02-20 18:10:00 +01:00
Don HO
a1b4628b8b Fix the wrong integer replacement (instead of string)
Fix also some minor grammatical errors

Close #4203
2018-02-20 13:38:09 +01:00
Silent
e403204103 Simplify and fix memory leak in getSpecialFolderLocation
Fixes #399, closes #4138
2018-02-19 12:13:55 +01:00
Don HO
1a86603a0c Make more dialog strings translatable 2018-02-04 21:38:49 +01:00
Silent
7a0dae5912 Fix a crash by improving cutString() function
Remove an arbitrary MAX_PATH character limit

Fixes #2727, closes #4037
2018-02-03 01:00:33 +01:00
Don HO
0e60bd8957 Restore "Find Previous" & "Find Next" button in Find dialog
The pair of button "Find Previous" and "Find Next" have been removed in
the previous version due to some regressions. It's restored with being optional.
2018-02-01 10:09:24 +01:00
SinghRajenM
7132a8540c Add commandline support for few more languages
Closes #4084
2018-01-28 23:31:00 +01:00
SinghRajenM
60f113727c Remove unused/empty encoding from shortcut mapper
Closes #3763
2017-11-25 14:54:45 +01:00
Christophe Meriaux
2d1eee8b47 fix feedScintKeys when more than two shortcuts are configured
Closes #3732, fixes #3720
2017-09-19 20:04:56 +02:00
Don HO
5b5dfb90a8 Fix the bug that Notepad++ create %appdata%\local\notepad++\ folder even in doLocalConf mode 2017-08-27 00:04:40 +02:00
Thomas Linder Puls
854acae4a1 Add Visual Prolog language support
Closes #1439
2017-08-25 09:43:36 +02:00
Don HO
bd025df18f Fix some excluded language cannot be remembered bug 2017-08-18 10:12:02 +02:00
Cyrillev
fbbe9344d9 New feature: Opens file in its default viewer
This feature has the same effect as double-clicking this file in Windows Explorer.

Closes #3577, fixes #3576
2017-08-13 12:04:00 +02:00
Don HO
385746de01 Rename variables & clean up 2017-07-27 10:30:53 +02:00
Cyrillev
02bdd11700 Add new languages support
Connect Scintilla Lexers to npp : SCLEX_ASN1 (Abstract Syntax Notation One), SCLEX_AVS (AviSynth), SCLEX_BLITZBASIC, SCLEX_PUREBASIC, SCLEX_FREEBASIC, SCLEX_CSOUND, SCLEX_ERLANG, SCLEX_ESCRIPT, SCLEX_FORTH, SCLEX_LATEX, SCLEX_MMIXAL, SCLEX_NIMROD, SCLEX_NNCRONTAB, SCLEX_OSCRIPT, SCLEX_REBOL, SCLEX_REGISTRY, SCLEX_RUST, SCLEX_SPICE, SCLEX_TXT2TAGS

Connect Scintilla Lexers to npp :

asn1 (Abstract Syntax Notation One) : https://fr.wikipedia.org/wiki/ASN.1#Exemple
avs (AviSynth) : http://avisynth.nl/index.php/Script_examples
blitzbasic : http://www.blitzbasic.com/bmdocs/command.php?name=Mid&ref=2d_cat
http://www.blitzbasic.com/codearcs/codearcs.php?cat=8"
csound : http://www.csounds.com/manual/html/PrefaceGettingStarted.html
erlang : http://erlang.org/doc/man/file.html
http://erlang.org/documentation/doc-5.3.6.13/doc/getting_started/getting_started.html"
escript : http://erlang.org/doc/man/escript.html
forth : http://wiki.c2.com/?ExampleForthCode
freebasic : http://www.freebasic.net/
latex : http://physics.clarku.edu/sip/tutorials/TeX/intro.html (Sample LaTeX file)
mmixal : http://mmix.cs.hm.edu/examples/hello.html
nimrod : http://www.csse.monash.edu.au/~nimrod/nimrodportal/manual/planfileexamples.shtml
nncrontab : http://www.nncron.ru/help/EN/working/cron-format.htm
oscript : http://www.oscriptadventures.com/
purebasic : https://www.purebasic.com/documentation/reference/ide_form.html
rebol : http://www.rebol.net/cookbook/recipes/0031.html
registry : windows registry file
rust : http://rustbyexample.com/std_misc/file/open.html
spice : http://www.seas.upenn.edu/~jan/spice/spice.overview.html
txt2tags : https://github.com/txt2tags/txt2tags/blob/master/samples/sample.t2t
2017-07-23 10:24:53 +02:00
Don HO
2c9f096d6d Make plugins loadable from %LOCALAPPDATA%\Notepad++\plugins\ 2017-07-09 15:56:18 +02:00
Don HO
f6d4d0c827 Remove a duplicated entry for shortcut mapper 2017-06-28 01:18:12 +02:00
Don HO
c8969b773f Add SWIFT language support 2017-06-17 20:03:28 +02:00
Don HO
a067de8ce2 Improve Document Peeker performance issue for large files 2017-05-17 10:01:28 +02:00
Don HO
66d91d93bb Notepad++ release 7.4 - make name right
Change "Document Snapshot" to "Document Peeker".
Fix a peeker bug on reading from setting file.
2017-05-14 20:26:23 +02:00
Patriccollu
80083c7388 Updates localizationCode for Corsican
closes #3165
2017-04-30 20:12:54 +02:00
Don HO
8752bcad57 Add UI part for Document snapshot feature
Enhance doc snapshot on several points.
2017-04-27 13:03:31 +02:00
Don HO
a43c9b9745 Add snapshot on document map feature 2017-04-25 09:28:24 +02:00
Don HO
20e669ff01 Add document snapshot feature (in progress) 2017-04-18 01:31:41 +02:00
Damien Gerard
6947bf3909 winmain: add newline at the end of file
winmain: move local functions to anonymous namespace
winmain: remove redundant static keyword
winmain: add newline at the end of file
winmain: move UAC related code to anonymous function
winmain: declare MSGFLT_ADD/MSGFLT_ALLOW only if not already defined
winmain: check only for emptiness
parameters: move winKeyDefs & scintKeyDefs & PGNSI to anonymous names
parameters: remove redundant static/inline keywords
misc: remove unused source code

Closes #3030
2017-03-25 12:15:48 +01:00
Don HO
6a3d9e994d Fix a minor bug in "Show content in doc map on mous hover"
Fix a compiling error for x64 build
2017-03-14 09:09:01 +01:00
Don HO
fe463dc03a Check content via document map on hovering (in progress) 2017-03-13 02:10:47 +01:00
Markus Heidelberg
6b6b81278b Integrate lexers for several hex file formats
Integrate Motorola S-Record lexer.
Integrate Intel HEX lexer.
Integrate Tektronix extended HEX lexer.

Fixes #1256, closes #1257
2017-02-26 00:25:05 +01:00
Don HO
3d6fc3f2d8 Add Ctrl+Shift+W fshortcut or Close All
Closes  #1572
2017-02-19 18:28:17 +01:00
SinghRajenM
24a3acfcc8 Retain Delimiter selection on several lines setting
Fixes #2911, closes #2911
2017-02-18 22:07:49 +01:00
SinghRajenM
3dfe526019 Show OS platform (32/64 bit) in Debug Info.
Closes #2895
2017-02-11 11:28:46 +01:00
Don HO
1d59e3ed0e Plugin Admin (in progress) 2017-02-10 00:08:29 +01:00
oirfeodent
1b1265302f Enable Scintilla Lexer SCLEX_BAAN (BaanC Language)
Closes #2696
2017-01-22 23:10:08 +01:00
Don HO
d923ece38d Fix an issue due to VS2015 compiling result (bug) 2017-01-16 21:52:52 +01:00
Don HO
6a05bedd05 Enhancement of "Word characters list"
While double-clicking to select or searching with "Match whole word
only" option, the selected characters stop on non-word characters. With
this enhancement, users can include any non-word character into word
characters list, to change its default behaviour.
2017-01-15 22:16:17 +01:00
Don Ho
cad87a0124 Fix "Don't check at launch time" not working problem
Preferences... -> Recent Files History -> Don't check at launch time
does not work anymore. If it is unchecked, it will be checked again on
next Notepad++ launch time.
Fixes #2746
2017-01-04 03:08:05 +01:00
SinghRajenM
a07fcd8f9a Fixed auto-updater setting toggles between startups bug
Fixes #2597, closes #2599
2016-11-27 13:06:48 +01:00
Don Ho
3924190fb1 Add smart highlighting extension to anothe view option
Add new option to enable smat highlighting extension to anothe view,
while both views are visible side by side.
2016-10-28 11:47:36 +02:00
Don Ho
39df01dab5 Add SmartHighLight node for config.xml generation 2016-10-23 13:43:28 +02:00
Don Ho
0746d1f4f7 config.xml is generated by notepad++
No more config.model.xml. config.xml is generated by notepad++ directly.
2016-10-23 03:50:41 +02:00
Don Ho
66c6aca759 Enhance smarthighting UI
Use checkboxes instead of combobox.
If "Use Find settings" is checked, use both "match case" & "whole word
only" (instead of only "whole word only")
2016-10-13 02:01:09 +02:00
dail8859
98a246c1e5 Add option to skip numbers during word completion
Closes #2365, Closes #2378
2016-10-07 09:08:58 -04:00
Tiax
d63170852e Enhance Smart Highlighting feature
SmartHighlighting now highlights based on 3 modes:
1. whole word
2. any selection
3. same as find dialog setting.

Closes #2262
2016-10-07 09:25:32 +02:00
Don Ho
8e9e8c04cd Fix a x64 crash issue on macro recording 2016-09-23 23:58:16 +02:00
Don Ho
6bbfc7a095 Add an option to restore the old behaviour while dropping a folder
The new behaviour (by default) is open the folder in "Folder as
Workspace". The old behaviour is open all files in folder (recursively).
Now user can choose it.
2016-09-13 23:12:36 +02:00
Don Ho
e31e37ebc3 Change quitOnEmpty trigger from command line to settings 2016-09-11 11:45:56 +02:00
Don Ho
f71fd6c63f Make command name more accurate
"Title Case" to "Proper Case"
2016-09-10 12:30:43 +02:00
Don Ho
fae21ebdea Add missing commands in shortcut list 2016-08-30 02:49:50 +02:00
Don Ho
e451efbd29 Add "Search on Internet" for selected words as build-in command
Update translation for French, Chinese and English.
2016-08-29 00:13:28 +02:00
Don HO
d4bcec1c01 Lost in Translation 3 2016-08-11 22:29:39 +02:00
Don HO
37ed299743 Lost in Translation 2 2016-08-10 00:22:45 +02:00
Don HO
2e82a99649 Lost in translation
while (true)
{
conversion<C++>(C-Style cast );
}
2016-08-06 01:29:54 +02:00
A-R-C-A
9fe39017cb Added new Option: Enable scrolling beyond last line
Closes #2034

This option configures the vertical scroll range of Scintilla.
Disable this will configure the scroll range to end at last line
(DEFAULT).
Enable this will configure the scroll range to end one page beyond the
last line.
2016-07-31 23:33:29 +02:00
A-R-C-A
9cf45dea29 Add commands for moving the current file tab Forward/Backward
Closes #1864, closes #2033
2016-07-31 23:24:06 +02:00
A-R-C-A
f6e47cd536 Added more Change Case variants
Closes #2032

Added some more Change Case functions (Title Case, Sentence Case,
Invertcase, Randomcase).
Some of them have a normal and a blend version. The normal version will
change any formatting in the start/middle/end part of the word/sentence to
the chosen case. The blend version applies the changes only to the start
part but don't changes the middle/end part of the word/sentence. You can
use it when you want to keep some formatting in the middle/end part, for
instance CamelCase or proper nouns.
2016-07-31 21:48:24 +02:00
Don HO
83f291acf8 Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus 2016-07-23 11:39:04 +02:00
Don HO
30bd15f04a Use C++ conversion instead of C style cast 2016-07-23 11:37:58 +02:00
dail8859
13e44916ed Add SCI_LINEENDEXTEND to Parameters.cpp
Fixes #1612, Fixes #2102
2016-07-22 16:50:39 -04:00
Don HO
797765173d Improve code quality by using static code analysis tool (cppchecker) 2016-07-18 02:08:29 +02:00
Christian Grasser
fe7257faf1 Fix the crash issue in UDL
Fixes #1887, Closes #1965
Fix crash issue while UDL's user keyword list is too long.
2016-07-15 01:04:59 +02:00
Don HO
2573f4b492 Some code enhancements 2016-07-11 01:07:01 +02:00
Don HO
1e38c628bc Use C++ type conversion instead of C-Style conversion 2016-07-10 02:21:15 +02:00
Linquize
c059cc03dc Show Notepad++.exe bitness in about box 2016-06-17 09:18:11 +02:00
Don HO
64d7535be1 x64 ready
1. Remove all warning while compiling in x64
2. Treat warning as error (W4) while compiling in x64
2016-06-05 20:30:22 +02:00
Julien Nabet
7b596fa488 Fix some out of index errors
Closes #1851
[PowerEditor/src/Parameters.cpp:2581]: (warning) Array index -1 is out of bounds. Otherwise there is useless condition at line 2568.
[PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp:3079]: (style) Unused variable: newline
[PowerEditor/src/WinControls/Grid/BabyGrid.cpp:166]: (style) Array index 'j' is used before limits check.
[PowerEditor/src/WinControls/Grid/BabyGrid.cpp:171]: (style) Array index 'j' is used before limits check.
[scintilla/lexers/LexUser.cxx:1128]: (error) Array 'maskMapper[15]' accessed at index 15, which is out of bounds.
2016-05-16 13:25:16 +02:00
Don Ho
93c704c857 Add "Open Folder as Workspace" command in file menu 2016-03-19 16:15:21 +01:00
dail8859
86c1138a76 Fix cfa57b6
Closes #1584
2016-03-11 15:41:37 +01:00
NN
016e9775df Add Ctrl+Shift+Z for Redo
Fixes #856, Closes #1540
2016-03-01 21:46:44 +01:00
Don Ho
81deab0554 File Browser (In progress)
1. Memorize the opened folders for the next session.
2. Add tip infos.
3. Add "Explorer from here" & "Command from here" context menu.
2016-02-02 19:06:23 +01:00
dail8859
7fc86fb3c4 Make behavior of SHIFT+END and SHIFT+HOME more consistent when word wrapping is enabled
Closes #273, fixes #255
2016-01-10 01:25:56 +01:00
dail8859
1c84051d99 Allows user defined extension to associate workspace files
Closes #209; Close #169
Files ending in the defined extension will be opened in the project panel instead of as a normal file to edit (much like how the session file extension works).
2016-01-09 22:59:52 +01:00
Markus Heidelberg
715a64a32a Make GCC/MinGW build work again and support cross-building under Linux
Close #1229, Fixes #385
Only build errors are fixed, compile warnings are left alone. To reduce
the number of changes, even the compiler option "-fpermissive" has been
used to downgrade several errors to warnings.
2015-12-15 17:10:46 +01:00
Don Ho
773397d6ea Add Debug Info feature 2015-12-07 01:15:17 +01:00
Don Ho
48e9b84bb2 Enhance the version detection capacity
By adding targeting in notepad++.manifest:

https://msdn.microsoft.com/en-us/library/windows/desktop/dn481241(v=vs.85).aspx
Windows 8.1 and windows 10 are detected correctely
2015-12-05 21:39:53 +01:00
Don Ho
6c7ca02fea Add no editor border edge option
Close #707
Add no editor border edge option in preferences dialog.
Add new API NPPM_SETEDITORBORDEREDGE
2015-12-04 19:01:28 +01:00
Don Ho
b61170d669 Restore file extension feature in save dialog
Fixes #1159, fixes #1129
Restore file extension feature in save dialog: make new style save
dialog optional (without file extension feature).
2015-11-26 19:09:40 +01:00
Don Ho
280ddcd493 Make the EOL type more explicite 2015-10-27 15:35:19 +01:00
Don Ho
963d7fc885 Enhance Javascript syntax highlighting
Separate the normal javascript (*.js) syntax highlighting from the
embbeded Javascript (in html) syntax highlighting.
2015-10-11 21:32:41 +02:00
Don Ho
46e810aa53 Add JSON language support; Add auto-detection for xml, php and bash. 2015-09-19 18:49:55 +02:00
Don Ho
4fc06e2bc1 Fix plugin shortcut configuration lost problem by using option -noPlugin. (closes #589)
Solution: save shortcut.xml only if shortcuts have been modified.
2015-08-29 21:49:49 +02:00
Don Ho
234e0615db [RELEASE] Notepad++ 6.8.2 release
Use default font if font name loaded from stylers.xml cannot be found in
system.
2015-08-20 02:35:38 +02:00
Damien GERARD
f2bb34ccb2 Code simplification 2015-08-14 23:32:23 +02:00
Damien GERARD
9c857ed811 Parameters: using nullptr instead of NULL, added static 2015-08-14 22:51:44 +02:00
Damien GERARD
6e6ca7fe12 Parameters: fixed alignment (indent with tabs, align with spaces) 2015-08-14 22:42:56 +02:00
Damien GERARD
a53c25499e Code simplification 2015-08-14 22:22:27 +02:00