Silent
16fa79f057
Warning/error fixes as per VS2017 code analysis
...
Closes #4154
2018-02-19 12:21:35 +01:00
Christophe Meriaux
360d45db1a
Add filter capacity in the shortcut mapper
...
Closes #4096 , closes #2562
2018-02-11 16:37:30 +01:00
Silent
683c358e8a
Fix 2 different files whose canonic names are the same can't be opened
...
in the same time issue
Fix Unicode file name comparision to match Windows behaviour (as opposed to doing a linguistic filename comparision)
Fixes #3820 , closes #4141
2018-02-04 04:26:52 +01:00
SinghRajenM
fcb3ce31a0
Code improvement
...
Closes #4085
2018-01-28 23:22:47 +01:00
Don HO
2390b19706
Fix a crash bug due to eventual disordered notifications sent to plugins
...
The Access Violation while closing Notepad++:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3961
could be due to SCN_UPDATEUI sending after NPPN_SHUTDOWN, that makes
plugins treat SCN_UPDATEUI on the released handle.
To avoid such situation, once NPPN_SHUTDOWN has been sent, no more
message will be sent to plugin.
Fixes #3961 , fixes #4021
2017-12-27 18:19:01 +01:00
Oleksandr Redko
bdcc386a3a
Fix static analyzer issue "An exception should be caught by reference"
...
V746 Object slicing. An exception should be caught by reference rather than by value. filedialog.cpp 183
V746 Object slicing. An exception should be caught by reference rather than by value. nppbigswitch.cpp 110
V746 Object slicing. An exception should be caught by reference rather than by value. pluginsmanager.cpp 259
2017-10-29 18:18:00 +02:00
SinghRajenM
3cb8bc85a1
Fix certificate checking error message issue
...
1. Fixed issue (caption and message are interchanged)
2. Disabled lexerdll signature checking in debug mode
Closes #3691 , Fix #3688
2017-09-17 01:16:47 +02:00
Thomas Linder Puls
854acae4a1
Add Visual Prolog language support
...
Closes #1439
2017-08-25 09:43:36 +02:00
SinghRajenM
d5b01d61b8
Improve file extension movement between ListBox in Preferences dialog
...
Now mouse double click can be used to move File extension between ListBoxes.
Closes #3595
2017-08-21 02:35:57 +02:00
SinghRajenM
295cbafe7d
Code improvement
...
Closes #3582
2017-08-13 12:10:04 +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
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
4c2e41b649
Plugin name should match to plugin folder name
...
Load plugin only when plugin name match to plugin folder name.
For example: "NppPluginDemo.dll" can be loaded only when it in the
folder named "NppPluginDemo".
2017-07-10 19:26:22 +02:00
Don HO
2c9f096d6d
Make plugins loadable from %LOCALAPPDATA%\Notepad++\plugins\
2017-07-09 15:56:18 +02:00
Don HO
c8969b773f
Add SWIFT language support
2017-06-17 20:03:28 +02:00
Don HO
6f84824c2b
Fix verifying certificate function passes empty string to compare
...
For unknown reason, all strings passed by parameters are empty string,
use the macros solve this problem.
2017-06-15 02:25:25 +02:00
Svyatoslav
39b2386b33
Fixes identical sub-expressions for certificate verification
...
An issue has been found by using PVS-Studio analyzer.
Analyzer warning: V501 There are identical sub-expressions to the left
and to the right of the '!=' operator: subject != subject.
Closes #3399
2017-06-15 01:13:34 +02:00
Roman Artiukhin
e8e325b7c1
Fixed Toolbar initialization code
...
It seems REBARBANDINFO.cbSize initialization logic got broken after
migration to VS 2013 (last working version - 6.6.9)
That leads to various problems related to toolbar logic (like missing
chevron - #3385 or incorrect plugin toolbar placement #3094 )
Closes #3386 , fixes #3385 , fixes #3094
2017-06-12 01:09:58 +02:00
Don HO
8dbd956344
Disable the certification chain verification
...
WinTrust library checks chain of trust on line which makes Notepad++
hanging due to the Firewall's restriction.
2017-05-16 19:50:22 +02:00
Don HO
bfb672d8bb
A small modification regarding the certificate checking function
2017-05-10 18:14:27 +02:00
Don HO
e2329fd15c
Improve certificate verifying method
2017-05-10 02:12:10 +02:00
Don HO
76395bb5e5
Add copyright information
2017-05-08 03:27:32 +02:00
Don HO
6b0a3c8e6b
Enhance certificate check
2017-05-08 00:19:56 +02:00
SinghRajenM
fe45f2e9b1
Remove duplicate code for checking certificate
...
Closes #3076
2017-03-25 14:17:33 +01: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
7aa7788af0
Add clean up for isCertificateValidated() function
2017-03-08 02:57:11 +01:00
Don HO
b869163609
Check SciLexer.dll certificate
...
This fix is about the issue "Vault 7: CIA Hacking Tools Revealed"
published on Wikileak:
https://wikileaks.org/ciav7p1/cms/page_26968090.html
2017-03-08 02:52:58 +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
a482cbd215
Add tip in Find dialog for informing users the usage of Shift+Enter
2017-02-23 23:56:35 +01:00
Christian Grasser
bc84b83af0
Correction of bufferID for iface document
...
- corrections for interface of bufferID, as x64 requires usage of UINT_PTR aka WPARAM instead of INT
- used new EolType instead of formatType
- removed commented NPPM_ADDREBAR, NPPM_UPDATEREBAR, NPPM_REMOVEREBAR not available in n++ code
- corrected typos
Closes #2920
2017-02-18 22:00:26 +01:00
redmanmale
73ee4426e4
Fix uncomment in block for line comment bug
...
Fixed block uncomment in undoStreamComment func, new argument.
tryBlockComment is to avoid loop call.
Fixed typo in doStreamComment func.
Fixes #1200 , fixes #1714 , fixes #2125 , fixes #2854 , closes #2875
2017-02-11 11:48:17 +01:00
SinghRajenM
3dfe526019
Show OS platform (32/64 bit) in Debug Info.
...
Closes #2895
2017-02-11 11:28:46 +01:00
Dan Gibson
7ad86ad688
Enhance 'Open File' command - open file without selecting whole path.
...
Closes #2878
2017-02-09 23:12:45 +01:00
SinghRajenM
7f98067c12
Add error notification on run dialog
...
1. GetLastErrorAsString is moved from PluginsManager.cpp to Common.h and common.cpp and also function signature is changed
2. Below method were already defined in common.cpp, but not declared in common.h
generic_string intToString(int val);
generic_string uintToString(unsigned int val);
3. Updated RunDlg.cpp to show error if ShellExecute fails
Closes #2626 , Fixes #2179
2017-02-05 13:12:03 +01:00
oirfeodent
1b1265302f
Enable Scintilla Lexer SCLEX_BAAN (BaanC Language)
...
Closes #2696
2017-01-22 23:10:08 +01:00
Don Ho
c235e17f7d
Add Plugins Administrator (UI part, in progress)
2017-01-20 14:13:41 +01:00
Motaz Alnuweiri
6a0b7653b0
Improve Folder Browse And Save Dialog
...
Enable the new user interface for "Folder Browse Dialog" including the
edit box and enable Vista style for "Save Dialog".
Closes #2631
2017-01-17 00:02:32 +01:00
Don Ho
e838758e9b
Fix geneation of MD5 on Unicode bug
...
"Geneate MD5 fom text dialog" has geneated wrong result on non ANSI
character (Unicode text). This bug is due to wong input data.
Fixes #2743
2017-01-04 20:31:53 +01:00
Don Ho
8fc1a2ed30
Add MD5 functionalities
2017-01-01 18:28:25 +01:00
dail8859
5f8ba93b78
Check plugin architecture before loading
...
Closes #2348 , Closes #2350
2016-10-06 20:59:22 -04:00
dail8859
d64a525f3e
Sort plugin menu by plugin name
2016-10-06 17:24:27 -04:00
dail8859
eddafe55e8
CallTip text uses start/stop/separator settings
...
Closes #2274 Closes #2278
2016-09-24 16:56:09 -04:00
Don Ho
863c4e90c1
Add open file on selection & open container on selection commands
2016-08-22 00:52:26 +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
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
bd373788ad
Add thousands separator for Summary and Statusbar
...
Fixes #1329 , Fixes #2103
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
Don HO
1e38c628bc
Use C++ type conversion instead of C-Style conversion
2016-07-10 02:21:15 +02:00
dail8859
a3bb9d294a
Report the correct crashed plugin
...
Closes #1980
2016-07-05 16:55:24 -04:00
A-R-C-A
3f09ebc976
Fixed crash issue due to unsigned variable
...
Close #2035
2016-07-03 17:56:17 +02:00
Don HO
c15a0deb35
Make bitness available in DebugInfo
2016-06-17 20:18:06 +02:00
Don HO
9835445c8b
Detect x32 and x64 compatibility between plugins and Notepad++
2016-06-17 01:10:32 +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
Don Ho
e3c18f61ea
Add "Never" button in auto-updater prompt dialog
...
Update wingup to v3.3 : make Auto-Updater's periodical check being able
to be abdisable via auto-update prompt dialog.
2016-05-21 16:43:41 +02:00
Evgeny Mandrikov
91c9897baf
Exception treatment: throw object instead of pointer
...
Closes #1685
2016-05-14 11:11:01 +02:00
Don Ho
6c4f9a64d2
Add new API to disable auto-updater
...
New API : NPPM_DISABLEAUTOUPDATE
2016-05-07 23:12:38 +02:00
YWX
cfa57b6818
Notepad++ support both SCLEX_FORTRAN and SCLEX_F77
...
Closes #1381
2016-03-01 21:34:52 +01:00
Don Ho
7d0d874296
File Browser (New name: Folder as Workspace) - in progress
...
Add "copy path", "add folder" and "remove all folders" 3 menu commands.
2016-02-06 14:58:42 +01:00
Don Ho
07ce6c2516
New feature: File browser
2016-01-23 02:25:44 +01:00
Stefanos Anastasiou
624e5fa1ae
Add new API NPPM_SAVEFILE to save any file.
...
Close #1214 , closes #817
This API saves a file without having to actually focus on the file.
// VOID NPPM_SAVEFILE(0, const TCHAR *fileNameToSave)
2016-01-09 23:42:25 +01:00
Sarang Baheti
0d35d607bd
Enhancement: better error messages when plugins fail to load
...
Close #1284
2016-01-08 15:12:11 +01:00
Don Ho
5c48259aee
Clean up
...
Remove unnecessary directive.
2015-12-26 01:17:01 +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
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
Damien GERARD
f2bb34ccb2
Code simplification
2015-08-14 23:32:23 +02:00
Ricardo
95b2ada22f
Improve space usage in File Association dialog ( closes #637 , #654 )
...
- This improves the commit 77e816439
that didn't completely fix #535
- This fixes the remaining text cuts, while adding space for future changes.
- Round numbers for object position/sizes.
- "exts :" -> "extensions:" for clarification.
2015-08-06 13:21:39 +02:00
Damien GERARD
366a393f13
minor code cleanup for future refactoring
2015-08-06 11:50:58 +02:00
Damien GERARD
660951bdf6
Coding style / Code cleanup
2015-08-04 18:09:17 +02:00
Don Ho
77e8164390
[UPDATE] Enlarge File Association dialog's extension field. ( closes #535 )
...
The extensions field of file Association in Preferences dialog is too
small to display entire extensions if the scroll bar appears.
2015-08-02 01:32:37 +02:00
Don Ho
7164d4f516
[ENHANCEMENT] Make smooth font optional
...
The old behaviour enabled smooth font and it didn't allow user to change
this setting. The new behaviour makes it optional and turn it off by
default.
2015-07-16 12:52:16 +02:00
Damien GERARD
4d0597136c
Fixed compilation error introduced by 0cd514de
2015-07-15 14:17:48 +02:00
Damien GERARD
23cd144198
Applied coding style / cleanup
2015-07-15 14:09:31 +02:00
Damien GERARD
0cd514de13
Added some missing extensions to File Associations ( closes #306 , fixes #375 )
2015-07-15 13:12:02 +02:00
Christian Grasser
d6c72fa3f7
Merge branch 'master' of https://github.com/notepad-plus-plus/notepad-plus-plus into x64_build_adaptions
2015-06-18 07:23:03 +02:00
Don Ho
c14f87c4b0
[UPDATE] Replace "Forum" command by "Live Support" one.
2015-06-18 01:35:15 +02:00
Don Ho
9ad71107e9
[BUG_FIXED] Lock some operations for data integrality.
...
Use mutex of Yuni library to lock critical operation for the
compatibility of windows xp sp2.
For more info of Yuni library: https://github.com/libyuni
2015-06-12 22:10:37 +02:00
Don Ho
0ee535b263
[BUG_FIXED] Make retro-compatibility with xp sp2
2015-06-12 00:26:00 +02:00
Christian Grasser
a8a6f2c881
- avoid some compiler warning
...
- build also without SCI_OWNREGEX
2015-06-11 17:41:07 +02:00
Christian Grasser
324a29a848
Merge branch 'GWLP_648' of https://github.com/chcg/notepad-plus-plus into x64_build_adaptions
2015-06-08 13:51:57 +02:00
Christian Grasser
edfa987f4e
x64 issue, replace int for bufferid by bufferid itself, otherwise x64 crashes as bufferid aka buffer * differs from int under x64
2015-06-08 12:11:10 +02:00
Don Ho
251e987a71
[NEW_FEATURE] Add 2 context menus on status bar
...
Add language context menu and EOL conversion context menu on status bar.
2015-06-08 03:19:34 +02:00
NN
def5952213
Merge branch 'master' into DlgProc
2015-06-03 07:19:34 +03:00
Don Ho
bc94d07766
[UPDATE] Unprecompile headers (part 4 - final)
2015-06-03 00:55:28 +02:00
Don Ho
246c8bd168
[UPDATE] Unprecompile headers (part 3)
2015-06-02 18:01:47 +02:00
Don HO
3f1e3da7d2
Merge pull request #153 from NN---/VS2015
...
[UPDATE] Make compilation on VS2015
2015-06-01 23:48:04 +02:00
NN
c18101823a
Add missing files.
...
Add warning 4091 to be ignored.
Define _CRT_NON_CONFORMING_WCSTOK globally.
2015-06-01 21:40:20 +03:00
NN
dbb43a729f
DlgProc returns INT_PTR and not BOOL. Use correct prototype and remove casts.
...
See https://msdn.microsoft.com/en-us/library/windows/desktop/ms645469(v=vs.85).aspx
2015-06-01 21:30:41 +03:00
Andreas Jönsson
933aae4fc2
Improve str2Clipboard.
...
Make it take generic_string instead of TCHAR*, since at most callsites
we already have a generic_string.
Improve error handling. Depending on where we are in the function when
we get an error, we need to free the memory, unlock the memory, or
close the clipboard.
Note that if SetClipboardData succeeds then we should not do anything
more to the memory.
2015-06-01 18:47:24 +02:00
Andreas Jönsson
d6081a5f37
Improve copy functionality in find results window
...
Just copy the actual results, without the additional formatting with
line and file name. It respects the hierarchy in the results, i.e.
you can copy all results from a search operation, or from a specific
file, or just the lines you selected.
2015-06-01 18:39:22 +02:00
Don Ho
e9e710a3d4
[UPDATE] Unprecompile headers (part 2)
2015-05-31 22:40:07 +02:00
Don Ho
b35e759d11
[UPDATE] Unprecompile headers
2015-05-31 15:57:17 +02:00
Don HO
17e8ca3c15
Merge pull request #120 from andreas-jonsson/tempfix_corruption
...
[BUG_FIXED] Prevent big file corruption on some long period operations.
2015-05-30 18:00:16 +02:00
Don Ho
7f6dd17f03
[CODE_ENHANCEMENT] Code enhancement.
2015-05-28 01:22:28 +02:00
Andreas Jönsson
5b28e27b3d
Add "static" to get internal linkage.
2015-05-26 22:54:11 +02:00
Andreas Jönsson
2a7ef2ecf0
Guard long-running operations with a mutex
...
The session snapshot feature runs in its own thread and access to
Scintilla etc is not thread-safe. As a *temporary* and *non-exhaustive*
fix we guard some long-running operations (undo, redo, replace, sort)
with a mutex to prevent data corruption.
2015-05-26 15:58:46 +02:00
Don HO
56ceaf5546
Merge pull request #117 from NN---/VS2015
...
[ADD] Add VS2015 project file and make notepad++ project compatible with VS2015.
2015-05-26 09:12:03 +02:00
Don HO
805ab2b9ff
Merge pull request #86 from andreas-jonsson/decimal_sort
...
[NEW_FEATURE] Refine sort lines feature: Add Sort Lines Lexicographically/Integer/Decimal (comma) /Decimal (dot) with Ascending and Descending commands.
2015-05-25 22:59:26 +02:00
Andreas Jönsson
7c3376ae6b
Use a rectangular selection as sort key.
2015-05-21 15:53:48 +02:00
NN
f867f40cb9
Add warnings description.
2015-05-20 12:39:28 +03:00
Andreas Jönsson
626dc02c4c
Use old-style loop to be compatible with VS2010.
2015-05-20 08:25:14 +02:00
NN
2ef5e5eca3
Support compilation in VS2015.
...
Changes:
_CRT_NON_CONFORMING_WCSTOK - to have old wcstok behaviour
dbghelp.h doesn't disable warnings, do it manually.
Better casting from pointer to integral.
Disable warnings in tinyXml headers.
Disable warnings 4456;4457;4459 to not touch the source.
More details about the warnings: http://blogs.msdn.com/b/vcblog/archive/2014/11/12/improvements-to-warnings-in-the-c-compiler.aspx
2015-05-19 14:01:27 +03:00
Andreas Jönsson
7b9c342bda
Fix outdated comment.
2015-05-18 09:32:24 +02:00
Robert Dailey
5c69e59187
Enable multiprocessor build
...
Project now utilizes the /MP compiler switch to perform
parallelized builds. The number of parallel builds performed
is determined on a per-machine basis based on available
logical CPUs.
Long term this will provide the best performance output to
code maintainability ratio compared to just enabling
precompiled headers.
Using my personal machine (8 cores), I got the following
timings (Debug configuration):
* Normal build : 89 seconds
* Multi-processor build : 28 seconds
* PCH enabled : 27 seconds
Note that the multi-processor build timings can be further
reduced with proper dependency management and removal of
existing precompiled header file (precompiledHeaders.h).
Specific Changes:
* Precompiled header support disabled (not compatible with
/MP flag).
* precompiledHeader.cpp deleted.
* Solution File added.
* Minimal Rebuild (/Gm) disabled (ignored when /MP is on).
precompiledHeaders.h still exists because it contains a ton of
inclusions required by lots of files. A second and less trivial
cleanup will involve removing the precompiledHeaders.h file and
individually correcting and satisfying dependencies in each source
file in the code base.
2015-05-17 22:34:34 -05:00
Andreas Jönsson
91da641adc
Use initializer list in ISorter.
2015-05-17 21:50:06 +02:00
Andreas Jönsson
be230c1a29
Add a version of std::stod which takes locale.
...
We need a string-to-double conversion function which acts the same on
all computers, irrespective of which locale is running. We need to
guarantee that the function expects '.' as the decimal point, and not
','. The choice of en-US is more or less arbitrary.
2015-05-17 21:23:08 +02:00
Andreas Jönsson
0e42d3348a
Fix handling of negative numbers + empty lines.
2015-05-17 20:05:25 +02:00
Andreas Jönsson
d0bafb7fba
Add more options for sorting.
...
User can now choose between lexicographic, integer and decimal sorting.
For decimal sorting there are two further options: decimal point ('.')
or decimal comma (',').
When doing integer/decimal sort, the parsing is not as strict as
before. E.g during integer sorting the program will interpret "123abc"
as 123.
Performance of integer sorting has been improved by 30%.
The implementation of sorting is delegated to classes which implement
the new "ISorter" interface. Unfortunately due to template issues most
of the code had to go in the header file.
2015-05-17 19:18:43 +02:00
Don Ho
50410cc744
[BUG_FIXED] Fix compiling problem in debug mode
...
This problem is due to the sort lines enhancement.
2015-05-15 19:41:59 +02:00
Andreas Jönsson
83de4a9da2
Use long long in numeric sort (ie 64 bit numbers).
2015-05-11 09:26:31 +02:00
Andreas Jönsson
ee225f5cad
Handle empty lines properly in numeric sort.
2015-05-10 11:00:58 +02:00
Andreas Jönsson
936d9c56fc
When sorting, reserve enough space for work + output.
2015-05-10 10:30:17 +02:00
Andreas Jönsson
dd846658e6
Use new kind of loop.
2015-05-10 10:27:36 +02:00
Andreas Jönsson
501ce1d689
Make reference signs consistent.
2015-05-10 10:25:56 +02:00
Andreas Jönsson
83c16755ab
Don't cache int->string conversion, it doesn't speed up anything.
2015-05-09 21:23:40 +02:00
Andreas Jönsson
4b3fbdd570
Don't throw pointers (MFC habit).
2015-05-09 13:25:36 +02:00
Andreas Jönsson
e258bcb3a7
Speed up numeric sorting by 10x.
...
Convert strings to int, sort, then convert back to strings.
2015-05-09 13:20:37 +02:00
Andreas Jönsson
bcbe48b13f
Make stoi_CountEmptyLinesAsMinimum more restrictive.
...
It now only accepts digits and possibly a single minus character as the first character.
Ordinary std::stoi has too much special magic, e.g. it converts "1 a" to "1".
2015-05-09 12:49:47 +02:00
Andreas Jönsson
0eca4db949
Improve numeric sorting. No need to read lines from Scintilla, we already
...
have them in a vector.
2015-05-09 11:25:07 +02:00
Andreas Jönsson
eee7c4f16e
Sort numerically (not lexicographically) if all lines are integers.
2015-05-09 11:02:58 +02:00
Andreas Jönsson
c926e18f42
Use more const.
2015-05-09 08:34:44 +02:00
Andreas Jönsson
1f4a1fb2e7
Optimize sort.
...
Remove custom, recursive implementation of quicksort which becomes too
slow to use after a couple of hundred lines.
2015-05-08 23:27:21 +02:00
Andreas Jönsson
930464fb8c
Cleanup after comments in pull review.
2015-04-25 08:59:38 +02:00
Don Ho
73f47a2c04
[BUG_FIXED] Fix Setting on Cloud for dropbox not working issue.
2015-04-06 01:49:53 +02:00
Don Ho
f224c673bf
[NEW] (Author: Pavel Nedev) Add notification for plugins : NPPN_BEFORESHUTDOWN NPPN_CANCELSHUTDOWN NPPN_FILEBEFORERENAME NPPN_FILERENAMECANCEL NPPN_FILERENAMED NPPN_FILEBEFOREDELETE NPPN_FILEDELETEFAILED NPPN_FILEDELETED
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1346 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-21 18:20:50 +00:00
Don Ho
b09a7c17f3
[NEW_FEATURE] Add new possibility to launch the auto-typing text from command line:
...
-qnQuoterName
-qfQuoteFileNameFullPath
-qtQuoteText
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1328 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-01 12:16:12 +00:00
Don Ho
b1f84d2788
[NEW] Add some menu accelerator.
...
[UPDATE] Fix some typos and syntax issues.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1299 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-30 02:17:49 +00:00
Don Ho
770624c9c5
[BUG_FIXED] Make getFileName safer.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1274 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-25 22:05:45 +00:00
Don Ho
44c291aee5
[NEW] Add new notification NPPN_SNAPSHOTDIRTYFILELOADED to notify plugins that a snapshot dirty file is loaded on startup.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1265 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-07-26 09:47:14 +00:00
Don Ho
f3407442db
[NEW_FEATURE] Add 2 new plugins APIs: NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR & NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR
...
[NEW_FEATURE] Make internal docking dialog match/follow the selected theme's background and foreground colors.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1259 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-07-16 11:20:58 +00:00
Don Ho
bad9b9dbbf
[NEW_FEATURE] Settings on cloud - dropbox.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1242 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-06-02 07:02:46 +00:00
Don Ho
e3208e4ce2
[BUG_FIXED] Fix docking error messages displaying due to bad detection of windows version.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1236 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-05-10 01:12:44 +00:00
Don Ho
6e9b5a64b1
[ENHANCE] Make extension column optional in vertical file switcher.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1170 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-01-14 08:03:33 +00:00
Don Ho
81f5a3613e
[BUG_FIXED] Fix sort settings bug in function list while reloading.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1137 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-10-21 21:50:04 +00:00
Don Ho
ea1f12e7a2
[ENHANCEMENT] Warn to user for unfound result of functionlist.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1131 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-10-14 06:09:48 +00:00
Don Ho
0da8942be8
[NEW_FEATURE] Add search ability into function list.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1130 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-10-12 09:10:03 +00:00
Don Ho
5ade0c4821
[NEW_FEATURE] Add Coffee script support.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1117 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-09-14 19:35:34 +00:00
Don Ho
31b15392a5
[ENHANCEMENT] Enhance delimiter selection settings GUI.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1083 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-07-24 00:35:27 +00:00
Don Ho
6264ef03d0
[ENHANCEMENT] Code optimization.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1073 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-07-08 00:12:50 +00:00
Don Ho
f80a49148e
[BUG_FIXED] (Author: Andreas Jonsson) Minor fixes.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1072 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-07-07 21:33:19 +00:00
Don Ho
a62ecb6449
[ENHANCEMENT] Enhance the performance to get once the length in the for loop.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1041 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-05-15 07:28:55 +00:00
Don Ho
36b9b7cc8c
[NEW_BEHAVIOUR] Remove the result dialogs of Find/Replace dialog. Display the error/result in the new added statusbar of Find/Replace dialog. (di Sardegna)
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1039 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-05-11 20:55:09 +00:00
Don Ho
d6ea29c577
[NEW] Add new API NPPM_GETCURRENTVIEW.
...
Add new capacity in existent API NPPM_GETMENUHANDLE.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1028 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-03-03 01:04:09 +00:00
Don Ho
37bac16aff
[BUG_FIXED] (Author: Pekka Pöyry) Fix focus order by TAB key in preference dialog.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1004 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-01-08 01:35:09 +00:00
Don Ho
ba935673e5
[BUG_FIXED] (Author: Mike Stratoti) Enhance and stabilize the build.
...
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@999 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-01-03 01:17:59 +00:00