Re:Lightning - A new and faster way to use your shell
by Wilduck on Tuesday April 13, 2010 @05:17AM
(#1261457)
Has anyone installed/used this? I'm tempted, since I have a habit of making deep directory paths that get quite cumbersome, but would love a testimonial.
Re:Lightning - A new and faster way to use your shell
by cldwalker on Tuesday April 13, 2010 @06:08AM
(#1261507)
Disclaimer: I wrote lightning
For >90% of what I do on the commandline as a programmer, lightning allows me to never have to type a full path to a file or directory for any command. If I do find myself using a new set of tedious paths, I make appropriate shell glob(s) for them and let lightning do the rest. I'm currently at 71 functions made from 16 different bolts(groups of shell globs).
Re:Lightning - A new and faster way to use your shell
by dschoon on Tuesday April 13, 2010 @08:23AM
(#1261705)
Fish shell (http://fishshell.org) performs essentially the same sort of completion for many classes of files based on context. I've found the complete subsystem to be quite pleasant compared to bash, and I recommend it to anyone interested in trying out this sort of thing.
Re:Lightning - A new and faster way to use your shell
by cldwalker on Tuesday April 13, 2010 @02:47PM
(#1262970)
While lightning can handle classes of files, it's more aimed at abstracting full paths to their basenames. If you can give an example where fish shell do this efficiently, I'd be interested to know. FYI, here's a previous comparison on writing shell functions vs lightning functions: http://www.reddit.com/r/programming/comments/bpodn/lightning...
Re:Lightning - A new and faster way to use your shell
by cldwalker on Tuesday April 13, 2010 @02:07PM
(#1262835)
The only similarity I see is that they translate basenames to full paths. However, autojump only does this with 'cd' while lightning does this with _any_ command. Autojump works by analyzing your command history while lightning lets users control their basenames with shell globs. If lightning is similar to autojump, then I guess other smart-cd projects are as well: http://github.com/rupa/j2 and http://www.skamphausen.de/cgi-bin/ska/CDargs
Re:Lightning - A new and faster way to use your shell
by wendroid on Wednesday April 14, 2010 @11:24AM
(#1265128)
I'm aware that they both have dependencies
Plumb still looks miles more attractive.
% plumb /path/to/file.c:21
will open file.c at line 21
right clicking in Acme will do it automatically, I can feel the win from here
Re:Lightning - A new and faster way to use your shell
by jkmcf on Tuesday April 13, 2010 @12:10PM
(#1262421)
It's not so much remembering, it's typing it all out (for me at least). Having RSI, reducing any amount of typing is a godsend. However, my first impression of lightning is similar.
For >90% of what I do on the commandline as a programmer, lightning allows me to never have to type a full path to a file or directory for any command. If I do find myself using a new set of tedious paths, I make appropriate shell glob(s) for them and let lightning do the rest. I'm currently at 71 functions made from 16 different bolts(groups of shell globs).
Also, you may find this walkthrough of how I used lightning for a specific set of deep directory paths helpful: http://tagaholic.me/2010/04/09/lightning-speed-for-the-user....
Autojump seems to be much slicker IMHO.
http://news.ycombinator.com/item?id=1224400
For Unix clones everywhere there's the tried and tested Plan9 Plumber that uses Regular Expression Matching to perform any action you desire
http://swtch.com/plan9port/man/man4/plumber.html
For the example rules see the base set
http://swtch.com/usr/local/plan9/plumb/basic
Plus I don't like TAB completion. If you can't remember where everything is maybe you should organise it better instead of drawing more maps.
It's strange that lightning looks like a nightmare and then you offer plumb, where its rules are 4+ lines long while lightning's are one-liners.