Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
why non-text files' default opener is editor? #36
Comments
|
You can stop loading a large file in vim by pressing ^C. :) |
adam8157
commented
Apr 27, 2012
|
Not really agree with you. How about just uncomment the last section of rifle.conf: "Define the editor for non-text files + pager as last action"? Then ranger will warn "No action found" if files' type not described, and users could press r by themself. |
adam8157
commented
Apr 27, 2012
|
Sorry, typo, I mean comment or remove the last section |
|
Then you can't use E anymore to open the file in an editor |
adam8157
commented
Apr 27, 2012
|
oops, forget that. the final patch is below(patched on master, 38c23f6)
|
|
I finally implemented this, similarly to your patch. If the command is "ask", then ranger will ask you for a command whereas rifle will simply say "unknown filetype!" |
adam8157 commentedApr 20, 2012
Hi, hut
Why non-text files' default opener is editor now? It invoked open_with before.
I think the old way is better. We can't describe all types in rifle.conf, so many types are defined as unknown non-text types, it's not appropriate to open them all with editor.
I am so addicted to vim and ranger. I pressed "l, l, l", and bang! I opened a 2GB binary data file with vim by accident...