contools--notepadplusplus
- README_EN.txt
- 2024.12.06
- contools--notepadplusplus
- DESCRIPTION
- LICENSE
- REPOSITORIES
- INSTALLATION
- SCRIPTS
- USAGE
- SHORTCUTS
- AUTHOR
- DESCRIPTION
Set of scripts for the Notepad++ Python Scripts plugin.
- LICENSE
The MIT license (see included text file "license.txt" or https://en.wikipedia.org/wiki/MIT_License)
- REPOSITORIES
Primary:
- https://github.com/andry81/contools--notepadplusplus/branches https://github.com/andry81/contools--notepadplusplus.git First mirror:
- https://sf.net/p/contools/contools--notepadplusplus/ci/master/tree https://git.code.sf.net/p/contools/contools--notepadplusplus Second mirror:
- https://gitlab.com/andry81/contools-notepadplusplus/-/branches https://gitlab.com/andry81/contools-notepadplusplus.git
- INSTALLATION
-
Install
plugin within the Notepad++PythonScript
menu item.Plugins -
Copy scripts into
subdirectory inside the Notepad++ directory:scripts
.../plugins/Config/PythonScript -
Change the initialization item from the PythonScript configuration menu item:
: FromPlugins->Python Scripts->Configuration...
toLAZYATSTARTUP
Now each time when the Notepad++ starts it will call to
script.
- SCRIPTS
-
/scripts/python/tacklebar/libs/npplib.py
Main library script.
-
/scripts/python/tacklebar/reopen_all_*files*.py
Scripts to workaround the Notepad++ bug:
: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5844[Feature Request] Language auto detection from simplified session file -
/scripts/python/tacklebar/close_all_saved_files_*.py/scripts/python/tacklebar/close_all_not_altered_files_*.py
Scripts to safely close all saved or not altered files.
-
/scripts/python/tacklebar/reactivate_all_files_*.py
Scripts to reactivate all opened files in forward or reversed order.
-
/scripts/python/tacklebar/toggle_readonly_flag_for_all_tabs.py
Script to toggle the inner Read-Only flag for all tabs (in the Notepad++).
-
/scripts/python/tacklebar/clear_readonly_flag_from_all_files.py
Script to clear the Read-Only flag from all opened tab files in the file system.
-
/scripts/python/tacklebar/undo_all_files.py/scripts/python/tacklebar/redo_all_files.py
Script to undo/redo the history for all opened tab files. Useful to undo/redo the replacement action after the
dialog in all opened file tabs.Find and ReplaceAvailable shortcut to use:
- Undo: CTRL+ALT-Z (
is reserved for the redo)CTRL-SHIFT-Z - Redo: CTRL+ALT-Y
CAUTION: Script does undo/redo for ALL tabs, even for those, where the action is not needed to be done. So it can undo/redo not the last/first the
dialog replacement.Find and Replace - Undo: CTRL+ALT-Z (
-
-/scripts/python/startup.pySript to call upon the Notepad++ instance launch.
- USAGE
Basically,
will automatically call upon start of each Notepad++
instance.
All other scripts can be directly used from the Notepad++ Plugins menu.
Examples of the Notepad++ extra command line:
notepad++.exe -nosession -multiInst -z -from_utf16 -z --open_from_file_list -z ""
notepad++.exe -nosession -multiInst -z -from_utf16le -z --open_from_file_list -z ""
Additional command line arguments:
Translates each path into a short DOS path if greater than the limit. Can workaround long path files open, which Notepad++ does not support.
See the related long path issue:
:
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9181
NOTE:
The Short File Names (SFN) generation must be explicitly enabled in the
Windows file system before a file or a directory creation.
See the
command for the details.
Append mode.
Runs Notepad++ instance to either open the files from a list inplace or
delegate files to open them in an already running Notepad++ process.
If a Notepad++ instance already has been running and has no
parameter on the command line (shared instance), then the files delegates to
open into that instance. After that the being launched instance does auto
close.
If there is no Notepad++ instance without
parameter on the
command line (not shared instance), then the files does open inplace.
Has meaning in the append mode.
If there were no shared instances without
on the command line,
then the Notepad++ does restore the window show state (unminimizes) before
open inplace.
Useful in case when the user want to hide the window blinking.
Has meaning in the append mode and if
is used.
Reduces the maximum command line length limit per child instance which is
32767 as by default.
In case of a delegated open the launched Notepad++ instance builds each
command line until this limit and only after runs it.
To append each file by a separate child Notepad++ process you can set it to
1.
Has meaning in the append mode.
By default file open delegation made through the
+
message as a most reliable. To replace it by a child
process method use this option.
Does not activate the Notepad++ instance main window in case of delegated open in the append mode. Useful to avoid window focus change after append.
Does not auto close the launched Notepad++ instance in case of delegated open in the append mode. Useful to debug the launched instance on the Python errors from the builtin console.
For the rest options see the
script file.
- SHORTCUTS
The Notepad++ has no functionality to add a shortcut at the moment and only
can modify the existing one.
You can use a plugin to add the functionality. The
plugin still
can do this.
See details: https://community.notepad-plus-plus.org/post/28150 https://community.notepad-plus-plus.org/topic/14703/run-python-script-pythonscript-plugin-with-a-shortcut/3
NOTE: You must restart the Notepad++ to apply the modificated shortcuts in the Shortcut Mapper.
- AUTHOR
Andrey Dibrov (andry at inbox dot ru)
Описание
Set of scripts for the Notepad++ Python Scripts plugin.
Языки
Python