Bookmark eBooks / scripts / source code etc.
here's a script to help with it...
It works like this... while in the editor u launch this script, it shows a menu with existing bookmarks and an 'add bookmark' option... just click the menu according to need.
bookmarks are made so that they work even if the file contents are changed... they don't remember line number ... rather they remember what's on the bookmarked line! ... this'll help u get back to THAT particular location in your code even after u changed something above it!
when adding a bookmark, the format is:
complete line in file that u want to bookmark**text that'll be shown on menu
( the 2 asterisks delimit the file text & bookmark name )
and if u want to delete a bookmark... press shift while clicking on the menu!
i've made it keeping PSPad in mind but i've made it re-configurable and commented it so that users using other editors can easily adapt it.
though it was before the timestamp of Chris's message.
As i was writing a script i used the ToolTip menu from this script and adapted it to my under-devpt script. So it occurred to me to make a note in the forum that the main feature of this ToolTip menu is its single-use-only and doesn't use any hotkey.
so for ToolTip menus of this type this can also be taken as a template.
I don't know how most of you guys manage your BIG scripts as traversing through it to a certain location takes time... for smaller scripts simply scrolling does it, but for bigger ones i find this script very efficient...
the best places to bookmark are section names... like if the name of a section is 'EditGUI' then i enter the bookmark as:
(two times the name separated by two asterisks, though the text after the asterisks can be anything)
now no matter how much code i add/modify above, below or in the section, the bookmark always works.
eg. for SGUI code approaching 2000 lines, i've my most frequently used sections bookmarked.
do give it a try if u've some big codes.
Emacs can do it for 10+ years. It even finds the bookmarked location if the file changed in the meantime. Unfortantely, this editor has its own philosophy which only few people bother to learn.
I've yet to find an editor that can somehow save bookmarks to files between sessions. you close a file and then re-open it and u've to fish out that particular location in that heap of lines... too bad!
vim can do this, too, and has again won text editor of the year from Linux Journal. It's available for Windows, too, and does a very nice job there.
But, like emacs, it will require some adjustment for people used to most Windows text editors.
I'm using the script (my texteditor is EditPlus, but other than changing the window title name in the script, everything else was flawless!). Just wanted to say thanks...very useful!
P.S. One line I did change for my personal taste was the one which pops up the input dialog:
InputBox, InputText, Bookmarks for [%FileName%],Line from file**Bookmark name, , 300, 120
I just made it a bit more compact.