Skip to content

Commit b7a9dca

Browse files
committed
Replace 'resource opener' by 'file opener'
1 parent 3704e9a commit b7a9dca

13 files changed

Lines changed: 42 additions & 42 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Besides common file operations such as copy, move, remove, etc., _clifm_ provide
8686
- [Bookmarks](https://github.com/leo-arch/clifm/wiki/Common-Operations#bookmarks)
8787
- [File tags](https://github.com/leo-arch/clifm/wiki/Common-Operations#tagging-files)
8888
- [File filters](https://github.com/leo-arch/clifm/wiki/Advanced#files-filters) (including support for [`.hidden` files](https://github.com/leo-arch/clifm/wiki/Advanced#1b-hidden-files))
89-
- [Files selection](https://github.com/leo-arch/clifm/wiki/Common-Operations#selection) (supports both glob and regular expressions and works even across multiple instances of the program)
89+
- [File selection](https://github.com/leo-arch/clifm/wiki/Common-Operations#selection) (supports both glob and regular expressions and works even across multiple instances of the program)
9090
- [Files search](https://github.com/leo-arch/clifm/wiki/Common-Operations#searching) (supports both glob and regular expressions)
9191
- [File templates](https://github.com/leo-arch/clifm/wiki/Introduction#n-new)
9292
- [copy(-as), move(-as)](https://github.com/leo-arch/clifm/wiki/Introduction#c-l-e-edit-m-md-r), [interactive rename](https://github.com/leo-arch/clifm/wiki/Introduction#c-l-e-edit-m-md-r), and [open-with](https://github.com/leo-arch/clifm/wiki/Introduction#ow) functions
@@ -96,12 +96,12 @@ Besides common file operations such as copy, move, remove, etc., _clifm_ provide
9696
- [Directory jumper](https://github.com/leo-arch/clifm/wiki/Specifics#kangaroos-frecency-algorithm), similar to [autojump](https://github.com/wting/autojump), [z.lua](https://github.com/skywind3000/z.lua), and [zoxide](https://github.com/ajeetdsouza/zoxide)
9797
- [Virtual directories](https://github.com/leo-arch/clifm/wiki/Advanced#virtual-directories)
9898
- [Fastback - Quickly change to any parent directory](https://github.com/leo-arch/clifm/wiki/Introduction#fastback)
99-
- [A built-in resource opener](https://github.com/leo-arch/clifm/wiki/Specifics#resource-opener) (supports regular expressions and is able to discern between GUI and non-GUI environments)
100-
- [A built-in Freedesktop-compliant trash system](https://github.com/leo-arch/clifm/wiki/Common-Operations#trashing-files)
99+
- [A builtin file opener](https://github.com/leo-arch/clifm/wiki/Specifics#file-opener) (supports regular expressions and is able to discern between GUI and non-GUI environments)
100+
- [A builtin Freedesktop-compliant trash system](https://github.com/leo-arch/clifm/wiki/Common-Operations#trashing-files)
101101
- [Up to eight workspaces](https://github.com/leo-arch/clifm/wiki/Specifics#workspaces)
102102
- [More than a dozen sorting methods](https://github.com/leo-arch/clifm/wiki/Introduction#st-sort)
103103
- [Bulk operations](https://github.com/leo-arch/clifm/wiki/Advanced#bulk-operations): rename, create, remove, and create symbolik links in bulk
104-
- [Files encryption/decryption (plugin)](https://github.com/leo-arch/clifm/wiki/Advanced#plugins)
104+
- [File encryption/decryption (plugin)](https://github.com/leo-arch/clifm/wiki/Advanced#plugins)
105105
- [Copy files to your smart phone (plugin)](https://github.com/leo-arch/clifm/wiki/Advanced#plugins)
106106
- [Archiving and compression](https://github.com/leo-arch/clifm/wiki/Advanced#archives) support (including Zstandard and ISO 9660)
107107
- [Symlinks editor](https://github.com/leo-arch/clifm/wiki/Introduction#l-le)
@@ -117,9 +117,9 @@ Besides common file operations such as copy, move, remove, etc., _clifm_ provide
117117
- [Warning prompt for invalid command names](https://github.com/leo-arch/clifm/wiki/Customization#the-warning-prompt)
118118
- [Fused parameters for ELNs](https://github.com/leo-arch/clifm/wiki/Introduction#fused-parameters)
119119
- [Fuzzy completion for filenames and paths](https://github.com/leo-arch/clifm/wiki/Specifics#fuzzy-match)
120-
- [Wildcards expansion via <kbd>TAB</kbd>](https://github.com/leo-arch/clifm/wiki/Introduction#filter-files-with-the-tab-key) (`s *.[ch]<TAB>`)
121-
- [File types expansion via <kbd>TAB</kbd>](https://github.com/leo-arch/clifm/wiki/Introduction#filter-files-with-the-tab-key) (`=l<TAB>` to list all symlinks in the current dir)
122-
- [MIME types expansion](https://github.com/leo-arch/clifm/wiki/Advanced/#quickly-filtering-files-with-the-tab-key) (`@image<TAB>`)
120+
- [Wildcard expansion via <kbd>TAB</kbd>](https://github.com/leo-arch/clifm/wiki/Introduction#filter-files-with-the-tab-key) (`s *.[ch]<TAB>`)
121+
- [File type expansion via <kbd>TAB</kbd>](https://github.com/leo-arch/clifm/wiki/Introduction#filter-files-with-the-tab-key) (`=l<TAB>` to list all symlinks in the current dir)
122+
- [MIME type expansion](https://github.com/leo-arch/clifm/wiki/Advanced/#quickly-filtering-files-with-the-tab-key) (`@image<TAB>`)
123123
- Bash-like quoting system
124124
- Shell commands execution
125125
- Sequential and conditional commands execution
@@ -131,7 +131,7 @@ Besides common file operations such as copy, move, remove, etc., _clifm_ provide
131131
- Modes
132132
- [Stealth mode](https://github.com/leo-arch/clifm/wiki/Specifics#stealth-mode), also known as incognito or private mode
133133
- [Light mode](https://github.com/leo-arch/clifm/wiki/Specifics#light-mode) (just in case it is not fast enough for you)
134-
- [Resource opener/files launcher](https://github.com/leo-arch/clifm/wiki/Specifics#using-clifm-as-a-standalone-resource-opener) (similar to `xdg` and Ranger's `rifle`)
134+
- [File opener](https://github.com/leo-arch/clifm/wiki/Specifics#using-clifm-as-a-standalone-file-opener) (similar to `xdg` and Ranger's `rifle`)
135135
- [Files previewer](https://github.com/leo-arch/clifm/wiki/Advanced#shotgun) (similar to [`pistol`](https://github.com/yonasBSD/pistol) and Ranger's `scope.sh`)
136136
- [Disk usage analyzer mode](https://github.com/leo-arch/clifm/wiki/Specifics#disk-usage-analyzer)
137137
- [Files lister (ls-mode)](https://github.com/leo-arch/clifm/wiki/Advanced#files-lister-ls-mode)

misc/clifmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@
419419
# literal = Do not resolve the target at all (like 'ln -s')
420420
;LinkCreationMode=literal
421421

422-
# Choose the resource opener for opening files with their default associated
422+
# Choose the file opener for opening files with their default associated
423423
# application (e.g. Ranger's rifle or xdg-open). If not specified, 'lira',
424424
# Clifm's builtin opener, will be used.
425425
;Opener=

misc/completions.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ complete -c clifm -l no-warning-prompt -d 'Disable the warning prompt'
9191
complete -c clifm -l no-welcome-message -d 'Disable the welcome message'
9292
complete -c clifm -l only-dirs -d 'List only directories and symbolic links to directories'
9393
complete -c clifm -l open -r -d 'Open FILE (via Lira) and exit'
94-
complete -c clifm -l opener -r -d 'Use APP as resource opener'
94+
complete -c clifm -l opener -r -d 'Use APP as file opener'
9595
complete -c clifm -l pager-view -r -d 'How to list files in the pager' -x -a 'auto long short'
9696
complete -c clifm -l physical-size -r -d 'Same as --no-apparent-size'
9797
complete -c clifm -l preview -r -d 'Display a preview of FILE (via shotgun) and exit'

misc/completions.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ args=(
9494
'--no-welcome-message[disable the welcome message]'
9595
'--only-dirs[list only directories and symbolic links to directories]'
9696
'--open=[open FILE and exit]:filename:_files'
97-
'--opener=[resource opener to use instead of '\''Lira'\'', CliFM built-in opener]:opener:_command_names'
97+
'--opener=[file opener to use instead of the builtin opener]:opener:_command_names'
9898
'--pager-view=[how to list files in the pager: auto (default), long, short]:pager_view:->pager_views'
9999
'--physical-size[same as --no-apparent-size]'
100100
'--preview=[display a preview of FILE and exit]:filename:_files'

misc/manpage

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ clifm \- The Command Line File Manager
2424
.sp
2525
\fB8.\fR Builtin expansions
2626
.sp
27-
\fB9.\fR Resource opener (third\-party openers are also supported)
27+
\fB9.\fR File opener (third\-party openers are also supported)
2828
.sp
2929
\fB10.\fR Shotgun, a builtin files previewer
3030
.sp
@@ -256,7 +256,7 @@ maximum number of visited directories to remember
256256
list only up to \fINUM\fR files. Use \-1 or \'unset\' to remove this limit (default). See the \fImf\fR command for a more detailed description.
257257
.TP
258258
\fB\-\-mimelist\-file\fR=\fI\,FILE\/\fR
259-
set \fIFILE\fR as Lira\'s configuration file. See the \fBRESOURCE OPENER\fR section below for more information
259+
set \fIFILE\fR as Lira\'s configuration file. See the \fBFILE OPENER\fR section below for more information
260260
.TP
261261
\fB\-\-mnt\-udisks2\fR
262262
use \fIudisks2\fR instead of \fIudevil\fR (default), for the \fImedia\fR command
@@ -350,7 +350,7 @@ disable the welcome message
350350
list directories only
351351
.TP
352352
\fB\-\-open\fR=\fI\,FILE\/\fR
353-
run as a standalone resource opener: open \fIFILE\fR and exit, where FILE can be a regular file or a directory, using either standard notation (/dir/file) or the URI file scheme (file://dir/file), or a URL (www.domain or https://domain).
353+
run as a standalone file opener: open \fIFILE\fR and exit, where FILE can be a regular file or a directory, using either standard notation (/dir/file) or the URI file scheme (file://dir/file), or a URL (www.domain or https://domain).
354354
.TP
355355
\fB\-\-opener\fR=\fI\,APPLICATION\/\fR
356356
use APPLICATION (e.g.: \fIrifle\fR or \fIxdg\-open\fR) as files opener/launcher (instead of \fILira\fR, \fBclifm\fR's default opener).
@@ -944,13 +944,13 @@ To get information about a device, enter \fIiELN\fR, for example, \fIi12\fR, pro
944944
List only up to NUM files (valid range: >= 0). Use \fIunset\fR to list all files (default). An indicator (listed_files/total_files) will be printed below the list of files whenever some file is excluded from the current list (e.g. 20/310). Note however that though some files are excluded, all of them are loaded anyway, so that you can still perform any valid operation on them. For example, even if only 10 files are listed, you can still search for ALL symbolic links in the corresponding directory using the appropriate command: \fI/*\ \-l\fR.
945945
.TP
946946
.B mm, mime \fR[\fIopen FILE\fR] [\fIinfo FILE\fR] [\fIedit\fR [\fIAPP\fR]] [\fIimport\fR]
947-
This is \fILira\fR, \fBclifm\fR's resource opener.
947+
This is \fILira\fR, \fBclifm\fR's file opener.
948948
.sp
949949
Use the \fIopen\fR subcommand to open a file with the default associated application. Note that, since \fIopen\fR is the default action, it can be omitted. For example: \fImm file.pdf\fR. The same can be achieved more easily via the \fIopen\fI command: \fIopen file.pdf\fR (or using the short command, \fIo file.pdf\fR). Or, even shorter, just \fIfile.pdf\fR.
950950
.sp
951951
The \fIinfo\fR option prints MIME information about FILE: its MIME type, and, if any, the application associated to this filename or to the file's MIME type.
952952
.sp
953-
The \fIedit\fR option allows you to edit and customize the MIME list file. So, if a file has no default associated application, first get its MIME info or its file extension (running \fImm\ info\ FILE\fR), and then add a value for it to the MIME list file using the \fIedit\fR option (\fImm\ edit\fR or F6). Check the \fBRESOURCE OPENER\fR section below for information about the mimelist file syntax.
953+
The \fIedit\fR option allows you to edit and customize the MIME list file. So, if a file has no default associated application, first get its MIME info or its file extension (running \fImm\ info\ FILE\fR), and then add a value for it to the MIME list file using the \fIedit\fR option (\fImm\ edit\fR or F6). Check the \fBFILE OPENER\fR section below for information about the mimelist file syntax.
954954
.sp
955955
Finally, via the \fIimport\fR option \fBclifm\fR will try to import MIME associations from the system looking for \fImimeapps.list\fR files in those paths specified by the Freedesktop specification (see \fIhttps://specifications.freedesktop.org/mime\-apps\-spec/mime\-apps\-spec\-latest.html\fR). If at least one MIME association is successfuly imported, it will be stored as \fImimelist.clifm.XXXXXX\fR (where XXXXXX is a random six digits alphanumerical string). You can add these new associations to your mimelist file using the \fImime edit\fR command.
956956
.TP
@@ -1063,7 +1063,7 @@ If the device data is unknown, as it often happens when it comes to removable de
10631063
.sp
10641064
Without arguments (or via the \fIlist\fR subcommand), \fInet\fR lists the configuration for each remote available in the configuration file.
10651065
.sp
1066-
Use the \fIedit\fR option to edit the remotes configuration file. If no further argument is specified, the file will be opened with the current resource opener. However, you can pass an application as second parameter to open to configuration file. Example: \fInet edit nano\fR.
1066+
Use the \fIedit\fR option to edit the remotes configuration file. If no further argument is specified, the file will be opened with the current file opener. However, you can pass an application as second parameter to open to configuration file. Example: \fInet edit nano\fR.
10671067
.sp
10681068
If not already mounted, the \fIm\fR, \fImount\fR option mounts the specified remote using the mount command and the mounpoint specified in the confifuration file and automatically cd into the corresponding mountpoint. Example: \fInet m smb_work\fR. Since \fImount\fR is the default action, it can be omitted: \fInet smb_work\fR.
10691069
.sp
@@ -1074,7 +1074,7 @@ The \fIu\fR, \fIunmount\fR option unmounts the specified remote using the unmoun
10741074
.B o, open \fIELN/FILE\fR [\fIAPPLICATION\fR]
10751075
open FILE, which can be either a directory, in which case it works just like the \fIcd\fR command (see above), a regular file, or a symbolic link to either of the two. For example: \fIo\ 12\fR, \fIo\ filename\fR, \fIo\ /path/to/filename\fR.
10761076
.sp
1077-
By default, the \fIopen\fR function will open files with the default application associated to them via \fILira\fR, the builtin resource opener (see the \fImime\fR command above). However, if you want to open a file with a different application, add the application name as second argument, e.g. \fIo\ 12\ leafpad\fR or \fIo12\ leafpad\fR.
1077+
By default, the \fIopen\fR function will open files with the default application associated to them via \fILira\fR, the builtin file opener (see the \fImime\fR command above). However, if you want to open a file with a different application, add the application name as second argument, e.g. \fIo\ 12\ leafpad\fR or \fIo12\ leafpad\fR.
10781078
.sp
10791079
If you want to run the program in the background, simply add the ampersand character, as usual: \fIo\ 12\ &\fR, \fIo\ 12&\fR, \fIo12&\fR or (if auto\-open is enabled) just \fI12&\fR.
10801080
.sp
@@ -1094,7 +1094,7 @@ If only a name/number is entered, it is taken as the user who owns the file(s).
10941094
Use the \fIpc\fR command to edit files permissions.
10951095
.TP
10961096
.B opener \fR[\fIdefault\fR] [\fIAPPLICATION\fR]
1097-
with no argument, prints the currently used resource opener (by default, \fILira\fR, \fBclifm\fR\'s builtin opener). Otherwise, set APPLICATION (say \fIrifle\fR or \fIxdg\-open\fR) as opener or, if \fIdefault\fR is passed instead, use \fILira\fR.
1097+
with no argument, prints the currently used file opener (by default, \fILira\fR, \fBclifm\fR\'s builtin opener). Otherwise, set APPLICATION (say \fIrifle\fR or \fIxdg\-open\fR) as opener or, if \fIdefault\fR is passed instead, use \fILira\fR.
10981098
.TP
10991099
.B ow \fIELN/FILE\fR [\fIAPPLICATION\fR]
11001100
If APPLICATION is specified, open ELN/FILE with APPLICATION. In case you need to add parameters to APPLICATION, it is recommended to quote the expression: \fIow FILE "APP ARG..."\fR.
@@ -1962,8 +1962,8 @@ Of course, combinations of all these features is also possible. Example: \fIcp s
19621962
.TP
19631963
In addition to completions and expansions, an \fIauto\-suggestions system\fR is also available. See the \fBAUTO\-SUGGESTIONS\fR section below.
19641964

1965-
.SH 9. RESOURCE OPENER
1966-
As \fBclifm\fR\'s builtin resource opener, \fILira\fR takes care of opening files when no opening application has been specified in the command line. It does this by automatically parsing a MIME list file (see the \fBFILES\fR section below): it looks first for a matching pattern (either a MIME type or a filename), then checks the existence of the command associated to this pattern, and finally executes it.
1965+
.SH 9. FILE OPENER
1966+
As \fBclifm\fR\'s builtin file opener, \fILira\fR takes care of opening files when no opening application has been specified in the command line. It does this by automatically parsing a MIME list file (see the \fBFILES\fR section below): it looks first for a matching pattern (either a MIME type or a filename), then checks the existence of the command associated to this pattern, and finally executes it.
19671967
.TP
19681968
\fILira\fR is controlled via the \fImime\fR command. File associations are stored in the MIME list file.
19691969
.TP
@@ -2158,9 +2158,9 @@ or, if you prefer \fBxdg\-open\fR(1):
21582158

21592159
\fB.*=rifle\fR
21602160
.TP
2161-
\fB6. Using Clifm as a standalone resource opener\fR
2161+
\fB6. Using Clifm as a standalone file opener\fR
21622162
.TP
2163-
Though \fBclifm\fR is a file manager, it can be used as a simple resource opener via the \fI\-\-open\fR command line option. For example:
2163+
Though \fBclifm\fR is a file manager, it can be used as a simple file opener via the \fI\-\-open\fR command line option. For example:
21642164

21652165
\fBclifm \-\-open /path/to/my_file.jpg
21662166
clifm \-\-open /path/to/my_dir
@@ -2185,7 +2185,7 @@ This command generates a preview of the file \fImyfile.txt\fR and then quits \fB
21852185
.TP
21862186
\fB3. Customization
21872187
.TP
2188-
Previewing applications (based on either MIME type or filename) are defined in a configuration file (\fI$XDG_CONFIG_HOME/clifm/profiles/PROFILE/preview.clifm\fR) using the same syntax used by \fILira\fR (the builtin resource opener). See the \fBRESOURCE OPENER\fR section above.
2188+
Previewing applications (based on either MIME type or filename) are defined in a configuration file (\fI$XDG_CONFIG_HOME/clifm/profiles/PROFILE/preview.clifm\fR) using the same syntax used by \fILira\fR (the builtin file opener). See the \fBFILE OPENER\fR section above.
21892189
.TP
21902190
You can set an alternative configuration file via the \fI\-\-shotgun\-file\fR command line switch:
21912191

@@ -2300,7 +2300,7 @@ A convenient helper script is provided to get a consistent look across all plugi
23002300
# shellcheck source=/dev/null
23012301
. "$CLIFM_PLUGINS_HELPER"
23022302

2303-
Plugins can talk to \fBclifm\fR via a dedicated pipe created for this purpose and exposed via an environment variable (\fBCLIFM_BUS\fR). Write to the pipe and \fBclifm\fR will hear and handle the message immediately after the plugin's execution. If the message is a path, \fBclifm\fR will run the \fIopen\fR function, changing the current directory to the new path, if a directory, or opening it with the \fIresource opener\fR, if a file. Otherwise, if the message is not a path, it will be taken and executed as a command. Examples:
2303+
Plugins can talk to \fBclifm\fR via a dedicated pipe created for this purpose and exposed via an environment variable (\fBCLIFM_BUS\fR). Write to the pipe and \fBclifm\fR will hear and handle the message immediately after the plugin's execution. If the message is a path, \fBclifm\fR will run the \fIopen\fR function, changing the current directory to the new path, if a directory, or opening it with the \fIfile opener\fR, if a file. Otherwise, if the message is not a path, it will be taken and executed as a command. Examples:
23042304

23052305
\'echo "/tmp" > "$CLIFM_BUS"\' tells \fBclifm\fR to change the current directory to \fI/tmp\fR
23062306

@@ -2920,7 +2920,7 @@ The number of terminal columns
29202920
The number of terminal lines
29212921
.TP
29222922
.B CLIFM_MIMETYPES_FILE
2923-
Set a custom mime.types file (instead of the default, \fI~/.mime.types\fR). Consult the \fBRESOURCE OPENER\fR section form more information.
2923+
Set a custom mime.types file (instead of the default, \fI~/.mime.types\fR). Consult the \fBFILE OPENER\fR section form more information.
29242924
.TP
29252925
Except when running in \fBstealth mode\fR, \fBclifm\fR sets the following environment variables:
29262926
.TP

misc/mimelist.clifm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
###################################
22
# Configuration File for Lira #
3-
# Clifm's Resource Opener #
3+
# Clifm's File Opener #
44
###################################
55

66
#-----------------------------
77
# Description
88
#-----------------------------
99

1010
# This configuration file allows the user to define how different files are
11-
# opened by Lira, Clifm's resource opener.
11+
# opened by Lira, Clifm's file opener.
1212

1313
# Commented and blank lines are ignored.
1414
# Lines starting with either '#' or ';' are comments.

0 commit comments

Comments
 (0)