This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

mc: use xdg-open for everything

+196 -317
+196 -317
nixos/2configs/mc.nix
··· 2 2 3 3 let 4 4 mcExt = pkgs.writeText "mc.ext" '' 5 - # gitfs changeset 6 - regex/^\[git\] 7 - Open=%cd %p/changesetfs:// 8 - View=%cd %p/patchsetfs:// 9 - 10 - ### Archives ### 11 - 12 - # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk, .gem 13 - regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$|\.gem$ 14 - Open=%cd %p/utar:// 15 - 16 - shell/.tar.bz 17 - # Open=%cd %p/utar:// 18 - 19 - regex/\.t(ar\.bz2|bz2?|b2)$ 20 - Open=%cd %p/utar:// 21 - 22 - # .tar.lzma, .tlz 23 - regex/\.t(ar\.lzma|lz)$ 24 - Open=%cd %p/utar:// 25 - 26 - # .tar.xz, .txz 27 - regex/\.t(ar\.xz|xz)$ 28 - Open=%cd %p/utar:// 29 - 30 - # .tar.F - used in QNX 31 - shell/.tar.F 32 - # Open=%cd %p/utar:// 33 - 34 - # .qpr/.qpk - QNX Neutrino package installer files 35 - regex/\.qp[rk]$ 36 - Open=%cd %p/utar:// 37 - 38 - # tar 39 - shell/i/.tar 40 - Open=%cd %p/utar:// 41 - 42 - # lha 43 - type/^LHa\ .*archive 44 - Open=%cd %p/ulha:// 45 - 46 - # arj 47 - regex/i/\.a(rj|[0-9][0-9])$ 48 - Open=%cd %p/uarj:// 49 - 50 - # cab 51 - shell/i/.cab 52 - Open=%cd %p/ucab:// 53 - 54 - # ha 55 - shell/i/.ha 56 - Open=%cd %p/uha:// 57 - 58 - # rar 59 - regex/i/\.r(ar|[0-9][0-9])$ 60 - Open=%cd %p/urar:// 61 - 62 - # ALZip 63 - shell/i/.alz 64 - Open=%cd %p/ualz:// 65 - 66 - # cpio 67 - shell/.cpio.Z 68 - Open=%cd %p/ucpio:// 69 - 70 - shell/.cpio.xz 71 - Open=%cd %p/ucpio:// 72 - 73 - shell/.cpio.gz 74 - Open=%cd %p/ucpio:// 75 - 76 - shell/i/.cpio 77 - Open=%cd %p/ucpio:// 78 - 79 - # 7zip archives (they are not man pages) 80 - shell/i/.7z 81 - Open=%cd %p/u7z:// 82 - 83 - # patch 84 - regex/\.(diff|patch)(\.bz2)$ 85 - Open=%cd %p/patchfs:// 86 - 87 - regex/\.(diff|patch)(\.(gz|Z))$ 88 - Open=%cd %p/patchfs:// 89 - 90 - # ls-lR 91 - regex/(^|\.)ls-?lR(\.gz|Z|bz2)$ 92 - Open=%cd %p/lslR:// 93 - 94 - # trpm 95 - shell/.trpm 96 - Open=%cd %p/trpm:// 97 - 98 - # RPM packages (SuSE uses *.spm for source packages) 99 - regex/\.(src\.rpm|spm)$ 100 - Open=%cd %p/rpm:// 101 - 102 - shell/.rpm 103 - Open=%cd %p/rpm:// 104 - 105 - # deb 106 - regex/\.u?deb$ 107 - Open=%cd %p/deb:// 108 - 109 - # dpkg 110 - shell/.debd 111 - Open=%cd %p/debd:// 112 - 113 - # apt 114 - shell/.deba 115 - Open=%cd %p/deba:// 116 - 117 - # ISO9660 118 - shell/i/.iso 119 - Open=%cd %p/iso9660:// 120 - 121 - 122 - regex/\.(diff|patch)$ 123 - Open=%cd %p/patchfs:// 124 - 125 - # ar library 126 - regex/\.s?a$ 127 - Open=%cd %p/uar:// 128 - 129 - # gplib 130 - shell/i/.lib 131 - Open=%cd %p/ulib:// 132 - 133 - 134 - # Mailboxes 135 - type/^ASCII\ mail\ text 136 - Open=%cd %p/mailfs:// 137 - 138 - 139 - ### Sources ### 140 - 141 - # C/C++ 142 - regex/i/\.(c|cc|cpp)$ 143 - Include=editor 144 - 145 - # C/C++ header 146 - regex/i/\.(h|hh|hpp)$ 147 - Include=editor 148 - 149 - # Fortran 150 - shell/i/.f 151 - Include=editor 152 - 153 - # Assembler 154 - regex/i/\.(s|asm)$ 155 - Include=editor 156 - 157 - include/editor 158 - Open=%var{EDITOR:vim} %f 159 - 160 - ### Images ### 161 - 162 - shell/i/.gif 163 - Include=image 164 - 165 - regex/i/\.jpe?g$ 166 - Include=image 167 - 168 - shell/i/.bmp 169 - Include=image 170 - 171 - shell/i/.png 172 - Include=image 173 - 174 - shell/i/.jng 175 - Include=image 176 - 177 - shell/i/.mng 178 - Include=image 179 - 180 - shell/i/.tiff 181 - Include=image 182 - 183 - shell/.ico 184 - Include=image 185 - 186 - include/image 187 - Open=sxiv %f 188 - View=sxiv %f 189 - 190 - ### Sound files ### 191 - 192 - regex/i/\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv)$ 193 - Include=audio 194 - 195 - regex/i/\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$ 196 - Include=audio 197 - 198 - shell/i/.waw22 199 - Include=audio 200 - 201 - shell/i/.mp3 202 - Include=audio 203 - 204 - regex/i/\.og[gax]$ 205 - Include=audio 206 - 207 - regex/i/\.(spx|flac)$ 208 - Include=audio 209 - 210 - regex/i/\.(midi?|rmid?)$ 211 - Include=audio 212 - 213 - shell/i/.wma 214 - Include=audio 215 - 216 - include/audio 217 - Open=mpv %f 218 - View=mpv %f 219 - 220 - ### Video ### 221 - 222 - shell/i/.avi 223 - Include=video 224 - 225 - regex/i/\.as[fx]$ 226 - Include=video 227 - 228 - shell/i/.divx 229 - Include=video 230 - 231 - shell/i/.rmvb 232 - Include=video 233 - 234 - shell/i/.mkv 235 - Include=video 236 - 237 - regex/i/\.(mov|qt)$ 238 - Include=video 239 - 240 - regex/i/\.(mp4|m4v|mpe?g)$ 241 - Include=video 242 - 243 - # MPEG-2 TS container + H.264 codec 244 - shell/i/.mts 245 - Include=video 246 - 247 - shell/i/.ts 248 - Include=video 249 - 250 - shell/i/.vob 251 - Include=video 252 - 253 - shell/i/.wmv 254 - Include=video 255 - 256 - regex/i/\.fl[icv]$ 257 - Include=video 258 - 259 - shell/i/.ogv 260 - Include=video 261 - 262 - # WebM 263 - shell/i/.webm 264 - Include=video 265 - 266 - type/WebM 267 - Include=video 268 - 269 - include/video 270 - Open=mpv %f 271 - View=mpv %f 272 - 273 - 274 - ### Documents ### 275 - 276 - # PDF 277 - shell/i/.pdf 278 - Open=zathura %f 279 - View=zathura %f 280 - 281 - ### Miscellaneous ### 282 - 283 - # Makefile 284 - regex/[Mm]akefile$ 285 - Open=make -f %f %{Enter parameters} 286 - 287 - 288 - ### Plain compressed files ### 289 - 290 - # ace 291 - shell/i/.ace 292 - Open=%cd %p/uace:// 293 - Extract=unace x %f 294 - 295 - # arc 296 - shell/i/.arc 297 - Open=%cd %p/uarc:// 298 - Extract=arc x %f '*' 299 - Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi 300 - 301 - # zip 302 - shell/i/.zip 303 - Open=%cd %p/uzip:// 304 - 305 - # zip 306 - type/i/^zip\ archive 307 - Open=%cd %p/uzip:// 308 - 309 - # jar(zip) 310 - type/i/^Java\ Jar\ file\ data\ \(zip\) 311 - Open=%cd %p/uzip:// 312 - 313 - # zoo 314 - shell/i/.zoo 315 - Open=%cd %p/uzoo:// 316 - 317 - ### Default ### 5 + # Midnight Commander 4.0 extension file 6 + # 7 + # Warning: The structure of this file has been completely changed with the version 4.0! 8 + # 9 + # All lines starting with # or empty lines are ignored. 10 + # 11 + # IMPORTANT: mc scans this file only upon first use or after editing it using the 12 + # mc "Edit extension file" command (F9-c-e). If you edit this file in any other way 13 + # while mc is running, you will need to press F9-c-e and exit the editor for your 14 + # changes to take effect, or exit mc and start it again. 15 + # 16 + # Section name can be anything with following exceptions: 17 + # there are two reserved section names: 18 + # mc.ext.ini 19 + # Default 20 + # special name pattern: 21 + # Include/xxxxx 22 + # See below for more details. 23 + # 24 + # Section [mc.ext.ini] is mandatory. It contains file metadata. 25 + # "Version" parameter is mandatory. It contains the file format version. 26 + # 27 + # Section [Default] is optional. It is applied only if no other match was found. 28 + # 29 + # Sections like [Include/xxxx] can be referenced as "Include=xxxx" from other sections. 30 + # Section [Include/xxxx] can be located as before as after sections that point to it. 31 + # 32 + # Sections are processed from top to bottom, thus the order is important. 33 + # If there are more than one sections with the same name in this file, the first 34 + # section will be used. 35 + # 36 + # [Default] should be a catch-all action and come last. 37 + # 38 + # A section describing a file can contain following keys: 39 + # 40 + # File descriptions: 41 + # 42 + # Directory 43 + # Matches any directory matching regular expression. 44 + # Always case sensitive. 45 + # This key has the highest priority over other keys. If this key is in a section, 46 + # other keys are ignored. 47 + # 48 + # Type 49 + # Matches files if `file %f` matches regular expression 50 + # (the "filename:" part is removed from `file %f` output). 51 + # Ignored if the "file" utility isn't used (not found during the configure step 52 + # or disabled in the ini-file). 53 + # 54 + # TypeIgnoreCase [true|false] 55 + # Defines whether the Type value is case sensitive or not. 56 + # If absent, Type is case sensitive. 57 + # 58 + # Regex 59 + # An extended regular expression 60 + # Please note that we are using the PCRE library and thus \| matches 61 + # the literal | and | has a special meaning (or), and () have a special meaning 62 + # and \( \) stand for literal ( ). 63 + # 64 + # Example: 65 + # Regex=\.t(ar\.lzma|lz)$ 66 + # matches *.tar.lzma or *.tlz. 67 + # 68 + # RegexIgnoreCase [true|false] 69 + # Defines whether the Regex value is case sensitive or not. 70 + # If absent, Regex is case sensitive. 71 + # 72 + # Shell 73 + # Describes an extension when starting with a dot (no wildcards). 74 + # 75 + # Example: 76 + # Shell=.tar 77 + # matches *.tar. 78 + # 79 + # If it doesn't start with a dot, it matches only a file of that name. 80 + # 81 + # If both keys Regex and Shell are in the same section, Regex is used 82 + # and Shell is ignored. 83 + # 84 + # ShellIgnoreCase [true|false] 85 + # Defines whether the Shell value is case sensitive or not. 86 + # If absent, Shell is case sensitive. 87 + # 88 + # Include 89 + # Reference to another section. 90 + # 91 + # Example: 92 + # Include=video 93 + # points to the [Include/video] section. 94 + # 95 + # Commands: 96 + # 97 + # Open 98 + # Execute the command if the user presses Enter or doubleclicks it. 99 + # 100 + # View 101 + # Execute the command if the user presses F3. 102 + # 103 + # Edit 104 + # Execute the command if the user presses F4. 105 + # 106 + # All commands are ignored if the section contains the Include key. 107 + # 108 + # Command is any one-line shell command, with the following substitutions: 109 + # 110 + # %% 111 + # The % character 112 + # 113 + # %p 114 + # Name of the current file without the path. 115 + # Also provided to the external application as MC_EXT_BASENAME environment variable. 116 + # 117 + # %f 118 + # Name of the current file. Unlike %p, if the file is located on a non-local 119 + # virtual filesystem, that is either tarfs or ftpfs, then the file will be 120 + # temporarily copied into a local directory and %f will be the full path 121 + # to this local temporary file. 122 + # If you don't want to get a local copy and want to get the virtual fs path 123 + # (like /ftp://ftp.cvut.cz/pub/hungry/xword), then use %d/%p instead of %f. 124 + # Also provided to the external application as MC_EXT_FILENAME environment variable. 125 + # 126 + # %d 127 + # Name of the current directory without the trailing slash (`pwd`). 128 + # Also provided to the external application as MC_EXT_CURRENTDIR environment variable. 129 + # 130 + # %s 131 + # "Selected files", that is space separated list of tagged files if any or the name 132 + # of the current file. 133 + # Also provided to the external application as MC_EXT_SELECTED environment variable. 134 + # 135 + # %t 136 + # List of the tagged files. 137 + # Also provided to the external application as MC_EXT_ONLYTAGGED environment variable. 138 + # 139 + # %u 140 + # List of the tagged files (they will be untaged after the command is executed). 141 + # 142 + # (If the letter following the % is uppercase, then it refers to the opposite panel. 143 + # But you shouldn't have to use it in this file.) 144 + # 145 + # %cd 146 + # The rest is a path mc should change into (cd won't work, since it's a child process). 147 + # %cd handles even vfs names. 148 + # 149 + # %view 150 + # The command output will be piped into mc's internal file viewer. If you use 151 + # only %view and no command, the viewer will load %f file instead (that is no piping, 152 + # which is the difference to %view cat %f). 153 + # 154 + # %view may be directly followed by {} with one or more of the following 155 + # separated by commas: 156 + # ascii (ascii mode) 157 + # hex (hex mode), 158 + # nroff (color highlighting for text using escape sequences), 159 + # unform (no highlighting for nroff sequences) 160 + # 161 + # %var{VAR:default} 162 + # This macro will expand to the value of the VAR variable in the environment if it's 163 + # set, otherwise the default value will be used. This is similar to the Bourne shell 164 + # ''${VAR-default} construct. 165 + # 166 + # Section can contain both Type and Regex or Type and Shell keys. In this case 167 + # they are handled as an AND condition. 168 + # 169 + # Example: 170 + # Shell=.3gp 171 + # Type=^ISO Media.*3GPP 172 + # 173 + # matches *.3gp files for which `file` output is a line starting with "ISO Media" 174 + # and containing "3GPP". 175 + # 176 + # If there are more than one keys with the same name in a section, the last key will be used. 177 + # 178 + # 179 + # Any new entries you want to add are always welcome if they are useful on more than one 180 + # system. You can post your modifications as tickets at www.midnight-commander.org. 181 + 182 + 183 + ### Changes ### 184 + # 185 + # Reorganization: 2012-03-07 Slava Zanko <slavazanko@gmail.com> 186 + # 2021-03-28 Andrew Borodin <aborodin@vmail.ru> 187 + # 2021-08-24 Tomas Szepe <szepe@pinerecords.com> 188 + # 2022-09-11 Andrew Borodin <aborodin@vmail.ru>: port to INI format. 189 + 190 + [mc.ext.ini] 191 + Version=4.0 192 + # gitfs changeset 193 + regex/^\[git\] 194 + Open=%cd %p/changesetfs:// 195 + View=%cd %p/patchsetfs:// 196 + 197 + ######### Default ######### 318 198 319 199 # Default target for anything not described above 320 - default/* 321 - Open=vim %f 322 - View=vim %f 323 - 200 + [Default] 201 + Open=xdg-open 202 + View=xdg-open 324 203 ''; 325 204 326 205 in {