new command LSPLIT - like split,multitab,mash etc but with a twist

8 views
Skip to first unread message

GRP

unread,
Apr 3, 2009, 5:46:14 PM4/3/09
to YubNub
I didn't find anything like this, but there are many times where I
want a bunch of commands accessible, but not necessarily each taking a
tab and maybe not even preloaded (i.e., I just need to quickly run
through them).

So I put together 'lsplit' whose documentation is below. It
produces a screen with a bunch of links across the top.

I am interested in thoughts / feedback and please change it if you see
ways to improve it. It taxed all my Yubnub skills....

-Randy

NAME
lsplit (for Split via Links) - provide a way to easily access
multiple YubNub commands on one screen via links

SYNOPSIS
lsplit cmd1;cmd2;cmd3

SUMMARY
Displays a set of links, one for each command, that when clicked,
open up
that command in the IFRAME (rest of the page) below.
The commands can have parameters, and a command can simply be a
URL.
This is an alternative to 'split' for when you want quick access
to multiple
commands, but you either don't want them all to run except as
needed, *OR*
you need to see each full-screen (not in small frames).

EXAMPLE
lsplit compete google.com; quantcast google.com; compete
twitter.com; quantcast twitter.com
lsplit http://google.com;http://yahoo.com;http://answers.com
lsplit g porsche;y porsche;a porsche
lsplit linm %s;g %s;facebook %s;gmys %s (if defining the new
cmd 'stalker' ;-)


FUTURE POSSIBILITIES
* It would be interesting to combine this with 'mash2' or 'mash'.
* Maybe it should look like "lsplit cmdname1;cmdname2;cmdname3
args" and
apply args to each cmdname?
* It would also be interesting to take the result from 'deli' or
'delime'
(a set of bookmarks for a del.icio.us tag or tags, scrape out
those URLs,
and pass them to lsplit to make a tool for quickly browsing said
bookmarks.

Brian

unread,
Apr 4, 2009, 4:07:57 PM4/4/09
to YubNub
Hi Randy--

Cool idea! For some reason when I try it it is opening the links in
new tabs instead of the IFrame. I looked at the command code, and I
can't figure out why it's doing that.

Brian
>      lsplithttp://google.com;http://yahoo.com;http://answers.com

elzr

unread,
Apr 5, 2009, 8:33:20 AM4/5/09
to YubNub
Hi Randy!

I've oft hankered for exactly this command!
It's like a super Google's top link bar (where you can quickly switch
to other kinds of searches).

I loved this command so much that I went ahead and played with it some
more, adding some styles and behavior. The result is lsplit2

First thing I did was make it work in Firefox (where as Brian pointed
out, links open in new tabs). After much mucking around it turns out
the iframe needs to be referenced thru name, not id. Go figure.

Here are some other differences:
* first command auto loaded
* favicon fetched for each command's domain
* command name bolded in command link
* the commands are the window title
* commands opened are remembered with some JS magic, so going back
and forth between command links is very smooth
* iframe height autoadjusted so no extra vertical scrollbars are
needed
* loading iframe displays loading... message

Hope you all like it and thanks Randy for such a cool command,

PS: I'm excited about the potential of simple echo commands styled and
programmed through external CSS and JS files.
PS2: Internet Explorer not tested (on a Mac here). Please let me know
if anything breaks.
>      lsplithttp://google.com;http://yahoo.com;http://answers.com

Brian

unread,
Apr 5, 2009, 11:14:44 PM4/5/09
to YubNub
Eliazar --

This is mind-bogglingly cool. I love the external javascript and css
technique.

Brian

GRP

unread,
Apr 6, 2009, 2:23:15 PM4/6/09
to YubNub
Hi Eliazar,

Wow, that's not just v2, that's v200!! Excellent work -- can you ask
Jon to swap yours in for mine? And if there is a better command
name, go for it as well...

Thanks!
-Randy

Jonathan Aquino

unread,
Apr 6, 2009, 10:38:40 PM4/6/09
to Yub...@googlegroups.com
Cool stuff, guys. Renamed lsplit2 to lsplit and marked it as a Golden Egg.

Jon

gangsta75

unread,
Apr 8, 2009, 3:12:32 AM4/8/09
to YubNub
Hi guys
i tried to use this fantastic lsplit command but i can't make it
work..

http://yubnub.org/parser/parse?command=lsplit g porsche;y porsche

returns me

/usr/local/lib/ruby/1.8/net/http.rb:2094:in `error!'
#{RAILS_ROOT}/app/helpers/parser_helper.rb:138:in `fetch'
#{RAILS_ROOT}/app/helpers/parser_helper.rb:122:in `response_text'
#{RAILS_ROOT}/app/helpers/parser_helper.rb:89:in `fill_in'
#{RAILS_ROOT}/app/helpers/parser_helper.rb:67:in `combine'
#{RAILS_ROOT}/app/helpers/parser_helper.rb:20:in `parse_proper'
#{RAILS_ROOT}/app/helpers/parser_helper.rb:106:in
`parse_with_substitutions'
#{RAILS_ROOT}app/controllers/parser_controller.rb:17:in `parse'

any hints?

Thanks
Michele

Jonathan Aquino

unread,
Apr 8, 2009, 1:30:19 PM4/8/09
to Yub...@googlegroups.com
Works for me now.

gangsta75

unread,
Apr 9, 2009, 2:33:29 AM4/9/09
to YubNub
Not for me :(!
ok, it works using "lsplit g porsche;y porsche" from the input text of
yubnub.com
but it does not work calling "http://yubnub.org/parser/parse?
command=lsplit g porsche;y porsche" directly from the address bar.

Michele

On 8 Apr, 19:30, "Jonathan Aquino" <jonathan.aqu...@gmail.com> wrote:
> Works for me now.
>
> Jon
>
>
>
> > -----Original Message-----
> > From: Yub...@googlegroups.com
> > [mailto:Yub...@googlegroups.com] On Behalf Of gangsta75
> > Sent: Wednesday, April 08, 2009 12:13 AM
> > To: YubNub
> > Subject: Re: new command LSPLIT - like split,multitab,mash
> > etc but with a twist
>
> > Hi guys
> > i tried to use this fantastic lsplit command but i can't make
> > it work..
>
> >http://yubnub.org/parser/parse?command=lsplitg porsche;y porsche

elzr

unread,
Apr 9, 2009, 8:09:22 AM4/9/09
to YubNub
Thanks for all the kind comments! I'm glad you all liked it.

@Michele: The trouble seems to be that in the url you mention the
semicolon needs to be url encoded (to %3B ).
So "http://yubnub.org/parser/parse?command=lsplit g porsche%3By
porsche" works without a hitch.
My guess is that this had to do with Fastyub, doesn't it?
Character encoding is an odd topic, having YubNub installed in my
Firefox location bar the semicolon gets automatically and
appropriately encoded in this case but then sometimes this automatic
encoding causes problems (like with the ?> command).

Thanks for your interest!

On Apr 9, 3:33 pm, gangsta75 <michele.trimar...@gmail.com> wrote:
> Not for me :(!
> ok, it works using "lsplit g porsche;y porsche" from the input text of
> yubnub.com
> but it does not work calling "http://yubnub.org/parser/parse?
> command=lsplit g porsche;y porsche" directly from the address bar.
>
> Michele
>
> On 8 Apr, 19:30, "Jonathan Aquino" <jonathan.aqu...@gmail.com> wrote:
>
> > Works for me now.
>
> > Jon
>
> > > -----Original Message-----
> > > From: Yub...@googlegroups.com
> > > [mailto:Yub...@googlegroups.com] On Behalf Of gangsta75
> > > Sent: Wednesday, April 08, 2009 12:13 AM
> > > To: YubNub
> > > Subject: Re: new command LSPLIT - like split,multitab,mash
> > > etc but with a twist
>
> > > Hi guys
> > > i tried to use this fantastic lsplit command but i can't make
> > > it work..
>
> > >http://yubnub.org/parser/parse?command=lsplitgporsche;y porsche

gangsta75

unread,
Apr 9, 2009, 9:01:23 AM4/9/09
to YubNub

Hi elzr..
Fastyub works good with lsplit.
Actually i'm trying to redefine my HotorNot bookmarklet with your
brand new lsplit command.
http://systempuntoout.blogspot.com/2006/01/discover-link-conversation-using.html
And it's not working :(..but maybe it's just a matter of encoding as
you said.
thank u :)
Michele

On 9 Apr, 14:09, elzr <ely.pa...@gmail.com> wrote:
> Thanks for all the kind comments! I'm glad you all liked it.
>
> @Michele: The trouble seems to be that in the url you mention the
> semicolon needs to be url encoded (to %3B ).
> So "http://yubnub.org/parser/parse?command=lsplitg porsche%3By

Paul Boren

unread,
Apr 9, 2009, 9:08:39 PM4/9/09
to Yub...@googlegroups.com
Dislaimer:  I'm using Firefox v.3.0.8.

Here's the code I used to get a working bookmarklet/keyboard shortcut:

javascript:window.location='http://yubnub.org/parser/parse?command='+encodeURIComponent('lsplit2%20%s');

Hope this helps Michele and anyone else experiencing a problem.

-- Paul M. Boren

gangsta75

unread,
Apr 13, 2009, 3:13:02 PM4/13/09
to YubNub
I will give it a try :)..
thank you
Michele


On Apr 10, 3:08 am, Paul Boren <pmbo...@gmail.com> wrote:
> Dislaimer:  I'm using Firefox v.3.0.8.
>
> Here's the code I used to get a working bookmarklet/keyboard shortcut:
>
> javascript:window.location='http://yubnub.org/parser/parse?command='+encodeURIComponent('lsplit2%...
>
> Hope this helps Michele and anyone else experiencing a problem.
>
> -- Paul M. Boren
>
> On Thu, Apr 9, 2009 at 7:01 AM, gangsta75 <michele.trimar...@gmail.com>wrote:
>
>
>
> > Hi elzr..
> > Fastyub works good with lsplit.
> > Actually i'm trying to redefine my HotorNot bookmarklet with your
> > brand new lsplit command.
>
> >http://systempuntoout.blogspot.com/2006/01/discover-link-conversation...

Brian

unread,
Apr 25, 2009, 4:35:53 PM4/25/09
to YubNub
Hmmm, I've been getting this error for the last few days, too.



On Apr 8, 2:12 am, gangsta75 <michele.trimar...@gmail.com> wrote:
> Hi guys
> i tried to use this fantastic lsplit command but i can't make it
> work..
>
> http://yubnub.org/parser/parse?command=lsplitg porsche;y porsche

Jonathan Aquino

unread,
Apr 25, 2009, 11:41:02 PM4/25/09
to Yub...@googlegroups.com
Some ning.com sites like singpolymaplay.ning.com are currently down, so I
moved those scripts temporarily to http://jonathanaquino.com/singpolymaplay/
and lsplit works again.

Thanks for flagging it.

Brian

unread,
Apr 26, 2009, 9:34:23 AM4/26/09
to YubNub
Hi Jon,

Thanks for fixing all the ning based commands!

Brian

On Apr 25, 10:41 pm, "Jonathan Aquino" <jonathan.aqu...@gmail.com>
wrote:
> Some ning.com sites like singpolymaplay.ning.com are currently down, so I
> moved those scripts temporarily tohttp://jonathanaquino.com/singpolymaplay/
> and lsplit works again.
>
> Thanks for flagging it.
>
> Jon
>
> > -----Original Message-----
> > From: Yub...@googlegroups.com
> > [mailto:Yub...@googlegroups.com] On Behalf Of Brian
> > Sent: Saturday, April 25, 2009 1:36 PM
> > To: YubNub
> > Subject: Re: new command LSPLIT - like split,multitab,mash
> > etc but with a twist
>
> > Hmmm, I've been getting this error for the last few days, too.
>
> > On Apr 8, 2:12 am, gangsta75 <michele.trimar...@gmail.com> wrote:
> > > Hi guys
> > > i tried to use this fantastic lsplit command but i can't make it
> > > work..
>
> > >http://yubnub.org/parser/parse?command=lsplitgporsche;y porsche

gomelet

unread,
May 12, 2009, 2:53:33 PM5/12/09
to YubNub
Not sure how this is related to your change, but I have found that
commands "var" and "eatfeed" no longer function.

-- gomelet


On Apr 25, 9:41 pm, "Jonathan Aquino" <jonathan.aqu...@gmail.com>
wrote:
> Some ning.com sites like singpolymaplay.ning.com are currently down, so I
> moved those scripts temporarily tohttp://jonathanaquino.com/singpolymaplay/
> and lsplit works again.
>
> Thanks for flagging it.
>
> Jon
>
> > -----Original Message-----
> > From: Yub...@googlegroups.com
> > [mailto:Yub...@googlegroups.com] On Behalf Of Brian
> > Sent: Saturday, April 25, 2009 1:36 PM
> > To: YubNub
> > Subject: Re: new command LSPLIT - like split,multitab,mash
> > etc but with a twist
>
> > Hmmm, I've been getting this error for the last few days, too.
>
> > On Apr 8, 2:12 am, gangsta75 <michele.trimar...@gmail.com> wrote:
> > > Hi guys
> > > i tried to use this fantastic lsplit command but i can't make it
> > > work..
>
> > >http://yubnub.org/parser/parse?command=lsplitgporsche;y porsche

Jonathan Aquino

unread,
May 12, 2009, 11:48:22 PM5/12/09
to Yub...@googlegroups.com
Alas, I do not have time at the moment to debug it. I will put this on my
todo list.

David

unread,
May 13, 2009, 1:51:59 AM5/13/09
to YubNub
twi doesn't display correctly in lsplit.

On May 12, 8:48 pm, "Jonathan Aquino" <jonathan.aqu...@gmail.com>
wrote:
> Alas, I do not have time at the moment to debug it. I will put this on my
> todo list.
>
> Jon
>
> > -----Original Message-----
> > From: Yub...@googlegroups.com
> > [mailto:Yub...@googlegroups.com] On Behalf Of gomelet
> > Sent: Tuesday, May 12, 2009 11:54 AM
> > To: YubNub
> > Subject: Re: new commandLSPLIT- like split,multitab,mash
> > etc but with a twist
>
> > Not sure how this is related to your change, but I have found
> > that commands "var" and "eatfeed" no longer function.
>
> > -- gomelet
>
> > On Apr 25, 9:41 pm, "Jonathan Aquino" <jonathan.aqu...@gmail.com>
> > wrote:
> > > Some ning.com sites like singpolymaplay.ning.com are
> > currently down,
> > > so I moved those scripts temporarily
> > > tohttp://jonathanaquino.com/singpolymaplay/
> > > andlsplitworks again.
>
> > > Thanks for flagging it.
>
> > > Jon
>
> > > > -----Original Message-----
> > > > From: Yub...@googlegroups.com
> > > > [mailto:Yub...@googlegroups.com] On Behalf Of Brian
> > > > Sent: Saturday, April 25, 2009 1:36 PM
> > > > To: YubNub
> > > > Subject: Re: new commandLSPLIT- like
> > split,multitab,mash etc but
> > > > with a twist
>
> > > > Hmmm, I've been getting this error for the last few days, too.
>
> > > > On Apr 8, 2:12 am, gangsta75 <michele.trimar...@gmail.com> wrote:
> > > > > Hi guys
> > > > > i tried to use this fantasticlsplitcommand but i
> > can't make it
> > > > > work..
>
> > > > >http://yubnub.org/parser/parse?command=lsplitgporsche;yporsche
>
> > > > > returns me
>
> > > > > /usr/local/lib/ruby/1.8/net/http.rb:2094:in `error!'
> > > > > #{RAILS_ROOT}/app/helpers/parser_helper.rb:138:in `fetch'
> > > > > #{RAILS_ROOT}/app/helpers/parser_helper.rb:122:in
> > `response_text'
> > > > > #{RAILS_ROOT}/app/helpers/parser_helper.rb:89:in `fill_in'
> > > > > #{RAILS_ROOT}/app/helpers/parser_helper.rb:67:in `combine'
> > > > > #{RAILS_ROOT}/app/helpers/parser_helper.rb:20:in `parse_proper'
> > > > > #{RAILS_ROOT}/app/helpers/parser_helper.rb:106:in
> > > > > `parse_with_substitutions'
> > > > > #{RAILS_ROOT}app/controllers/parser_controller.rb:17:in `parse'
>
> > > > > any hints?
>
> > > > > Thanks
> > > > > Michele
>
> > > > > On 7 Apr, 04:38, "Jonathan Aquino"
> > > > <jonathan.aqu...@gmail.com> wrote:
>
> > > > > > Cool stuff, guys. Renamed lsplit2 tolsplitand marked it
> > > > > > > > >      lsplit(for Split via Links) - provide a way to
> > > > > > > easily access
> > > > > > > > > multiple YubNub commands on one screen via links
>
> > > > > > > > > SYNOPSIS
> > > > > > > > >      lsplitcmd1;cmd2;cmd3
>
> > > > > > > > > SUMMARY
> > > > > > > > >      Displays a set of links, one for each command,
> > > > that when
> > > > > > > > > clicked, open up
> > > > > > > > >      that command in the IFRAME (rest of the
> > page) below.
> > > > > > > > >      The commands can have parameters, and a command can
> > > > > > > simply be a
> > > > > > > > > URL.
> > > > > > > > >      This is an alternative to 'split' for when you
> > > > want quick
> > > > > > > > > access to multiple
> > > > > > > > >      commands, but you either don't want them all to run
> > > > > > > except as
> > > > > > > > > needed, *OR*
> > > > > > > > >      you need to see each full-screen (not in
> > small frames).
>
> > > > > > > > > EXAMPLE
> > > > > > > > >      lsplitcompete google.com; quantcast
> > > > google.com; compete
> > > > > > > > > twitter.com; quantcast twitter.com
> > > > > > > > >      
>
> >lsplithttp://google.com;http://yahoo.com;http://answers.co
> > > > > > > > > m
> > > > > > > > >      lsplitg porsche;y porsche;a porsche
> > > > > > > > >      lsplitlinm %s;g %s;facebook %s;gmys %s    (if
> > > > > > > defining the new
> > > > > > > > > cmd 'stalker' ;-)
>
> > > > > > > > > FUTURE POSSIBILITIES
> > > > > > > > >      * It would be interesting to combine this with
> > > > > > > 'mash2' or 'mash'.
> > > > > > > > >      * Maybe it should look like "lsplit
> > > > > > > cmdname1;cmdname2;cmdname3
> > > > > > > > > args" and
> > > > > > > > >      apply args to each cmdname?
> > > > > > > > >      * It would also be interesting to take the result
> > > > > > > from 'deli'
> > > > > > > > > or 'delime'
> > > > > > > > >      (a set of bookmarks for a del.icio.us tag or tags,
> > > > > > > scrape out
> > > > > > > > > those URLs,
> > > > > > > > >      and pass them tolsplitto make a tool for quickly
> > > > > > > > > browsing said bookmarks.

G Omelet

unread,
May 13, 2009, 3:29:13 PM5/13/09
to Yub...@googlegroups.com
"lsplit twi;g" works for me, but says "Twitter is currently down for maintenance."

I feel like I've gained an extra hour today.  ;)

-- gomelet

David

unread,
May 13, 2009, 5:39:48 PM5/13/09
to YubNub
Maybe its because of firefox?

When I do it everything shows up momentarily, and then everything but
the background dissapears.

On May 13, 12:29 pm, G Omelet <gome...@gmail.com> wrote:
> "lsplit twi;g" works for me, but says "Twitter is currently down for
> maintenance."
>
> I feel like I've gained an extra hour today.  ;)
>
> -- gomelet
>

David

unread,
May 13, 2009, 5:39:48 PM5/13/09
to YubNub
Maybe its because of firefox?

When I do it everything shows up momentarily, and then everything but
the background dissapears.

On May 13, 12:29 pm, G Omelet <gome...@gmail.com> wrote:
> "lsplit twi;g" works for me, but says "Twitter is currently down for
> maintenance."
>
> I feel like I've gained an extra hour today.  ;)
>
> -- gomelet
>
Reply all
Reply to author
Forward
0 new messages