| View previous topic :: View next topic |
| Author |
Message |
Guest Guest
|
Posted: Fri Jun 25, 2004 2:15 pm Post subject: Bookmark - ebook by Rajat |
|
|
Looks so interesting, but unable to quite get it to work.
I did manage it to recognize Notepad, and now get that msg ...Add Bookmark, but everything I tried, did not work.
Could someone provide an exact example for say, Notepad as the editor, atest.txt is the file name, a line to bookmark could be say "Exit". |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Fri Jun 25, 2004 3:28 pm Post subject: |
|
|
There are 2 reqmts for an editor to be compatible with my script:
1. Editor showing full path of file being edited in titlebar.
2. having a GoTo line feature.
most editors have them, like to adapt my script for Edit+, all I needed to do was replace 'TextPad' with 'EditPlus' once at the top of script. that's all!
the first reqmt is made so that it requires minimal effort while creating shortcuts, otherwise one'd have to deal with FileSelect dialogs every time he had to make a bookmark.
the second reqmt can be replaced with 'Send, ^{home}{Down %GetLine%}
so its best to get a better editor (many are free) or (though i don't advice this as it'll be irritating) tweak the script to make it FileSelect every time a bookmark is to be added. _________________
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Jun 25, 2004 4:07 pm Post subject: |
|
|
If you'd like a free plain text editor that makes a great replacement for notepad, Metapad has been praised by others here and I use it myself:
http://www.liquidninja.com/metapad/
It also shows the full path of the script in the title bar (with leading asterisk if the file has been modified) so hopefully will work with the above script. |
|
| Back to top |
|
 |
Guest Guest
|
Posted: Fri Jun 25, 2004 4:31 pm Post subject: Bookmark - ebook by Rajat |
|
|
I only mention Notepad, just so I can understand it, and then can adapt it to anything else.
I still can not add bookmark. What exactly does one type into that dialog box that opens up? |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Fri Jun 25, 2004 4:38 pm Post subject: |
|
|
ANY line from file<delimiter>friendly name for bookmark
the <delimiter> is two asterisks ie. ** _________________
 |
|
| Back to top |
|
 |
Guest Guest
|
Posted: Fri Jun 25, 2004 5:30 pm Post subject: Bookmark - ebook by Rajat |
|
|
Not working.
Entered four lines one, two, three, four, saved it.
Ran your script and seen yellow menu "...Add Boomark."
I then typed in "two**". Then ran the script again. Only thing that shows is the same "...Add Boomark". Did this in both Notepad and Workpad. What am I doing wrong? |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Fri Jun 25, 2004 6:14 pm Post subject: |
|
|
not "two**"
just "**"
and it WON'T work with notepad!
and i don't know nothin' about workpad. _________________
 |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Mon Jun 28, 2004 7:15 am Post subject: |
|
|
i think i misunderstood something here. and i'm sorry for that. you entered "two**" because the file had a line "two", that's fine... after that you need to give a friendly name that you might remember.
eg.
two**my second line
two**two
two**2
i'm sure this won't work with notepad. but if workpad has the 2 features i mentioned then it'll work fine. _________________
 |
|
| Back to top |
|
 |
|