Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some argument that it's value will be added as substring in the title #9539

Closed
ArkadiuszMichalski opened this issue Feb 19, 2021 · 1 comment

Comments

@ArkadiuszMichalski
Copy link
Contributor

ArkadiuszMichalski commented Feb 19, 2021

Description of the Issue

Currently, it is not possible to distinguish a particular instance of Notepad ++ (from the same .exe file or different .exe files). This cause that from another program I cannot refer to a specific instance of NPP and open the file in it. Let say we have two separate Notepad++ folder (portable):

A\notepad++.exe (shortly A)
B\notepad++.exe (shortly B)

Both are run at the same time. Step to reproduce:

  1. run A -multiInst
  2. run B -multiInst << let say this NPP was the last active
  3. go to other window folder (or program)
  4. do sth like this A\notepad++.exe file.txt (in console or through another program)

Our file will be open in B (not A) - it looks like due to recent activity on B. Even if we use only A and we open two instance we cannot distinguish them other than the order in the system bar or the PID of the process. Both solutions are not permanent and they are changes when we restart the program or when we change the order on the system bar.

With an additional argument that adding something to the title, it is very easy to distinguish different processes from each other. So when I starting Notepad ++ I can set some text in title, and then I can easily select such a window based on the title and then open the specific file / files in it:

  1. run A -multiInst -subtitle="main"
  2. runB -multiInst
  3. go to other window folder (or program)
  4. in console use some commands/tools that select/active window base on (sub)title and do sth like this A\notepad++.exe file.txt

Our file will be open in A (not B as previouse example).

In my case lack of such possibility is a problem. Very often I work with many versions of NPP at the same time (each for different purposes), and I am not able to delegate files to the correct instances of the program. Very often I forget to select the correct window before I running the openning action and have to repeat the whole process.

Debug Information

Notepad++ v7.9.2   (32-bit)
Build time : Jan 27 2021 - 17:53:35
Path : D:\_test\NPPClean\notepad++.exe
Admin mode : ON
Local Conf mode : ON
OS Name : Windows 7 Ultimate (64-bit) 
OS Build : 7601.0
Current ANSI codepage : 1250
Plugins : HexEditor.dll 
@ArkadiuszMichalski
Copy link
Contributor Author

ArkadiuszMichalski commented Mar 13, 2021

Anyone know of a plugin that can modify the title? At startup, I could pass a fictitious argument with some value, read it in the plugin and set it in the title.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant