Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: start

by zentara (Archbishop)
on Oct 14, 2003 at 15:39 UTC ( [id://299147]=note: print w/replies, xml ) Need Help??


in reply to start

Nice idea, but I use mc to navigate and it does it for me. Just for people not familiar with "MidnightCommander".... I've been using mc to do this under linux. The mc.ext file is loaded with regexes to autostart programs. All I need is to hit 'enter' on the file. Of course, your checking of mime types gives more flexibility in naming(no extension worries),
include/image # Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (ee %f &); fi Open= xv %f 2>&1>/dev/null & View=%view{ascii} identify %f #View=%view{ascii} asciiview %f

Replies are listed 'Best First'.
Never used MC
by #include (Curate) on Oct 15, 2003 at 07:24 UTC
    I've never used MidnightCommander. Actually, I wrote this for a friend of mine. He wanted something like this for use in shell scripts (I'm not sure why), and it needed to be "extension ignorant". I ended up spending a lot more time on it than I planned on, and voila! There it is.

    A genius writes code an idiot can understand, while an idiot writes code the compiler can't understand.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://299147]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found