Solution #2:
Provide a way to load and edit only a portion of a file
Written by
eksortso the 24 Jun 09 at 02:48.
This may require a more complex implementation, but a file could be opened to only the first N lines or the last N lines (ideal for logs), or some window in between. All edits could be applied to the window only, and unloaded lines could not be edited. In addition, whole-file options (such as "Rename Me" or "Delete Me") would be grayed out while this mode is active.
An alternate approach could be to open a single file into several easy-to-handle portions in separate tabs.
This could be a good option for a plugin developer to pursue.
This may require a more complex implementation, but a file could be opened to only the first N lines or the last N lines (ideal for logs), or some window in between. All edits could be applied to the window only, and unloaded lines could not be edited. In addition, whole-file options (such as "Rename Me" or "Delete Me") would be grayed out while this mode is active.
An alternate approach could be to open a single file into several easy-to-handle portions in separate tabs.
This could be a good option for a plugin developer to pursue.
Solution #3:
Swap out Scintilla with another free editor or reader as needed.
Written by
eksortso the 24 Jun 09 at 02:57.
If possible, a large file could be opened in a view that is not a Scintilla widget. This could be difficult to implement, but the potential benefits for large-file users would be immediate. A special no-frills editor, or an editor that can load documents incrementally, could be used in place of Scintilla at the user's request. In addition, read-only widgets with advanced searching and indexing features could be loaded and used.
The downside to this is that N++ could become too Emacs-like, allowing far more functionality inside a text editor than what ought to be tolerated. It could also be an upside, but you get my drift.
If possible, a large file could be opened in a view that is not a Scintilla widget. This could be difficult to implement, but the potential benefits for large-file users would be immediate. A special no-frills editor, or an editor that can load documents incrementally, could be used in place of Scintilla at the user's request. In addition, read-only widgets with advanced searching and indexing features could be loaded and used.
The downside to this is that N++ could become too Emacs-like, allowing far more functionality inside a text editor than what ought to be tolerated. It could also be an upside, but you get my drift.
Solution #4:
Add a "minimal mode" to Npp for very large files.
Written by
joleg74 the 13 Jul 09 at 16:00.
On the behalf of: lucas_malor
I think a better solution for big files is to add a "minimal mode" to Npp. Where
Npp is in this mode, it should:
1. alert it is in "minimal mode" with a slide alert (as Firefox do when you
can save passwords)
2. disable all plugins
3. disable all autocomplete features
4. do not apply syntax styles
5. disable all highlight and similar features
6. do not wrap the output
7. do not show any simbols (white chars, indent guide, ...)
8. disable indent features (folding etc.)
9. do not display vertical edges
10. do not save session at exit
11. disable clickable link feature
12. disable file status auto-detection
This mode can be started automatically when a large file is opened, as suggested,
but it could also added as a command line argument.
On the behalf of: lucas_malor
I think a better solution for big files is to add a "minimal mode" to Npp. Where
Npp is in this mode, it should:
1. alert it is in "minimal mode" with a slide alert (as Firefox do when you
can save passwords)
2. disable all plugins
3. disable all autocomplete features
4. do not apply syntax styles
5. disable all highlight and similar features
6. do not wrap the output
7. do not show any simbols (white chars, indent guide, ...)
8. disable indent features (folding etc.)
9. do not display vertical edges
10. do not save session at exit
11. disable clickable link feature
12. disable file status auto-detection
This mode can be started automatically when a large file is opened, as suggested,
but it could also added as a command line argument.
Solution #5:
Adding command-line arguments edit
Written by
cchris the 23 Jan 10 at 14:39.
Written by hkubba the 22 Jan 10 at 19:24 as solution #198 to his new idea #136, marled as duplicate.
Just as a suggestion, can we have 2 command-line arguments:
-LinesFromEnd 50
-LinesFromStart 80
the first will only show the last 50 lines, the second will only show the first 80, using them both will only show beginning 80 and end 50 lines of a file
Later on, a warning could be added if you try to open a file > 100M for example, and advice to use the arguments
Written by hkubba the 22 Jan 10 at 19:24 as solution #198 to his new idea #136, marled as duplicate.
Just as a suggestion, can we have 2 command-line arguments:
-LinesFromEnd 50
-LinesFromStart 80
the first will only show the last 50 lines, the second will only show the first 80, using them both will only show beginning 80 and end 50 lines of a file
Later on, a warning could be added if you try to open a file > 100M for example, and advice to use the arguments
Solution #6:
"Minimal Mode" alternate
Put the code in N++ to automatically detect when available memory and any other resources are insufficient to open and work with the file being opened. Then alert the user that the file can only be opened in "minimal mode" meaning many TBD features will not be available.
Also, allow users the option to select "open in minimal mode" beforehand.
Thank You.
Put the code in N++ to automatically detect when available memory and any other resources are insufficient to open and work with the file being opened. Then alert the user that the file can only be opened in "minimal mode" meaning many TBD features will not be available.
Also, allow users the option to select "open in minimal mode" beforehand.
Thank You.
Solution #7:
Have a read-only mode for viewing large logs.
Written by
joleg74 the 23 Mar 10 at 18:20.
99.9% of the time, when users open really large files, they mostly want to view a log and have no need to edit it.
With this in mind, I suggest that we implement a read only mode that would not load the entire file in memory, but rather work with the file from disk. This would have the downside of not being able to edit the file, but we could open files of any size and browse through them rather quickly.
99.9% of the time, when users open really large files, they mostly want to view a log and have no need to edit it.
With this in mind, I suggest that we implement a read only mode that would not load the entire file in memory, but rather work with the file from disk. This would have the downside of not being able to edit the file, but we could open files of any size and browse through them rather quickly.
Solution #8:
dynamic loading of portions / chunks
Written by
bfez the 6 Apr 10 at 22:57.
Just like Solution #2 opening only fractions of the big file seems reasonable. This could be done automatically.
When opening the file the first 1000 lines are opened (could be done based on some parameters (performance of machine, number of lines visible in editor)) in the editor.
In the background the file is read further to count the newline characters and note their positions in the file.
With the information of the count and position of the newline characters the editor can show the scrollbar in a correct manner.
When scrolling the editor should reload the part the user wants to see at the moment +- several hundred lines.
The UI wouldn't change (maybe some notification of the loading state of a file) but the solution requires some complex abstraction...
So depending on the internal structure this could be a quite difficult task.
Never the less I'd prefer this way of handling the problem.
Maybe the code of some hex-editor has solved this problem already. I remember using some hex-editor that supported inserting new data in the middle of a file. Seemed pretty fast back than.
The SGI rope container has a load on demand feature which is most likely very handy for this.
Just like Solution #2 opening only fractions of the big file seems reasonable. This could be done automatically.
When opening the file the first 1000 lines are opened (could be done based on some parameters (performance of machine, number of lines visible in editor)) in the editor.
In the background the file is read further to count the newline characters and note their positions in the file.
With the information of the count and position of the newline characters the editor can show the scrollbar in a correct manner.
When scrolling the editor should reload the part the user wants to see at the moment +- several hundred lines.
The UI wouldn't change (maybe some notification of the loading state of a file) but the solution requires some complex abstraction...
So depending on the internal structure this could be a quite difficult task.
Never the less I'd prefer this way of handling the problem.
Maybe the code of some hex-editor has solved this problem already. I remember using some hex-editor that supported inserting new data in the middle of a file. Seemed pretty fast back than.
The SGI rope container has a load on demand feature which is most likely very handy for this.
TODO flags in comments
Written by tgr_ the 4 Jun 09 at 17:03.
Global category: Syntax highlighting & folding.
New
It is a common convention to start a comment with all caps TODO, XXX or FIXME to make some problems jump out (see
http://c2.com/cgi/wiki?FixmeComment if you are not familiar with the notation), and most editors support them with at least syntax highlighting. Such support in Notepad++ would be much welcome.
Ability to select a string with a simple command
Written by dregad the 11 Mar 10 at 11:07.
Global category: Editing commands.
New
As a long time user of UltraEdit at work, I have been relying on a very useful feature that allows to select a string (on a single line) using a simple shortcut (Ctrl+DblClick), based on custom delimiters.
This allows to quickly select things such as e-mail addresses, file paths, shell script / DOS variable names, HTML tags, etc.
Solution #1:
Make Shortcut Mapper Filterable, Searchable, and Sortable.
Written by
aathell the 9 May 09 at 06:17.
three things that would make shortcut mapping easier:
1) Have the columns be sortable by clicking the column header.
2) Be able to search by entering a shortcut combo and list matching commands. If there is, make shortcut red or popup an warning displaying which command is associated for the shortcut.
3) Filter commands based on origin. Perhaps menu origin for internal commands, and plugin name for plugin commands.
three things that would make shortcut mapping easier:
1) Have the columns be sortable by clicking the column header.
2) Be able to search by entering a shortcut combo and list matching commands. If there is, make shortcut red or popup an warning displaying which command is associated for the shortcut.
3) Filter commands based on origin. Perhaps menu origin for internal commands, and plugin name for plugin commands.
Solution #2:
Press Key On or Right-Click Menu Item
In the Gimp, you have dynamic menu shortcuts where you can just go to the menu item itself and instead of clicking it, you hit a key-combination and that menu item is set to that key-combo.
Perhaps this could be done, or right-clicking the menu item to customise its shortcut
In the Gimp, you have dynamic menu shortcuts where you can just go to the menu item itself and instead of clicking it, you hit a key-combination and that menu item is set to that key-combo.
Perhaps this could be done, or right-clicking the menu item to customise its shortcut
Solution #1:
To replace old a label on image with a gradient transparency
To replace old a label-image on this image with a gradient transparency: http://img262.imageshack.us/img262/5412/bookmarkimg.png
Solution #2:
Instead of image-labels to use background highlight at number of a line
The alternative decision - instead of image-labels to use background highlight at number of a line which could be adjusted in Styles for each theme:
http://img14.imageshack.us/img14/7972/bespinthemealt.png
This decision seems to me even more flexible than previous, especially if the user uses debugging and breakpoints
The alternative decision - instead of image-labels to use background highlight at number of a line which could be adjusted in Styles for each theme:
http://img14.imageshack.us/img14/7972/bespinthemealt.png
This decision seems to me even more flexible than previous, especially if the user uses debugging and breakpoints
Solution #3:
Non-transparent bookmarks
I liked the good-old yellow bookmarks. Perfectly visible on any background, not too bulky and require no special transparency handling:
http://img63.imageshack.us/img63/853/scibookmark.png
This solution is supported by Scintilla, which I doubt of solutions #1 & #2, so it's _very_easy_ to implement.
I liked the good-old yellow bookmarks. Perfectly visible on any background, not too bulky and require no special transparency handling:
http://img63.imageshack.us/img63/853/scibookmark.png
This solution is supported by Scintilla, which I doubt of solutions #1 & #2, so it's _very_easy_ to implement.
Solution #4:
Highlight the complete textline
Written by
csavie the 25 Dec 10 at 22:24.
Highlight the complete textline when toggling a bookmark, cause I want to use a view without margins.
Highlight the complete textline when toggling a bookmark, cause I want to use a view without margins.
Solution #5:
replace the icon with a ">"
Written by
cynip the 14 Aug 12 at 01:20.
If a high res icon is too much work, or making the NP++ package too big, use ">" character
If a high res icon is too much work, or making the NP++ package too big, use ">" character
Solution #1:
Add an option
Add an option in preferences to set a font-size for printing, either a percentage or a font-size. Might even be nice to add it to the stylers file
Add an option in preferences to set a font-size for printing, either a percentage or a font-size. Might even be nice to add it to the stylers file
Solution #2:
Allow separate print fonts/sizes to be configured in Style Configurator
Written by
b-sharp the 27 Jul 12 at 11:24.
Add functionality to configure different fonts and font sizes for printing in Style Configurator, separate from those for the editor. (See Visual Studio for an example.)
Add functionality to configure different fonts and font sizes for printing in Style Configurator, separate from those for the editor. (See Visual Studio for an example.)
Solution #3:
more specific solution
Good idea. A more specific possible solution is, on the Style Configurator dialog, to add a checkbox "Use different colour and style for printing", which is unchecked by default.
Then copy the Colour Style and Font Style frames for all language / style combinations - disabled by default. When checking the "Use different colour and style for printing" box, the Print Colour Style and Print Font Style are enabled.
I guess the dialog has to be bigger, or the screen and print styles are to be placed on tabs or something.
Good idea. A more specific possible solution is, on the Style Configurator dialog, to add a checkbox "Use different colour and style for printing", which is unchecked by default.
Then copy the Colour Style and Font Style frames for all language / style combinations - disabled by default. When checking the "Use different colour and style for printing" box, the Print Colour Style and Print Font Style are enabled.
I guess the dialog has to be bigger, or the screen and print styles are to be placed on tabs or something.
Let new hotkey assignment overwrite old with warning
Written by thoazu the 29 Jan 10 at 08:04.
Global category: Shortcuts.
New
When I assign a hotkey to a function/new macro this can be done - at first.
However if this hotkey is already used by another function then
- the user is NOT warned
- the new assignment has no effect.
Can this be changed?
The user should be warned by a popup:
"Hotkey already in use by Macro|Mainmenu|Scintilla command ...... Do you want to overwrite it?"
YES CANCEL
If clicked on the YES button the old assignment should be removed in Shortcut Mapper.
In addition it would be fine to put all current shortcut definitions into a sortable 3 column table.
Function - Type - Shortcut
This way I could click on the header of the "Shortcut" column and get a sorted (!) list of all shortcuts.
So I it is very easy to find if e.g. CTRL+R is currently occupied and by which function.
Thomas
Solution #1:
Change Shortcut Mapper dialog
Written by
thoazu the 29 Jan 10 at 08:04.
Change Shortcut Mapper dialog
Change Shortcut Mapper dialog
Solution #2:
Add new column to Plugin Shortcuts section, change collision background
Written by
etko the 22 Sep 10 at 11:36.
The problem is much more complicated, sometimes the shortcuts can be already occupied when new plugin is added, even with solution #1 you will learn about this only after you change one of the colliding shortcuts.
Shortcut mapper should really change background color of the colliding shortcuts (whole mapper row to red), and show the list of colliding source(scintilla/npp/plugins):command in tooltip or status bar (within mapper dialog). Keep in mind multiple components (scintilla/npp/plugins) might want to use same shortcut so the notification about the collision should take that into account. More over when browsing through plugins part of the mapper, you have no idea whatsoever to which crap, which command belongs. There really should be another column with plugin name there.
The problem is much more complicated, sometimes the shortcuts can be already occupied when new plugin is added, even with solution #1 you will learn about this only after you change one of the colliding shortcuts.
Shortcut mapper should really change background color of the colliding shortcuts (whole mapper row to red), and show the list of colliding source(scintilla/npp/plugins):command in tooltip or status bar (within mapper dialog). Keep in mind multiple components (scintilla/npp/plugins) might want to use same shortcut so the notification about the collision should take that into account. More over when browsing through plugins part of the mapper, you have no idea whatsoever to which crap, which command belongs. There really should be another column with plugin name there.
Don't show OK dialog after Search & Replace operation
Written by adem0x the 1 May 10 at 16:21.
Global category: Find / Replace dialog.
New
Displaying an OK dialog is pretty redundant.
All it does is to show the successful number/count replaced items.
And, in the process, it requires the user to press an OK button --which is a waste of time.
Also in the process, it also steals the focus from SR dialog; that slows the user down quite a bit as the user has to (I have to) locate the SR dialog again in order to perform another SR operation.
Would love to open it up and have folded state as I left it.
Written by rayjamesfun the 29 Jun 10 at 22:34.
Global category: Saving files / settings.
New
I use the folding feature heavily. It lets me operate extremely more efficiently when navigating through my code. I especially use it to fold all my functions so I can literally see almost all functions on the page even when there is 2000 lines of code. Helps me get where I am going fast!! Helps me dive into the code and stay organized with my thoughts too. It removes the clutter of the code that I am not working on and gives me more focus on what I am working on. You know, all that jazz. :)
I would love to be able to close notepad with all of my docs that are opened AND folded and have it open back up exactly as I left it the next day. All this is done except for the folding part. It takes me a couple of minutes to fold everything back up so I can get my thoughts organized and get back to coding. That isn't so much the problem. It would just be nice to open it up and be able to bounce right back into exactly the same state of mind I was in when I last exited. I absolutely love this program. Thanks so much from the deepest parts of my heart.
Ray James.
Developer comments
Implemented 6.3.1
Menus were broken by old localization files in 5.4 - can happen again
Written by janschreiber the 2 May 09 at 14:33.
Global category: Menus.
New
In the transition from the 5.3.x versions of N++ to 5.4, it turned out that old localization files would break at least the menu structure of the View menu. This is in itself not much of a problem, but imagine the same kind of problem affecting the File menu in future versions.
Solution #1:
Make the menu structure independent of the translation file
The GUI should always default to English when no translation string is found for a particular item. If possible, the menu structure should be hard-coded and not be read from a potentially outdated language file. Can be pretty dangerous.
The GUI should always default to English when no translation string is found for a particular item. If possible, the menu structure should be hard-coded and not be read from a potentially outdated language file. Can be pretty dangerous.
Solution #2:
Remove information and add user file
Written by
cchris the 7 May 09 at 16:57.
I see the current UI configuration as the first step towards a fully configurable UI. The most difficult one and one we can build upon.
An UI connects commands with visual items.
A command is "an action or item". It has an internal id, could have an icon, has a default name. The current english.xml does provide this list.
A visual item is anything visible that relates to a command. Labels, buttons, tooltips, menu items, tab items are visual items
A localisation file should have nothing to do with a menu. It is a simple association table: command internal id -> name. Current localisation files are too rich since they have redundant information like in which dialog does this item display.
A menu system is a tree, the root of which is the app menu bar.t could be described by an xml file with two sots of nodes: the leaf nodes are commads, designated by their ids, while non leaf nodes are embedded menus whose only statuc attribute is a name.
If we disconnect these three subsystems, we get a fully configurable UI with on the fly internationalisation, user definable menus and independence between localisation and menu system. Let's do it add the logic to read the extra config file, that's the only missing piece f the puzzle.
The only drawbacks I can see there are:
1/ There is a need for a menus.model.xml to take over when an user menu file is corrupted somehow;
2/ Building the menu template in memory, copying all the strings from the localisation file, may or may not incur a noticeable load time penalty. A benchmmark would be needed.
CChris
PS: this elaborates a little on an earlier text that wound up as a comment.
I see the current UI configuration as the first step towards a fully configurable UI. The most difficult one and one we can build upon.
An UI connects commands with visual items.
A command is "an action or item". It has an internal id, could have an icon, has a default name. The current english.xml does provide this list.
A visual item is anything visible that relates to a command. Labels, buttons, tooltips, menu items, tab items are visual items
A localisation file should have nothing to do with a menu. It is a simple association table: command internal id -> name. Current localisation files are too rich since they have redundant information like in which dialog does this item display.
A menu system is a tree, the root of which is the app menu bar.t could be described by an xml file with two sots of nodes: the leaf nodes are commads, designated by their ids, while non leaf nodes are embedded menus whose only statuc attribute is a name.
If we disconnect these three subsystems, we get a fully configurable UI with on the fly internationalisation, user definable menus and independence between localisation and menu system. Let's do it add the logic to read the extra config file, that's the only missing piece f the puzzle.
The only drawbacks I can see there are:
1/ There is a need for a menus.model.xml to take over when an user menu file is corrupted somehow;
2/ Building the menu template in memory, copying all the strings from the localisation file, may or may not incur a noticeable load time penalty. A benchmmark would be needed.
CChris
PS: this elaborates a little on an earlier text that wound up as a comment.
Solution #3:
Add some additional info-items in to the "lang".xml file
Written by
xm1 the 27 May 09 at 12:38.
I miss at least two additioonal info-items in the language xml-files, namely:
- version (for which the translation file has been done/intended)
- author (and maybe a contact info too)
In situation when somebody tries to use an old/outdated translation file, the Notepad++ can easily detect that (and display a warning etc...).
I miss at least two additioonal info-items in the language xml-files, namely:
- version (for which the translation file has been done/intended)
- author (and maybe a contact info too)
In situation when somebody tries to use an old/outdated translation file, the Notepad++ can easily detect that (and display a warning etc...).
Solution #4:
dynamic menu user can specify by gui or xml config file
Written by
k7rim the 20 Mar 12 at 23:22.
we can add a menu called 'tools' or favorites' or whatever
the menu can be customized through window or through config file
i can place global run commands , macros or even plugin commands
i can specify how the menu appears with certain file types
something like that:
the menu contain the global items he choosed( to be in the reach of the hand)
some commands or items specific to the current lexer of the file so if the current lang is python : commands associated with python(probably in the config file) would appear in the menu
thank you for the great program
we can add a menu called 'tools' or favorites' or whatever
the menu can be customized through window or through config file
i can place global run commands , macros or even plugin commands
i can specify how the menu appears with certain file types
something like that:
the menu contain the global items he choosed( to be in the reach of the hand)
some commands or items specific to the current lexer of the file so if the current lang is python : commands associated with python(probably in the config file) would appear in the menu
thank you for the great program
Replace function should replace in selection by default
Written by chriss85 the 6 May 10 at 16:06.
Global category: Find / Replace dialog.
New
I've noticed it a couple of times now, I select some code in which I want to replace some variable name, press CTRL+H,
and accidentally replace every occurence in the file, because the "In Selection" checkbox is off by default.
Solution #1:
Enable "In Selection" by default if there is selected text and CTRL+H is pressed
Written by
chriss85 the 6 May 10 at 16:06.
I suggest enabling it automatically if there is a selection and the user pressed CTRL+H to access the search/replace dialog.
I suggest enabling it automatically if there is a selection and the user pressed CTRL+H to access the search/replace dialog.
Solution #2:
Enable "In Selection" if the search text is changed for the first time
Written by
lwchris the 3 Apr 13 at 21:41.
Pretty often you highlight the string you want to replace and then press Ctrl+H to automatically "load" it into the search&replace dialog as search text. I do this even if the S&R dialog is already open, because it's much faster than Ctrl+C from file and Ctrl+V into search text field. For this you need the checkbox stay unchecked by default.
Use case: you've got some text, but several surnames are wrong. You doubleclick the surname, Ctrl+H, Tab, type correct name, replace all, doubleclick the next wrong surname, Ctrl+H, Tab, ...
Characteristical about this use case is that the search text is NOT altered after you press Ctrl+H.
If you want to replace something like a variable name "In Selection", your search text is definitely going to change at least once after you pressed Ctrl+H. This is because the search text is all the selected text by default, which is not sensible for "In Selection". So if the search text is altered for the first time, the check box could be checked automatically.
Every other alternation does not change the checkbox state whatever it is set to.
The update-lock lasts until the dialog window is closed or Ctrl+H is pressed anew.
Pretty often you highlight the string you want to replace and then press Ctrl+H to automatically "load" it into the search&replace dialog as search text. I do this even if the S&R dialog is already open, because it's much faster than Ctrl+C from file and Ctrl+V into search text field. For this you need the checkbox stay unchecked by default.
Use case: you've got some text, but several surnames are wrong. You doubleclick the surname, Ctrl+H, Tab, type correct name, replace all, doubleclick the next wrong surname, Ctrl+H, Tab, ...
Characteristical about this use case is that the search text is NOT altered after you press Ctrl+H.
If you want to replace something like a variable name "In Selection", your search text is definitely going to change at least once after you pressed Ctrl+H. This is because the search text is all the selected text by default, which is not sensible for "In Selection". So if the search text is altered for the first time, the check box could be checked automatically.
Every other alternation does not change the checkbox state whatever it is set to.
The update-lock lasts until the dialog window is closed or Ctrl+H is pressed anew.
There should be a way to preview text before printing
Written by cchris the 5 Feb 10 at 11:20.
Global category: Find / Replace dialog.
New
When printing, page layout sometimes is so important as to deserve eing looked at. Text may be modified based on the visual appearance of the printout, so there should be a way to figure out that appearance before trashing paper needlessly.
While the NppExport plugin can print to pdf and this is a preview indeed, this assumes that a pdf printer is available. Installing one may not be possible in a workplace envionment. Also, there could be subtle layout diffferences, since the actual printer would be different.
NOTE: posted by speedywise as part of an omnibus feature request. Credits should go to this user. I (CChris) have enriched the description somewhat.
Solution #1:
Add a new File -> Preview command
Written by
cchris the 5 Feb 10 at 11:20.
This would somehow display window(s) showing the page(s) that the current printer will output on actual printing.
This would somehow display window(s) showing the page(s) that the current printer will output on actual printing.
Solution #2:
Obey printer driver preview settings
Many Windows printers include a "show preview" option in their settings windows. NP++ currently ignores these settings (see ). If NP++ would obey the settings, many users would have a print preview available, along with other driver-provided functions like n-up printing, etc., etc., etc.
Many Windows printers include a "show preview" option in their settings windows. NP++ currently ignores these settings (see <https://sourceforge.net/projects/notepad-plus/forums/forum/331754/topic/3782349>). If NP++ would obey the settings, many users would have a print preview available, along with other driver-provided functions like n-up printing, etc., etc., etc.
Make edition of newlines senseful
Written by newlog the 4 Jun 09 at 22:10.
Global category: Whitespace.
New
Automatic indentation remains a problem in Npp: pressing ENTER on an empty line produces a new line which is indented according to the last (non-empty) indented line.
The logic, as in any other text editor, would demand that, in this case, an new EMPTY new line be inserted.
There are two workarounds proposed in this forum:
1/ pressing CTRL+Z after ENTER to "cancel" automatic indentation
2/ pressing CTRL+D instead of ENTER to "duplicate" the empty line
But honestly, these solutions are counter-intuitive, and not very handy. Moreover solution 2/ leaves the cursor on the original line, which is still more counter-intuitive.
Save directory for new documents
Written by remoo the 24 Feb 10 at 19:44.
Global category: Saving files / settings.
New
I have as default Open/Save directory "Follow current document".
That's what I want if I edit files in different directories.
But the problem is with new files.
When I save them NP++ opens the notepad directory.
I have to change this directory always to my default save directory.
Solution #1:
An extra option to define the default directory for new files.
Written by
remoo the 24 Feb 10 at 19:44.
The problem will be resolved if there could be an extra option in "preferences" to define the default directory for new files
The problem will be resolved if there could be an extra option in "preferences" to define the default directory for new files
Solution #2:
Change CWD with NPPexec
Written by
wonea the 3 Mar 10 at 16:54.
You can change the Current Working Directory (CWD) with using NPPexec. In fact you can create a macro with NPPexec, and use the following command
echo $(CWD)
Then all you need todo is
cd ../.. to wherever you like
then cd Mysuperfunkydirectory
Echo the CWD again, and hey presto. Set NPPexec to start the script on launch, (in the NPPexec advanced settings), and that might work!
You can change the Current Working Directory (CWD) with using NPPexec. In fact you can create a macro with NPPexec, and use the following command
echo $(CWD)
Then all you need todo is
cd ../.. to wherever you like
then cd Mysuperfunkydirectory
Echo the CWD again, and hey presto. Set NPPexec to start the script on launch, (in the NPPexec advanced settings), and that might work!
Solution #3:
Last used directory by default and an option to change if desired
The default directory needs to be something meaningful like the last used dir, and user may select a different directory using an option.
The default directory needs to be something meaningful like the last used dir, and user may select a different directory using an option.
Solution #4:
new file auto safe on program exit and restore on start
Written by
blachi the 2 Aug 10 at 10:52.
all "new 1", "new 2", ... files should be automatically saved in defined directory without asking while program exits, and restored on program start.
all "new 1", "new 2", ... files should be automatically saved in defined directory without asking while program exits, and restored on program start.
Protect "Close all but me" from accidental use
Written by binaryforge the 3 Aug 09 at 13:22.
Global category: Menus.
New
The tab context menu entries "Close me" and "Close all but me" are next to each other and are executed without secondary confirmation.
Because of this, it can happen very easily to accidentally hit "Close all but me", when you actually meant to hit "Close me". When this happens, it is a pain to re-open all documents, which you didn't want to close, but just did.
autocompletion across opened documents
Written by duhl the 2 Apr 10 at 11:23.
Global category: Auto-completion.
New
when editing multiple file world completion don't cross opened document
for exemple:
in doc1.php i got a "$result"
if i type "$re" ctrl + enter
the word will be completed into "$result"
but if i type "$re" ctrl+enter in doc2.php it won't do anything
it could be useful for using fonctions defined in other document
Curly brackets can either be folded or highlighted, but not both
Written by janschreiber the 2 May 09 at 16:05.
Global category: User-defined languages.
New
In order to be able use code folding in a user-defined c-style (curly brackets) language, I have to add the brackets as folding keywords. But this means they cannot be treated as symbols anymore, and highlighting of matching brackets stops working.
Solution #1:
Shift-Del to remove Search/Replace history entries
Written by
tigerix the 22 Jul 10 at 14:02.
Keyboard shortcut for removing history entries in the Search/Replace window.
Shift-Del is the standard shortcut in Firefox and other applications for removing history entries.
Keyboard shortcut for removing history entries in the Search/Replace window.
Shift-Del is the standard shortcut in Firefox and other applications for removing history entries.
Solution #2:
Clear Search History Button
Either add a button to Search > Find UI: "Clear Search History (terms, etc.), or have something in drop box for previous search terms.
In addition, many apps have global preferences to retain things like search terms, etc. Probably easiest would be add a button to search UI.
Current buttons on UI for Find, Count, Close, etc. are huge. Not like these couldn't be reduced a bit & make room for another.
Either add a button to Search > Find UI: "Clear Search History (terms, etc.), or have something in drop box for previous search terms.
In addition, many apps have global preferences to retain things like search terms, etc. Probably easiest would be add a button to search UI.
Current buttons on UI for Find, Count, Close, etc. are huge. Not like these couldn't be reduced a bit & make room for another.