Commit Graph

244 Commits

Author SHA1 Message Date
Don HO
f0e1ecdc72 Add ghost typing Unicode capacity 2018-03-07 02:17:26 +01:00
Don HO
789cf387df Make new entries translatable 2018-03-02 20:23:24 +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
Don HO
bd0867ee62 Add new language and update translations 2018-02-19 11:40:47 +01:00
Don HO
213af53389 Add more translations
Find dialog status bar messages are translatable.
Add more shortcut mapper translation entries.
2018-02-14 10:02:55 +01:00
Don HO
fb17638de7 Enhance Shortcut Mapper and make it translatable 2018-02-10 18:52:59 +01:00
Don HO
1a86603a0c Make more dialog strings translatable 2018-02-04 21:38:49 +01:00
SinghRajenM
926a5f5300 Fix menu items' state is not maintained due to save macro command
Fixes #4112, fixes #4114, closes #4115
2018-01-30 09:26:08 +01:00
Don Ho
e339c0f600 Notepad++ 7.5.2 release 2017-11-27 09:32:44 +01:00
SinghRajenM
60f113727c Remove unused/empty encoding from shortcut mapper
Closes #3763
2017-11-25 14:54:45 +01:00
Don HO
4005bf4182 Add DSpellCheck plugin into distribution 2017-11-23 22:44:22 +01:00
Oleksandr Redko
c304b3b873 Fix static analyzer message "The ternary operator always returns constant"
V583 The '?:' operator, regardless of its conditional expression, always returns one and the same value: 22. nppcommands.cpp 1696
2017-10-29 18:18:22 +02:00
Don HO
1c5e6191bd Adapt json format for Plugin admin 2017-09-24 18:27:42 +02:00
Don HO
e2f5f51fbc Read plugin list as json format (in progress) 2017-09-17 00:52:35 +02:00
Thomas Linder Puls
854acae4a1 Add Visual Prolog language support
Closes #1439
2017-08-25 09:43:36 +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
SinghRajenM
194376d6d7 Fixed monitoring related issuse and corrected code
Updated file "NppIO.cpp" to deal with issue #3553

However both existing and updated code looks same, but it is not.
command(IDM_VIEW_MONITORING);
looks equal to

buf->stopMonitoring();
checkMenuItem(IDM_VIEW_MONITORING, false);
_toolBar.setCheck(IDM_VIEW_MONITORING, false);
buf->setUserReadOnly(false);
Updated code works on the current file being processed while existing code command(IDM_VIEW_MONITORING); works with current active buffer. Debugging for reported case can help to understand the above statement.

Justification for updating file "NppCommands.cpp":

See static HANDLE hThread gets a handle when monitoring is activated on a tab.
This handle is overwritten if monitoring is activated on another tab. Resource leak happens here as previous handle can't be closed at all.
However, this handle is not used anywhere in the code, then just why not to close the handle as soon thread is created.

Closes #3554, fixes #3553
2017-07-24 19:28:26 +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
c8969b773f Add SWIFT language support 2017-06-17 20:03:28 +02:00
Don HO
11accf92e9 Fix issue of lossing syntax highlighting during "save as"
The new behaviour is: as user set a new syntax highlighting once, the
new file extension of "save as" will be ignored.

Fixes #1298
2017-05-09 01:59:05 +02:00
Don HO
f4228f5e52 Add "droppong folder as workspace" warning while both files and folddrs are being dropped. 2017-05-02 20:01:53 +02:00
Don HO
20e669ff01 Add document snapshot feature (in progress) 2017-04-18 01:31:41 +02:00
Don HO
a308ea57b7 Fix a typo
Closes #3077
2017-03-20 11:27:11 +01:00
Richard Brock
133977da67 Fix the mouse wheel to task list scroll crash issue
Closes #2982, fixes #1616, fixes #2603, fixes #2828, fixes #607
2017-03-06 03:25:42 +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
SinghRajenM
896d0ab695 Fix toolbar not showing issue while launching Notepad++ from system tray
Fixes #2600, closes #2729
2017-02-11 12:26:03 +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
Don HO
1d59e3ed0e Plugin Admin (in progress) 2017-02-10 00:08:29 +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
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
Don Ho
8fc1a2ed30 Add MD5 functionalities 2017-01-01 18:28:25 +01:00
dail8859
5af1c055d1 Correctly identify when a macro is playing
In certain cases (e.g. running the current macro until the end of file) and auto-completion and auto-indentation was not getting turned off, causing certain commands to get interpreted incorrectly. Closes #2553, Closes #2545, Closes #2556
2016-11-12 11:20:51 -05:00
Rajendra Singh
029cb09893 Fix Folder as Workspace toolbar icon inconsist behaviour
Fix Folder as Workspace toolbar button inconsist state while closing
Folder as Workspace windows directely (by clicking X button)

Fixes #2249, closes #2263
2016-10-07 20:15:10 +02:00
Don Ho
53ca639b17 Adapt wingup new version 4.1 to distinguish between 32 and 64 bit for update 2016-09-20 01:01:40 +02:00
Don Ho
f71fd6c63f Make command name more accurate
"Title Case" to "Proper Case"
2016-09-10 12:30:43 +02:00
MaxXor
0f44c299f2 Change repository URls
Closes #2219
2016-09-09 23:52:24 +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
863c4e90c1 Add open file on selection & open container on selection commands 2016-08-22 00:52:26 +02:00
Don Ho
fe01f7501b Update translations
Update english.xml, english_customizable.xml, chinese.xml, french.xml to
7.0
A minor refactoring
2016-08-19 13:39:31 +02:00
Don HO
37ed299743 Lost in Translation 2 2016-08-10 00:22:45 +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
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
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
dail8859
0273917bbe Fix open in explorer problem while path contain unusual characters
Wrap path arg in quotes to properly open explorer

Closes #1689, fixes #1628
2016-05-15 22:42:59 +02:00
dail8859
4c6e5af484 Safely convert EOLs
Prevent eol conversion frrom readonly file.
Closes #1702, Closes #1701, Closes #1581, Closes #1371
2016-05-14 11:02:16 +02:00
Don Ho
4268349bf0 Fix crash bug in Log Monitoring while monitoring a large file 2016-05-11 02:18:04 +02:00
Don HO
2ff03fe250 New feature: Log Mornitoring (tail -f)
This feature allows users to monitor log files' writing, as Unix "tail -f"
command.
Here are the conditions of monitoring:
1. file to monitor should exist.
2. file will be set as readonly during monitoring.
3. each update will scroll to the last line.
2016-05-07 12:12:18 +02:00
Don Ho
93c704c857 Add "Open Folder as Workspace" command in file menu 2016-03-19 16:15:21 +01:00
dail8859
24c11375cf Use SCI_SETTARGETRANGE where possible 2016-03-03 21:25:48 +01:00
YWX
cfa57b6818 Notepad++ support both SCLEX_FORTRAN and SCLEX_F77
Closes #1381
2016-03-01 21:34:52 +01:00
Don Ho
058c9d5923 Folder as Workspace (implementation done) 2016-02-08 01:34:33 +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
Don Ho
773397d6ea Add Debug Info feature 2015-12-07 01:15:17 +01:00
Don Ho
fe62ff989b Make function naming more explicite 2015-10-27 17:26:29 +01:00
Don Ho
280ddcd493 Make the EOL type more explicite 2015-10-27 15:35:19 +01:00
dail8859
459d59f8ba Update DocMap when setting user or external lexer
Closes #1050, fixes #1009
When setting the language to a user defined or external lexer, the DocMap
was not being refreshed to the new syntax.
2015-10-26 00:17:47 +01:00
dail8859
7781f1d03e Fix possible file corruption during macro playback
closes #1007, closes #919, closes #834
When backups are enabled, playing back a macro that takes a while can
corrupt a file (see the mentioned issues). I tested this with a ~100,000
line text file, ~3.3MB in size. Created a macro of Down5, Delete10. Played
this till the end of the file. Took about 20s to run so it had a few
backup cycles during it. Reproduced it fairly easily and never had it
happen after this adjustment.
2015-10-24 19:32:37 +02:00
Don Ho
981ee5ed72 Fix macro playback inseting/removing characters randomly.
Fix macro playback inseting/removing characters randomly due to
auto-insert interfering during macro recording and playing back. (fixes
#649, fixes #970, fixes #304, fixes #992)
2015-10-07 17:55:29 +02:00
Don Ho
7a25c9827e Make tabbar higher 2015-09-22 20:33:28 +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
2739a973d7 [RESTORE] Add back "Notepad++ Community (Forum)" menu item 2015-08-15 16:29:17 +02:00
Damien GERARD
d56d42269f Code: remove useless code 2015-08-14 06:06:50 -07:00
Damien GERARD
2ad6ba5a44 Code: using enum class for FormatType 2015-08-14 05:57:19 -07:00
Damien GERARD
3fb1d96671 Some warning fixes 2015-08-14 04:32:38 -07:00
Damien GERARD
4a20a4c412 Fixed buffer overrun when opening a recent file (fixes #558) 2015-08-06 13:49:14 +02:00
Damien GERARD
366a393f13 minor code cleanup for future refactoring 2015-08-06 11:50:58 +02:00
Don Ho
11ad9f699a [BUG_FIXED] Fix a regression of Preferences dialog (closes #570)
In v6.8, some options in Preferences dialog are not applied dynamically.
This fix makes them work again.
2015-07-25 17:25:10 +02:00
gallegretti
8bec636304 Added missing macro commands (fixes #374, closes #454) 2015-07-15 11:59:05 +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
4ace901a07 [UPDATE] Method getContextMenuFromXmlTree refactoring
The method getContextMenuFromXmlTree of NppParameters is too long to
maintain. Making 2 new methods to make the method in question more
readable.
2015-06-14 17:49:27 +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
246c8bd168 [UPDATE] Unprecompile headers (part 3) 2015-06-02 18:01:47 +02: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
Don Ho
e9e710a3d4 [UPDATE] Unprecompile headers (part 2) 2015-05-31 22:40:07 +02:00
Andreas Jönsson
3ca488d0bc Also sync when pasting.
See Sourceforge #5327.
2015-05-30 10:16:19 +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
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
Don HO
f7e5be4e2b Merge pull request #12 from dail8859/splitlines
[ENHANCEMENT] "Split Lines" uses the edge mode if enabled.
2015-05-24 19:18:59 +02:00
Don Ho
b85fc02841 [RELEASE] Notepad++ 6.7.8.2 release 2015-05-23 14:14:33 +02:00
Don Ho
d3c7ade18c [NEW] Prevent from launching updater under XP due to the obsolet security
layer
2015-05-22 21:11:08 +02:00
Andreas Jönsson
7c3376ae6b Use a rectangular selection as sort key. 2015-05-21 15:53:48 +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
Andreas Jönsson
351b9b6bff Rename quickSortLines -> sortLines. 2015-05-09 10:05:45 +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
Don Ho
6bf823d3f8 [BUG_FIXED] Fix Tab close button too small issue with a very high resolution display. 2015-05-01 19:51:59 +02:00
dail8859
ec2bb7f8b7 [UPDATE] "Split Lines" uses the edgemode if enabled 2015-04-29 16:39:52 -04:00
Don Ho
ce9810ecb5 [NEW_FEATURE] Add "Restore last closed file" (Ctrl+Shift+T) feature. 2015-04-07 02:10:03 +02:00
Don Ho
55099cb4b7 [BUG_FIXED] (Author: Alexander Riccio) Fix several bugs.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1352 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-03-14 22:55:03 +00:00
Don Ho
bab1575d2b [BUG_FIXED] (Author: Mike Cowperthwaite) Restore focus to editor when a panel is closed.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1337 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-02-09 08:33:01 +00:00
Don Ho
15542d7c8d [BUG_FIXED] Fix NPPM_LAUNCHFINDINFILESDLG API regression issue.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1315 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-24 02:03:52 +00:00
Don Ho
bf76a3f5ee [RELEASE] Notepad++ 6.7.1 Release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1313 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-21 19:43:40 +00:00
Don Ho
d2651832ea [BUG_FIXED] Fix undo actions on unsaved snapshot file removing the dirty state bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1304 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-09 23:16:48 +00:00
Don Ho
428df19cbc [NEW] Document map follows the current text direction (RTL/LTR).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1303 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-07 16:43:31 +00:00
Don Ho
134920648d [BUG_FIXED] Make "Text Direction RTL" command and "Text Direction LTR" command work without reloading file.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1302 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-07 01:23:05 +00:00
Don Ho
80da43da5c [NEW] Allow users to disable easter eggs in Notepad++ by adding noEasterEggs.xml in Notepad++ installed directory.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1300 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-12-01 22:39:08 +00:00