|
Re: my web browsing technique: msg#00556os.plan9.general
Kind of an old thread, but I like VNC OK and finally broke down and wrote this plumbing rule: # urls to opera on another machine type is text data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*' plumb to web plumb start ssh my-vnc-machine.com 'DISPLAY=:3' opera -newpage ''''$0'''' The quotes around DISPLAY=:3 are to get the assignment past the plumber; the quotes around $0 get its contents past ssh and into the destination machine without reevaluation by the shell. The plumb to web line lets me debug the pattern: just cat /mnt/plumb/web and click on a URL to see what the data matches. (Good trick in general.) Opera will pop the URL into a running instance of itself if possible (nice thinking, guys!) and the -newpage option means it will create a new Opera subwindow rather than overwriting an existing page. Someone sends you a list of URLS? Just right-click on each one in the list and - voila! - Opera will go fetch them all for you, each in a different window. This rule scratches the itch pretty well. There well may be a better pattern for the 'matches' line, but that's not the point. -rob |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Plan9 VM for Windows/Linux?: 00556, Joel Salomon |
|---|---|
| Next by Date: | Re: Ugly Q, I admit: 00556, Bruce Ellis |
| Previous by Thread: | my web browsing techniquei: 00556, matt |
| Next by Thread: | Re: my web browsing technique: 00556, Sam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |