summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
...
* | renamed ranger/defaults to ranger/confighut2012-08-0213-20/+20
* | defaults/rc.conf: simplify the chmod bindingshut2012-08-021-7/+12
* | api.options is now obsolete (but kept for compatibility)hut2012-08-022-2/+1
* | defaults.options: type of hidden_filter changed from regexp to stringhut2012-08-022-4/+13
* | ext.rifle: fixed imports when using rifle standalonehut2012-07-051-4/+4
* | defaults/rifle.conf: added missing commahut2012-07-051-1/+1
* | Revert "gui.curses_shortcuts: partially reverted 0bb7e10b, it seems pointless"hut2012-06-281-8/+10
* | Revert "colorschemes.default: draw "documents" in green"hut2012-06-231-2/+0
* | added doc/sxivall.shhut2012-06-231-0/+25
* | ext.rifle: make matching function "ext" case insensitivehut2012-06-231-1/+1
* | fsobject.fsobject: sort DOCUMENT_{EXTENSIONS,BASENAMES}hut2012-06-201-5/+5
* | fsobject.fsobject: added .ps to the extension of documentshut2012-06-201-1/+1
* | core.helper: more useful --version outputhut2012-06-162-4/+3
* | STABLE = False; this shouldve been done right after last releasehut2012-06-161-1/+1
* | widgets.console: catch a UnicodeEncodeError with surrogateshut2012-06-161-1/+4
* | widgets.browsercolumn: fixed names with broken unicode surrogateshut2012-06-161-4/+1
* | gui.curses_shortcuts: partially reverted 0bb7e10b, it seems pointlesshut2012-06-161-10/+8
* | colorschemes.default: draw "documents" in greenhut2012-06-161-0/+2
* | ext.rifle: fix "r" flag in combination with pipes in commandshut2012-06-161-3/+6
* | widgets.browsercolumn: fixed crash on resizing to a small widthhut2012-06-161-1/+1
* | fsobject.fsobject: better recognition of documentshut2012-06-161-1/+8
* | defaults/rifle.conf: removed "--" from openoffice entrieshut2012-06-161-3/+3
* | Extended aliasesjoe2012-06-072-3/+21
* | widgets.browsercolumn: fix coloring bughut2012-05-161-0/+2
* | widgets.browsercolumn: more failsafehut2012-05-101-0/+1
* | widgets.browsercolumn: Fix drawing of stuff in right columnhut2012-05-101-0/+2
* | widgets.browsercolumn: update infostring when changedhut2012-05-101-4/+15
* | widgets.browsercolumn: 9001% speedup in drawinghut2012-05-102-34/+54
* | rifle.conf: remove "--" from smplayer commandhut2012-05-071-1/+1
* | Merge branch 'stable'hut2012-05-064-4/+9
|\|
| * What kind of idiot invented bugs anyway? v1.5.4hut2012-05-034-4/+9
| * core.shared: ImportErrors in options.py are mistakenly ignored...hut2012-05-031-0/+2
| * container.tags: typohut2012-05-031-1/+1
| * ext.get_executables: speed optimizationhut2012-05-031-2/+1
| * data/mime.types: use spaces instead of tabs, line them uphut2012-05-031-10/+10
| * defaults/options: add __pycache__ to hidden fileshut2012-05-031-1/+1
| * ext.human_readable: added commenthut2012-05-031-0/+4
| * gui.ui: catch an exception with surrogates in "update title" codehut2012-05-031-4/+7
| * scope.sh: added exiftoolhut2012-05-031-4/+8
* | ext.rifle: Added "match", "file" and "directory" functionshut2012-05-062-8/+17
* | ext.rifle: use "python -S" in hashbang linehut2012-04-131-1/+1
* | ext.rifle: Inline get_executables, fix bug with flags=Nonehut2012-04-131-6/+42
* | ext.get_executables: Fixed docstringhut2012-04-131-3/+1
* | ext.get_executables: don't sort get_executables_uncachedhut2012-04-131-1/+1
* | ext.rifle: inline "spawn" functionhut2012-04-131-5/+7
* | ext.rifle: a little restructuringhut2012-04-131-12/+13
* | ext.rifle: remove unnecessary codehut2012-04-131-5/+1
* | ext.rifle: wrap extension regexp in brackets so X|ar|Y doesn't match rarhut2012-04-131-1/+1
* | ext.rifle: remove hardwired "--" argument in execute()hut2012-04-131-1/+1
* | test rifle when running "make test"hut2012-04-132-2/+6
ss="se">\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "RIFLE 1" .TH RIFLE 1 "rifle-1.6.1" "08/26/2014" "rifle manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" rifle \- ranger's file opener .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBrifle\fR [\fB\-\-help\fR] [\fB\-f\fR \fI\s-1FLAGS\s0\fR] [\fB\-l\fR] [\fB\-p\fR \fI\s-1KEYWORD\s0\fR] [\fB\-w\fR \fI\s-1PROGRAM\s0\fR] \fIfiles\fR .SH "DESCRIPTION" .IX Header "DESCRIPTION" rifle is a powerful file executor that allows for complex file type checking, written to meet the needs of the file manager \fIranger\fR. rifle's strength lies in automatically determining file types, depending on which programs are installed on the system, even without any user interaction. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-f\fR \fI\s-1FLAGS\s0\fR" 14 .IX Item "-f FLAGS" Specify flags for opening the files. Flags are letters that changes how the program is executed. Any combination of flags will work. Writing uppercase flags will negate the effect of all previously used lowercase flags of the same letter. .Sp Table of all flags: f fork program to background r run program as root, using sudo t run program in a separate terminal, as specified by \f(CW$TERMCMD\fR .IP "\fB\-l\fR" 14 .IX Item "-l" List all possible ways to open the specified files. Each line will contain information in the format of \fIid:label:flags:command\fR. \fIid\fR is the identification number. \fIlabel\fR is an arbitrary string that was specified for this command, \fIflags\fR are the flags that are used by default, and \fIcommand\fR is the command that is going to be executed. .IP "\fB\-p\fR \fI\s-1KEYWORD\s0\fR" 14 .IX Item "-p KEYWORD" Pick a method to open the files. .Sp \&\fI\s-1KEYWORD\s0\fR is either the \s-1ID\s0 number listed by \f(CW\*(C`rifle \-l\*(C'\fR or a string that matches a label in the configuration file. .IP "\fB\-w\fR \fI\s-1PROGRAM\s0\fR" 14 .IX Item "-w PROGRAM" Open the files with the program \fI\s-1PROGRAM\s0\fR .IP "\fB\-h\fR, \fB\-\-help\fR" 14 .IX Item "-h, --help" Print a list of options and exit. .SH "FILES" .IX Header "FILES" rifle shares configuration files with ranger, though ranger is not required in order to use rifle. The configuration file \fIrifle.conf\fR is expected to be at \&\fI~/.config/ranger/rifle.conf\fR. .PP This file specifies patterns for determining the commands to open files with. The syntax is described in the comments of the default \fIrifle.conf\fR that ships with ranger. To obtain it, you need to run: \f(CW\*(C`ranger \-\-copy\-config=rifle\*(C'\fR .SH "ENVIRONMENT" .IX Header "ENVIRONMENT" .IP "\s-1EDITOR\s0" 8 .IX Item "EDITOR" Determines which editor to use for editing files (in the default \fIrifle.conf\fR). .IP "\s-1PAGER\s0" 8 .IX Item "PAGER" Determines which pager to use for displaying files (in the default \fIrifle.conf\fR). .IP "\s-1TERMCMD\s0" 8 .IX Item "TERMCMD" Determines the terminal emulator command for use with the \fIt\fR flag. It is required that the value is the path to an executable file which accepts the \*(L"\-e \s-1COMMAND\*(R"\s0 argument. .IP "\s-1XDG_CONFIG_HOME\s0" 8 .IX Item "XDG_CONFIG_HOME" Specifies the directory for configuration files. Defaults to \fI\f(CI$HOME\fI/.config\fR. .SH "EXAMPLES" .IX Header "EXAMPLES" List all the different methods: .PP .Vb 4 \& $ rifle \-l helloworld.py \& 0:editor::"$EDITOR" \-\- "$@" \& 1:pager::"$PAGER" \-\- "$@" \& 2:::python \-\- "$1" .Ve .PP Display its content by opening it with \*(L"cat\*(R": .PP .Vb 2 \& $ rifle \-w cat helloworld.py \& print("Hello World!") .Ve .PP Run it by picking the method 2, which calls 'python \*(-- \*(L"$1\*(R"': .PP .Vb 2 \& $ rifle \-p 2 helloworld.py \& Hello World! .Ve .PP Display the file in a pager inside a new terminal, run as root: .PP .Vb 1 \& $ rifle \-p 1 \-f tr helloworld.py .Ve