Hi!
You can already do it with sockets. Just launch Vimb with the `-s` option, and
write a script, which will send a remote command to all Vimb instances.
The script can look like this
#!/bin/sh
cd "$XDG_RUNTIME_DIR/vimb/vimb/socket"
for VIMB_SOCKET in *; do
echo ":shellcmd sh -c 'echo % >> mysession'<CR>:quit<CR>" | \
socat - unix-connect:"$VIMB_SOCKET"
done
For session restore write another script
#!/bin/sh
for URL in $(cat mysession); do
/usr/bin/vimb -s "$URL" &
done
(Maybe you can come up with something better than shell-scripting for the job.)
Now just call these scripts via `:shellcmd`. You can bind them to whatever
keys you like.
(For some reason sockets reside in `$XDG_RUNTIME_DIR/vimb/vimb/socket`,
although the man page says it is `$XDG_RUNTIME_DIR/vimb/socket`. It must be a
bug, or the man page is wrong.)
On 2016/01/22 12:01:14 +0200, Пешо Дебилов wrote:
> A feature I really missed some days ago was a way to bookmark all tabs
> (windows) so that I can open them all some time later.
>
> Something like the vim's way to store a session or what most browsers
> support - bookmark all tabs - would be a nice feature.
>
> :mksession mysession.vim
> :source mysession.vim
>
> Or instead of a file that's sourced it could be folder-oriented, like this:
>
> :sessionsave mysessionfolder
> :sessionrestore mysessionfolder
>
> Where mysessionfolder is a text file with URLs of currently opened windows.
>
> Cheers, Al
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
[email protected]
https://lists.sourceforge.net/lists/listinfo/vimb-users