Feature request: favorites/bookmarks

General questions about using TextPad

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

Post Reply
User avatar
AmigoJack
Posts: 596
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Feature request: favorites/bookmarks

Post by AmigoJack »

Just like in web browsers: add current open file to a list so I'm able to re-open it any time again, unbound to my "recently opened files" list. Preferably not limited in an arbitrary way (i.e. only up to 64 entries), and I'm fine if it can only be managed (other captions or removing entries) by editing a text file.

Low priority - it just occures from time to time that a favorite list would have been handy.
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Choose a file to hold your bookmarks, say C:\path\to\bookmarks.

Create a TextPad "DOS" tool:
Configuration | Preferences | Tool | Add | DOS Command...
Command: cmd
Parameters: type C:\path\to\bookmarks

Regular expression to match output:
^(.+?)(?: *\((\d+)(?:,(\d+))?\))?$
(or whatever you prefer)

File: 1 Line: 2 Column: 3
Include
C:\path\to\bookmarks
in itself.

You can specify a line number:
C:\path\to\bookmarks (42)
and a column number:
C:\path\to\bookmarks (42,21)

Assign a convenient shortcut key to this tool. (I use <Ctrl+Shift+F1>.)
User avatar
AmigoJack
Posts: 596
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Post by AmigoJack »

Never thought about executing a process. It's not exactly what I'm looking for but a approach worth investigating - most likely I'll add another execution to append a line to the existing bookmarks file...
Post Reply