Commit Graph

106 Commits

Author SHA1 Message Date
Don HO
fe463dc03a Check content via document map on hovering (in progress) 2017-03-13 02:10:47 +01:00
SinghRajenM
6388d48e0c Enhance Load/Save Session Feature
1. If any session ext is set, then give preference to session ext instead
of "All Types (* . *). This is applicable for both save/load session
methods.
2. Show error message when user tries to load wrong session file (e.g. any
text file which is not a valid session file).
3. Correct typo and wrong description in a messagebox.

Closes #2921
2017-02-19 13:21:34 +01:00
SinghRajenM
746c3da88a Add to recent file history only if file is removed from all the views
There might be cases when file is cloned/moved to view. Don't add to recent list unless file is removed from all the views
Closes #2665, Fixes #2277
2016-12-24 20:57:34 +01:00
dail8859
5f3654b362 Expand environment variables in backup path
Fixes #2520, Fixes #2525
2016-11-08 08:07:32 -05:00
dail8859
a82d9f9981 Ensure backup directory exists
Failed backups result in a user error message and asks to save the file anyways. Closes #2346, Closes #2441
2016-10-23 21:07:17 -04:00
Don Ho
e31e37ebc3 Change quitOnEmpty trigger from command line to settings 2016-09-11 11:45:56 +02:00
Don Ho
000e447cb9 Fix "Folder as Workspace" not updating regression 2016-09-05 01:48:42 +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
Vineel Kumar Reddy Kovvuri
f3abc30c7a Recognize new file type via its file extension when file is created from the command line
Closes #2018, fixes #2016
This commit fixes the issue of notepad++ defaulting to 'Normal text file'
file type when creating new file form the command like:
notepad++.exe new_example_file.cpp
2016-08-14 18:28:31 +02:00
Don HO
37ed299743 Lost in Translation 2 2016-08-10 00:22:45 +02:00
Mark
8b0f5165d2 Added a -quitOnEmpty command line flag
closes #1923, Fixes #1006

-quitOnEmpty command line flag makes Notepad++ to quit when the last tab is closed. Useful for people who use Notead++ for things like editing Git commit messages (using -multiInst -notabbar -nosession), and want to signal they are done editing by closing the tab with Ctrl-W instead of Alt-F4.
2016-08-02 09:49:15 +02:00
Don HO
38ddd32ac5 Added some error checking during file saving.
Closese #1930
2016-07-15 02:18:01 +02:00
Don HO
1e38c628bc Use C++ type conversion instead of C-Style conversion 2016-07-10 02:21:15 +02:00
A-R-C-A
3f09ebc976 Fixed crash issue due to unsigned variable
Close #2035
2016-07-03 17:56:17 +02:00
gszo123
15561c8d69 Fix file saving crash due to invald buffer
While trying to save a untitled empty document, user could open a existing
file that erases the untitled document's buffer, then save action make
Notepad++ crash:
https://www.youtube.com/watch?v=balHtvy4Toc
Fixes #1857, Closes #1904
2016-06-08 01:04:41 +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
d9e62f1af6 Fix an incoherent behaviour in Log Monitoring
Quit Monitoring mode and close file (with user's permission) while
monitored file is deleted or renamed..
2016-05-12 23:59:10 +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
Maks Naumov
86ab42031f Avoid GetLongPathName() call for files with long name
Fixes #1148; Closes #1150
2016-03-18 17:09:03 +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
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
fe62ff989b Make function naming more explicite 2015-10-27 17:26:29 +01:00
Don HO
dc4897c8f2 [BUG_FIXED] Fix the crash by using wide card to open files on cmdline.
By using string instead of char * in the constructor std::string::string() make a call:
string (const string& str, size_t pos, size_t len = npos);
instead of:
string (const char* s, size_t n);
2015-08-25 14:39:11 +02: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
660951bdf6 Coding style / Code cleanup 2015-08-04 18:09:17 +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
4cca41267e [NEW_FEATURE] Save in new instance with admin privileges.
While user tries to save a file which requires administrator privileges,
another instance in admin mode could be launched to save the file in
question.
2015-06-05 18:51:52 +02:00
Don HO
c3037a91df [TYPO] Fix a typo. 2015-06-05 14:21:06 +02:00
Don Ho
246c8bd168 [UPDATE] Unprecompile headers (part 3) 2015-06-02 18:01:47 +02:00
Don Ho
e9e710a3d4 [UPDATE] Unprecompile headers (part 2) 2015-05-31 22:40:07 +02:00
Don Ho
7f6dd17f03 [CODE_ENHANCEMENT] Code enhancement. 2015-05-28 01:22:28 +02:00
Don Ho
1f8ad1e75c [BUG_FIXED] Fix a regression that system64 files cannot be opened by Notepad++. 2015-04-04 23:29:30 +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
8ec487d668 [RELEASE] Notepad++ 6.7.5 Release.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1351 f5eea248-9336-0410-98b8-ebc06183d4e3
2015-03-10 20:53:52 +00: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
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
1d92d189b3 [FIX] Fix typo.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1288 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-11-12 17:49:30 +00:00
Don Ho
d815ae4981 [BUG_FIXED] (Author: Pavel Nedev) Fix docSwitcher bug which shows new 0 after loading a session of files.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1279 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-10-15 22:24:14 +00:00
Don Ho
c92f6cc91d [NEW] Apply new file default settings on created new file (opened via commandline).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1269 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-08-02 11:28:42 +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
908d12a061 [BUG_FIXED] Fix a saving issue in session snapshot & periodic backup feature while backup file is deleted or read-only.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1247 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-06-07 13:04:09 +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
7bfcda086d [RELEASE] Notepad++ 6.6.2 Release.
[BUG_FIXED] Fix session snapshot enabled issue even "remember current session" option is disabled.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1235 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-05-08 20:48:03 +00:00
Don Ho
f8fd88b96b [RELEASE] Notepad++ 6.6 Release (Workers' Day Edition).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1232 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-05-01 21:08:46 +00:00
Don Ho
85a6d2c054 [NEW_FEATURE] Automatic Backup System: uniq untitled tab name.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1229 f5eea248-9336-0410-98b8-ebc06183d4e3
2014-04-27 10:14:19 +00:00