Does Notepad ++ have a lock mode?

I have command line tools that sometimes need to output the file to an external editor so that I can edit it. These tools rely on the blocking behavior of editors: after the editor program exits, they expect the file to be modified and saved.

However, this does not work like Notepad ++. When you start Notepad ++ from the command line, its invocation on the command line returns immediately, although the Notepad ++ GUI starts. This contrasts with, say, Notepad, for which a command line call is returned only when the window is closed.

Is there a way to block the Notepad ++ command line call until I close the file that it opened?

+6
source share
1 answer

Since it was determined that the tool waits until the program exits, creating a new NP ++ instance does the trick. Since this is easy for quick editing, I found it useful to also tell NP ++ to ignore any previous session and hide the tab bar.

set EDITOR="path\to\notepad++.exe" -multiInst -nosession -notabbar 

I found a list of options here .

+5
source

Source: https://habr.com/ru/post/971632/


All Articles