On Tue, Mar 04, 2003 at 10:00:11PM -0500, Adam wrote: > I'm just wondering about lftp's exact bookmark syntax. I'd like to > pretty up my bookmark file with some comments, but any extraneous > characters I add seems to confuse lftp greatly. Is it possible to add > comments to the lftp bookmark list? Even blank lines seem to confuse it.
The bookmarks file format does not support comments. It consists of two columns: bookmark name and after a space - the bookmark value. The comments are not useful there, because the file is constantly rewritten by lftp. > If this isn't possible, is it possible to specify a separate bookmark > file to be loaded when lftp starts? This would also help keep my > bookmarks better organized. unfortunately, no. > The ideal solution to fixing bookmark organizational problems would be > bookmark grouping. Let me give an hypothetical example: > > Bookmark list: > group1/site1 URL1 > group1/site2 URL2 > group1/site3 URL3 > group2/site4 URL4 > group2/site5 URL5 > group3/site6 URL6 > site7 URL7 > site8 URL8 > site9 URL9 > > Then, if you launch lftp and type: open <TAB> > you see the following: > group1/ group2/ group3/ site7 site8 site9 > > Then, if you type: open group1/<TAB> > you see the following: > group1/site1 group1/site2 group1/site3 I think it is a good idea and worth implementing. It should not be very hard to modify completion code to display "directories" in bookmark completion. -- Alexander. | http://www.yars.free.net/~lav/
