Open The Same File From A Toolbar Button

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
mregal
Posts: 6
Joined: Fri Mar 26, 2010 4:00 am

Open The Same File From A Toolbar Button

Post by mregal »

I'm constantly opening three files using TextPad. The file paths never change and was wondering how to assign each file to its own individual toolbar button in TextPad. In that way I could click on a TextPad toolbar button and have the file open in it's own tab and in the current TextPad instance.

Please advise if it is possible and thanks for the help!
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

There are a few ways to do this, none particularly elegant:

1. With external tools
In Configure > Preferences > Tools, you can create a tool to open each file. You will need to configure the TextPad.exe executable as the program and the file name as the parameter. You can then use the buttons on the Tools toolbar to open the files. The drawback is that you need to turn off Configure > Preferences > General > Allow multiple instances to run, otherwise the files will open in separate editor instances.

2. With macros
You can create a macro for each file you want to open. Start recording, open one of the files, stop recording, and save the macro. If it is one of the first sixteen macros on the Macros menu, you can run it from the Macros toolbar.

3. With a workspace
This isn't really what you asked for, but you can save a workspace that contains the three files to make it easy to open all the files at once.
Post Reply