Hello,
What command do I have to add to the script to open ROX-Filer's certain bookmarks?
Very much appreciated.
Command to Open a ROX-Filer's Bookmark?
Moderator: Forum moderators
Re: Command to Open a ROX-Filer's Bookmark?
Do you mean /root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml ?
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 119 times
Re: Command to Open a ROX-Filer's Bookmark?
What do you mean exactly?
Open all bookmarks of e.g. directories/programs/files at once?
Open a specific entry from bookmarks?
Open the bookmarks menu of a Rox filer window?
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
Re: Command to Open a ROX-Filer's Bookmark?
Yes, open a specific bookmark (like /root/my-pictures) in ROX-Filer, so I can create a menu entry for it.
Thanks again, folks!
Re: Command to Open a ROX-Filer's Bookmark?
I do not have a clear idea of what you want.
This will open a RoxFiler window showing the files in /root/my-pictures:
rox /root/my-pictures
This will open all the dirs in the Bookmarks.xml file:
rox $( grep 'bookmark title' /root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml | cut -d '>' -f 2- | cut -d '<' -f 1 )
This will not work if there are spaces in the bookmarked names.
Re: Command to Open a ROX-Filer's Bookmark?
williams2 wrote: ↑Tue May 11, 2021 7:44 pmI do not have a clear idea of what you want.
This will open a RoxFiler window showing the files in /root/my-pictures:
rox /root/my-pictures
This will open all the dirs in the Bookmarks.xml file:
rox $( grep 'bookmark title' /root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml | cut -d '>' -f 2- | cut -d '<' -f 1 )
This will not work if there are spaces in the bookmarked names.
That's the one!
Thank you, Will.
Re: Command to Open a ROX-Filer's Bookmark?
ok, then to make it work with spaces, it would need something like this:
Code: Select all
SAVEIFS=$IFS
IFS="
"
rox $(grep 'bookmark title' /root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml | cut -d '>' -f 2- | cut -d '<' -f 1)
IFS=$SAVEIFS
Re: Command to Open a ROX-Filer's Bookmark?
This might work better, it puts each bookmark on a separate line.
Code: Select all
SAVEIFS=$IFS
IFS="
"
rox $( cat /root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml | sed 's_<book_\n<book_g' | grep '<bookmark title' | cut -d '>' -f 2- | cut -d '<' -f 1 )
IFS=$SAVEIFS