Ticket #117 (closed enhancement: fixed)
Single Padre running, open file in already running Padre
| Reported by: | szabgab | Owned by: | adamk |
|---|---|---|---|
| Priority: | major | Milestone: | Get Adam Kennedy on Padre |
| Component: | Single Instance | Version: | 0.16 |
| Keywords: | Cc: |
Description
There should be an optional (??) feature to make sure there is a single Padre running.
When the single-padre mode is on, if padre is already running and someone types in padre file.txt, it should focus on the already open padre and that should open the file.
At least in Windows there should be a right-click menu option in the File browser to open a file in a new Padre or in the already running padre. (gvim does this).
Change History
comment:3 follow-up: ↓ 4 Changed 4 years ago by azawawi
- Owner set to azawawi
- Status changed from new to accepted
comment:4 in reply to: ↑ 3 Changed 4 years ago by azawawi
On windows we need to put these into the registry:
[HKEY_CLASSES_ROOT\*\Shell]
[HKEY_CLASSES_ROOT\*\Shell\Padre]
[HKEY_CLASSES_ROOT\*\Shell\Padre\Command]
@="c:
strawberry
perl
bin
padre.bat \"%1\""
comment:5 Changed 4 years ago by azawawi
- Owner changed from azawawi to adamk
- Status changed from accepted to assigned
Note: See
TracTickets for help on using
tickets.

As far as I understood the wxWidgets docs the canonical way to achieve this would require using the classes wxServer, wxClient and wxConnection.
Unfortunately, these aren't yet wrapped by Wx...