108 Commits

Author SHA1 Message Date
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
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
Damien GERARD
f2bb34ccb2 Code simplification 2015-08-14 23:32:23 +02:00
Damien GERARD
660951bdf6 Coding style / Code cleanup 2015-08-04 18:09:17 +02:00
Damien GERARD
23cd144198 Applied coding style / cleanup 2015-07-15 14:09:31 +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
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
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
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
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
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
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
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
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
Don Ho
0011deec48 [ENHANCEMENT] (Author: FLS) Enhance comment operations: Stream Uncomment added, cross-calling of block.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@948 f5eea248-9336-0410-98b8-ebc06183d4e3
2012-08-31 19:14:00 +00:00
Don Ho
5d28d74ac7 [ENHANCEMENT] (Author: Anton Vasiliev) Add some enhancement to common functions.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@908 f5eea248-9336-0410-98b8-ebc06183d4e3
2012-05-03 01:02:54 +00:00
Don Ho
a896922136 [UPDATE] Update the GPL of all project source code to avoid the bundle version made by the tiers sites : cnet, softonic and 01net.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@896 f5eea248-9336-0410-98b8-ebc06183d4e3
2012-04-15 16:54:38 +00:00
Don Ho
e82e63d3a6 [BUG_FiXED] Fix the crash issue while execute "Add Files from Directory" command (Project Manager).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@835 f5eea248-9336-0410-98b8-ebc06183d4e3
2011-11-01 23:42:00 +00:00
Don Ho
8daa455c0d [NEW_FEATURE] Add "adding files from folder" for Project Manager.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@833 f5eea248-9336-0410-98b8-ebc06183d4e3
2011-10-31 01:25:40 +00:00
Don Ho
9cddb4903d [NEW_FEATURE] Make Recent File List totally customizable (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@781 f5eea248-9336-0410-98b8-ebc06183d4e3
2011-06-27 01:23:58 +00:00
Don Ho
9d733b29cc [NEW_FEATURE] Add a new capacity in context menu: the menu item and folder item can be renamed in any language.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@697 f5eea248-9336-0410-98b8-ebc06183d4e3
2010-11-07 03:00:27 +00:00
Don Ho
948f281eb0 [BUG_FIXED] (Author: François-R Boyer) Fix DBCS encodings file saving corruption bug.
[BUG_FIXED] (Author: François-R Boyer) Fix file containing NULL character loading bug.
[ENHANCEMENT] (Author: François-R Boyer) Improve getCurrentDocCharCount() method performance.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@651 f5eea248-9336-0410-98b8-ebc06183d4e3
2010-08-16 16:52:03 +00:00
Don Ho
e0773602b2 [UPDATE] Update the readmeFirst.txt for the build information.
Remove systemMessage().
Fix symbol redefinition due to Scintilla header update.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@642 f5eea248-9336-0410-98b8-ebc06183d4e3
2010-07-18 12:38:27 +00:00
Don Ho
7a236ed330 [BUG_FIXED] Fix comment stream without selection bug.
[BUG_FIXED] Fix Find in files results highlighting problem.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@619 f5eea248-9336-0410-98b8-ebc06183d4e3
2010-02-24 00:06:12 +00:00
Don Ho
b3f11896eb [RELEASE] Notepad++ v5.6.7 release.
[CHANGE_BEHAVIOUR] Enlarge regconition of clickable link from "http://" to any URI.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@617 f5eea248-9336-0410-98b8-ebc06183d4e3
2010-02-21 18:17:54 +00:00
Don Ho
99042edb28 [BUG_FIXED] Fix "finds in all opened files" crash bug.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@615 f5eea248-9336-0410-98b8-ebc06183d4e3
2010-02-20 01:07:35 +00:00
Don Ho
553e47d580 [RELEASE] Notepad++ v5.6 release.
[NEW_FEATURE] Add ISO_8859-1 to ISO_8859-16 encodings.
[BUG_FIXED] Fix last recent file list menu items localization encoding bug.
[BUG_FIXED] Fix last recent file number goes to zero issue.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@575 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-11-30 01:31:55 +00:00
Don Ho
90f5338cb5 [NEW] Add Chinese simplified, Japanese, Korean, Thai... encodings.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@565 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-11-20 00:26:38 +00:00