commit 82740d1664c3e58ea87f11bf60658845da4a1db4 Author: mzpx Date: Mon Jun 29 18:33:00 2026 +0200 First release diff --git a/hotlist b/hotlist new file mode 100644 index 0000000..b7b4a81 --- /dev/null +++ b/hotlist @@ -0,0 +1,6 @@ +GROUP "Pictures" + ENTRY "local - import" URL "/Users/mzpx/Import" + ENTRY "/Volumes/WORK/pictures" URL "/Volumes/WORK/pictures" +ENDGROUP +ENTRY "/Volumes" URL "/Volumes" +ENTRY "mzpx - home" URL "/Users/mzpx" diff --git a/hotlist.bak b/hotlist.bak new file mode 100644 index 0000000..2e50a8a --- /dev/null +++ b/hotlist.bak @@ -0,0 +1,6 @@ +GROUP "Pictures" + ENTRY "/Volumes/WORK/pictures" URL "/Volumes/WORK/pictures" + ENTRY "local - import" URL "/Users/mzpx/Import" +ENDGROUP +ENTRY "/Volumes" URL "/Volumes" +ENTRY "mzpx - home" URL "/Users/mzpx" diff --git a/ini b/ini new file mode 100644 index 0000000..0258651 --- /dev/null +++ b/ini @@ -0,0 +1,160 @@ +[Midnight-Commander] +verbose=true +shell_patterns=true +auto_save_setup=true +preallocate_space=false +auto_menu=false +use_internal_view=true +use_internal_edit=false +clear_before_exec=true +confirm_delete=true +confirm_overwrite=true +confirm_execute=false +confirm_history_cleanup=true +confirm_exit=false +confirm_directory_hotlist_delete=false +confirm_view_dir=false +safe_delete=false +safe_overwrite=false +use_8th_bit_as_meta=false +mouse_move_pages_viewer=true +mouse_close_dialog=false +fast_refresh=false +drop_menus=false +wrap_mode=true +old_esc_mode=true +cd_symlinks=true +show_all_if_ambiguous=false +use_file_to_guess_type=true +alternate_plus_minus=false +only_leading_plus_minus=true +show_output_starts_shell=false +xtree_mode=false +file_op_compute_totals=true +classic_progressbar=true +use_netrc=true +ftpfs_always_use_proxy=false +ftpfs_use_passive_connections=true +ftpfs_use_passive_connections_over_proxy=false +ftpfs_use_unix_list_options=true +ftpfs_first_cd_then_ls=true +ignore_ftp_chattr_errors=true +editor_fill_tabs_with_spaces=false +editor_return_does_auto_indent=true +editor_backspace_through_tabs=false +editor_fake_half_tabs=true +editor_option_save_position=true +editor_option_auto_para_formatting=false +editor_option_typewriter_wrap=false +editor_edit_confirm_save=true +editor_syntax_highlighting=true +editor_persistent_selections=true +editor_drop_selection_on_copy=true +editor_cursor_beyond_eol=false +editor_cursor_after_inserted_block=false +editor_visible_tabs=true +editor_visible_spaces=true +editor_line_state=false +editor_simple_statusbar=false +editor_check_new_line=false +editor_show_right_margin=false +editor_group_undo=false +editor_state_full_filename=false +editor_ask_filename_before_edit=false +nice_rotating_dash=true +shadows=true +mcview_remember_file_position=false +auto_fill_mkdir_name=true +copymove_persistent_attr=true +pause_after_run=1 +mouse_repeat_rate=100 +double_click_speed=250 +old_esc_mode_timeout=1000000 +max_dirt_limit=10 +num_history_items_recorded=60 +vfs_timeout=60 +ftpfs_directory_timeout=900 +ftpfs_retry_seconds=30 +shell_directory_timeout=900 +editor_tab_spacing=8 +editor_word_wrap_line_length=72 +editor_option_save_mode=0 +editor_backup_extension=~ +editor_filesize_threshold=64M +editor_stop_format_chars=-+*\\,.;:&> +mcview_eof= +skin=modarin256-thin +filepos_max_saved_entries=1024 + +[Layout] +output_lines=0 +left_panel_size=50 +top_panel_size=16 +message_visible=false +keybar_visible=true +xterm_title=true +command_prompt=false +menubar_visible=true +free_space=true +horizontal_split=false +vertical_equal=true +horizontal_equal=true + +[Misc] +timeformat_recent=%b %e %H:%M +timeformat_old=%b %e %Y +ftp_proxy_host=gate +ftpfs_password=anonymous@ +display_codepage=UTF-8 +source_codepage=Other_8_bit +autodetect_codeset= +clipboard_store= +clipboard_paste= + +[Colors] +base_color= +xterm-256color= +color_terminals= + +[Panels] +show_mini_info=true +kilobyte_si=false +mix_all_files=false +show_backups=true +show_dot_files=true +fast_reload=false +fast_reload_msg_shown=false +mark_moves_down=true +reverse_files_only=true +auto_save_setup_panels=false +navigate_with_arrows=false +panel_scroll_pages=true +panel_scroll_center=false +mouse_move_pages=true +filetype_mode=true +permission_mode=false +torben_fj_mode=false +quick_search_mode=0 +select_flags=6 +simple_swap=false + +[FindFile] +file_case_sens=true +file_shell_pattern=true +file_find_recurs=true +follow_symlinks=false +file_skip_hidden=false +file_all_charsets=false +content_case_sens=false +content_regexp=false +content_first_hit=false +content_whole_words=false +content_all_charsets=false +ignore_dirs_enable=true +ignore_dirs= + +[Panelize] +Modified git files=git ls-files --modified +Find *.orig after patching=find . -name \\*.orig -print +Find SUID and SGID programs=find . \\( \\( -perm -04000 -a -perm /011 \\) -o \\( -perm -02000 -a -perm /01 \\) \\) -print +Find rejects after patching=find . -name \\*.rej -print diff --git a/mc.ext.ini b/mc.ext.ini new file mode 100644 index 0000000..1f56244 --- /dev/null +++ b/mc.ext.ini @@ -0,0 +1,1185 @@ +# Midnight Commander 4.0 extension file +# +# Warning: The structure of this file has been completely changed with the version 4.0! +# +# All lines starting with # or empty lines are ignored. +# +# IMPORTANT: mc scans this file only upon first use or after editing it using the +# mc "Edit extension file" command (F9-c-e). If you edit this file in any other way +# while mc is running, you will need to press F9-c-e and exit the editor for your +# changes to take effect, or exit mc and start it again. +# +# Section name can be anything with following exceptions: +# there are two reserved section names: +# mc.ext.ini +# Default +# special name pattern: +# Include/xxxxx +# See below for more details. +# +# Section [mc.ext.ini] is mandatory. It contains file metadata. +# "Version" parameter is mandatory. It contains the file format version. +# +# Section [Default] is optional. It is applied only if no other match was found. +# +# Sections like [Include/xxxx] can be referenced as "Include=xxxx" from other sections. +# Section [Include/xxxx] can be located before or after sections that point to it. +# +# Sections are processed from top to bottom, thus the order is important. +# Multiple sections with the same name are allowed, they are merged together. +# Sections may contain the same key multiple times; the last entry wins. +# +# [Default] should be a catch-all action and come last. +# +# A section describing a file can contain following keys: +# +# File descriptions: +# +# Directory +# Matches any directory matching regular expression. +# Always case sensitive. +# This key has the highest priority over other keys. If this key is present, +# other keys are ignored. +# +# Type +# Matches files if `file %f` matches regular expression +# (the "filename:" part is removed from `file %f` output). +# Ignored if the "file" utility isn't used (not found during the configure step +# or disabled in the ini-file). +# +# TypeIgnoreCase [true|false] +# Defines whether the Type value is case sensitive or not. +# If absent, Type is case sensitive. +# +# Regex +# An extended regular expression +# Please note that we are using the PCRE library and thus \\| matches +# the literal | and | has a special meaning (or), and () have a special meaning +# and \\( \\) stand for literal ( ). +# +# An unescaped backslash \ is handled as invalid escape sequences in glib = 2.77.3 and +# glib >= 2.79 (https://gitlab.gnome.org/GNOME/glib/-/issues/3094), therefore backslash +# must be escaped. +# +# Example: +# Regex=\\.t(ar\\.lzma|lz)$ +# matches *.tar.lzma or *.tlz. +# +# RegexIgnoreCase [true|false] +# Defines whether the Regex value is case sensitive or not. +# If absent, Regex is case sensitive. +# +# Shell +# Describes an extension when starting with a dot (no wildcards). +# +# Example: +# Shell=.tar +# matches *.tar. +# +# If it doesn't start with a dot, it matches only a file of that name. +# +# If both keys Regex and Shell are in the same section, Regex is used +# and Shell is ignored. +# +# ShellIgnoreCase [true|false] +# Defines whether the Shell value is case sensitive or not. +# If absent, Shell is case sensitive. +# +# Include +# Reference to another section. +# +# Example: +# Include=video +# points to the [Include/video] section. +# +# Commands: +# +# Open +# Execute the command if the user presses Enter or doubleclicks it. +# +# View +# Execute the command if the user presses F3. +# +# Edit +# Execute the command if the user presses F4. +# +# All commands are ignored if the section contains the Include key. +# +# Command is any one-line shell command, with the following substitutions: +# +# %% +# The % character +# +# %p +# Name of the current file without the path. +# Also provided to the external application as MC_EXT_BASENAME environment variable. +# +# %f +# Name of the current file. Unlike %p, if the file is located on a non-local +# virtual filesystem, that is either tarfs or ftpfs, then the file will be +# temporarily copied into a local directory and %f will be the full path +# to this local temporary file. +# If you don't want to get a local copy and want to get the virtual fs path +# (like /ftp://ftp.cvut.cz/pub/hungry/xword), then use %d/%p instead of %f. +# Also provided to the external application as MC_EXT_FILENAME environment variable. +# +# %d +# Name of the current directory without the trailing slash (`pwd`). +# Also provided to the external application as MC_EXT_CURRENTDIR environment variable. +# +# %s +# "Selected files", that is space separated list of tagged files if any or the name +# of the current file. +# Also provided to the external application as MC_EXT_SELECTED environment variable. +# +# %t +# List of the tagged files. +# Also provided to the external application as MC_EXT_ONLYTAGGED environment variable. +# +# %u +# List of the tagged files (they will be untaged after the command is executed). +# +# (If the letter following the % is uppercase, then it refers to the opposite panel. +# But you shouldn't have to use it in this file.) +# +# %cd +# The rest is a path mc should change into (cd won't work, since it's a child process). +# %cd handles even vfs names. +# +# %view +# The command output will be piped into mc's internal file viewer. If you use +# only %view and no command, the viewer will load %f file instead (that is no piping, +# which is the difference to %view cat %f). +# +# %view may be directly followed by {} with one or more of the following +# separated by commas: +# ascii (ascii mode) +# hex (hex mode), +# nroff (color highlighting for text using escape sequences), +# unform (no highlighting for nroff sequences) +# +# %var{VAR:default} +# This macro will expand to the value of the VAR variable in the environment if it's +# set, otherwise the default value will be used. This is similar to the Bourne shell +# ${VAR-default} construct. +# +# Section can contain both Type and Regex or Type and Shell keys. In this case +# they are handled as an AND condition. +# +# Example: +# Shell=.3gp +# Type=^ISO Media.*3GPP +# +# matches *.3gp files for which `file` output is a line starting with "ISO Media" +# and containing "3GPP". +# +# If there are more than one keys with the same name in a section, the last key will be used. +# +# +# Any new entries you want to add are always welcome if they are useful on more than one +# system. You can post your modifications as tickets at www.midnight-commander.org. + + +### Changes ### +# +# Reorganization: 2012-03-07 Slava Zanko +# 2021-03-28 Andrew Borodin +# 2021-08-24 Tomas Szepe +# 2022-09-11 Andrew Borodin : port to INI format. + +[mc.ext.ini] +Version=4.0 + +### GIT Repo ### +[gitfs changeset] +Regex=^\\[git\\] +Open=%cd %p/changesetfs:// +View=%cd %p/patchsetfs:// + +### Archives ### +# Since we use "file -z", we should use Regex and Shell first, then Type. + + +######### Files by name (Regex and Shell) ######### + +# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z +[tar.gzip] +Regex=\\.t([gp]?z|ar\\.g?[zZ])$ +Include=tar.gz + +[gem] +Shell=.gem +Include=tar.gz + +[crate] +Shell=.crate +Include=tar.gz + +[tar.bzip] +Shell=.tar.bz +# Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.bzip + +[tar.bzip2] +Regex=\\.t(ar\\.bz2|bz2?|b2)$ +Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.bzip2 + +# .tar.lzma, .tlz +[tar.lzma] +Regex=\\.t(ar\\.lzma|lz)$ +Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.lzma + +[tar.lz] +Shell=.tar.lz +Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.lz + +# .tar.lz4, .tlz4 +[tar.lz4] +Regex=\\.t(ar\\.lz4|lz4)$ +Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.lz4 + +# .tar.lzo, .tzo +[tar.lzo] +Regex=\\.t(ar\\.lzo|zo)$ +Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.lzo + +# .tar.xz, .txz +[tar.xz] +Regex=\\.t(ar\\.xz|xz)$ +Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.xz + +# .tar.zst, .tzst +[tar.zst] +Regex=\\.t(ar\\.zst|zst)$ +Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.zst + +# .tar.F - used on QNX +[tar.F] +Shell=.tar.F +# Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.F + +# .qpr/.qpk - QNX Neutrino package installer files +[tar.qpr] +Regex=\\.qp[rk]$ +Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.qpr + +[tar] +Shell=.tar +ShellIgnoreCase=true +Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar + +[arj] +Regex=\\.a(rj|[0-9][0-9])$ +RegexIgnoreCase=true +Open=%cd %p/uarj:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view arj + +[cab] +Shell=.cab +ShellIgnoreCase=true +Open=%cd %p/ucab:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view cab + +[ha] +Shell=.ha +ShellIgnoreCase=true +Open=%cd %p/uha:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view ha + +[rar] +Regex=\\.r(ar|[0-9][0-9])$ +RegexIgnoreCase=true +Open=%cd %p/urar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view rar + +# ALZip +[alz] +Shell=.alz +ShellIgnoreCase=true +Open=%cd %p/ualz:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view alz + +[cpio.Z] +Shell=.cpio.Z +Open=%cd %p/ucpio:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view cpio.z + +[cpio.lz] +Shell=.cpio.lz +Open=%cd %p/ucpio:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view cpio.lz + +[cpio.lz4] +Shell=.cpio.lz4 +Open=%cd %p/ucpio:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view cpio.lz4 + +[cpio.lzo] +Shell=.cpio.lzo +Open=%cd %p/ucpio:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view cpio.lzo + +[cpio.xz] +Shell=.cpio.xz +Open=%cd %p/ucpio:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view cpio.xz + +[cpio.zst] +Shell=.cpio.zst +Open=%cd %p/ucpio:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view cpio.zst + +[cpio.gz] +Shell=.cpio.gz +Open=%cd %p/ucpio:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view cpio.gz + +[cpio] +Shell=.cpio +ShellIgnoreCase=true +Include=cpio + +[initrd] +Regex=^(initramfs.*\\.img|initrd(-.+)?\\.img(-.+)?)$ +Include=cpio + +[7zip] +Shell=.7z +ShellIgnoreCase=true +Open=%cd %p/u7z:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view 7z + +[patch] +Regex=\\.(diff|patch)$ +Open=%cd %p/patchfs:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view cat + +[patch.gz] +Regex=\\.(diff|patch)\\.(gz|Z)$ +Open=%cd %p/patchfs:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view gz + +[patch.bz2] +Regex=\\.(diff|patch)\\.bz2$ +Open=%cd %p/patchfs:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view bz2 + +[patch.xz] +Regex=\\.(diff|patch)\\.xz$ +Open=%cd %p/patchfs:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view xz + +[patch.zst] +Regex=\\.(diff|patch)\\.zst$ +Open=%cd %p/patchfs:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view zst + +[ls-lR] +Regex=(^|\\.)ls-?lR(\\.gz|Z|bz2)$ +Open=%cd %p/lslR:// + +[trpm] +Shell=.trpm +Open=%cd %p/trpm:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/package.sh view trpm + +# RPM packages (SuSE uses *.spm for source packages) +[src.rpm] +Regex=\\.(src\\.rpm|spm)$ +Open=%cd %p/rpm:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/package.sh view src.rpm + +[rpm] +Shell=.rpm +Open=%cd %p/rpm:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/package.sh view rpm + +[deb] +Regex=\\.u?deb$ +Open=%cd %p/deb:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/package.sh view deb + +[dpkg] +Shell=.debd +Open=%cd %p/debd:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/package.sh view debd + +[apt] +Shell=.deba +Open=%cd %p/deba:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/package.sh view deba + +[ISO9660] +Shell=.iso +ShellIgnoreCase=true +Open=%cd %p/iso9660:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view iso9660 + +[ar] +Regex=\\.s?a$ +Open=%cd %p/uar:// +#Open=%view{ascii} ar tv %f +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view ar + +[gplib] +Shell=.lib +ShellIgnoreCase=true +Open=%cd %p/ulib:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view lib + +### Sources ### + +[C/C++] +Regex=\\.(c|cc|cpp|cxx|c\\+\\+)$ +RegexIgnoreCase=true +Include=editor + +[C/C++ header] +Regex=\\.(h|hh|hpp|hxx|h\\+\\+)$ +RegexIgnoreCase=true +Include=editor + +[Fortran] +Shell=.f +ShellIgnoreCase=true +Include=editor + +[Assembler] +Regex=\\.(s|asm)$ +RegexIgnoreCase=true +Include=editor + +[Typescript] +Shell=.ts +ShellIgnoreCase=true +Type=^Java source +Include=editor + +# .so libraries +[so] +Regex=\\.(so|so\\.[0-9\\.]*)$ +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view so + +# .dylib libraries +[dylib] +Regex=\\.(dylib|dylib\\.[0-9\\.]*)$ +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view dylib + + +### Documentation ### + +#[Texinfo] +#Regex=\\.(te?xi|texinfo)$ + +[info-by-shell] +Shell=.info +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open info + +# Exception: .3gp are video files, not manual pages +[3gp] +Shell=.3gp +ShellIgnoreCase=true +Type=^ISO Media.*3GPP +Include=video + +# Troff with me macros. +# Exception - "read.me" is not a nroff file. +[read.me] +Shell=read.me +Open= +View= + +[troff] +Shell=.me +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open nroff.me %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view nroff.me %var{PAGER:more} + +[roff with ms macros] +Shell=.ms +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open nroff.ms %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view nroff.ms %var{PAGER:more} + +# Manual page + +[man.lz] +Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lz$ +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open man.lz %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view man.lz %var{PAGER:more} + +[man.lz4] +Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lz4$ +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open man.lz4 %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view man.lz4 %var{PAGER:more} + +[man.lzma] +Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lzma$ +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open man.lzma %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view man.lzma %var{PAGER:more} + +[man.lzo] +Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lzo$ +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open man.lzo %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view man.lzo %var{PAGER:more} + +[man.xz] +Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.xz$ +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open man.xz %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view man.xz %var{PAGER:more} + +[man.zst] +Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.zst$ +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open man.zst %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view man.zst %var{PAGER:more} + +# Perl pod page +[pod] +Shell=.pod +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open pod %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view pod %var{PAGER:more} + +[chm] +Shell=.chm +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open chm + +### Images ### + +[xcf] +Shell=.xcf +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/image.sh open xcf + +[xbm] +Shell=.xbm +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/image.sh open xbm + +[xpm] +Shell=.xpm +Include=image + +[ico] +Shell=.ico +Include=image + +[svg] +Shell=.svg +ShellIgnoreCase=true +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/image.sh view svg +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/image.sh open svg + +[webp] +Shell=.webp +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/image.sh view webp +; Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/image.sh open webp +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/image.sh open webp + +[avif] +Shell=.avif +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/image.sh view avif +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/image.sh open avif + + +### Sound files ### + +[sound] +Regex=\\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv|spx|flac)$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh open common +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh view common + +[mod] +Regex=\\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh open mod + +[wav22] +Shell=.waw22 +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh open wav22 + +[mp3] +Shell=.mp3 +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh open mp3 +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh view mp3 + +[ogg] +Regex=\\.og[gax]$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh open ogg +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh view ogg + +[opus] +Shell=.opus +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh open opus +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh view opus + +[midi] +Regex=\\.(midi?|rmid?)$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh open midi + +[wma] +Shell=.wma +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh open wma +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh view wma + +# Play list +[playlist] +Regex=\\.(m3u|pls)$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/sound.sh open playlist + + +### Video ### + +[avi] +Shell=.avi +ShellIgnoreCase=true +Include=video + +[asf] +Regex=\\.as[fx]$ +RegexIgnoreCase=true +Include=video + +[divx] +Shell=.divx +ShellIgnoreCase=true +Include=video + +[mkv] +Shell=.mkv +ShellIgnoreCase=true +Include=video + +[mov] +Regex=\\.(mov|qt)$ +RegexIgnoreCase=true +Include=video + +[mp4] +Regex=\\.(mp4|m4v|mpe?g)$ +RegexIgnoreCase=true +Include=video + +# MPEG-2 TS container + H.264 codec +[mts] +Shell=.mts +ShellIgnoreCase=true +Include=video + +[ts] +Shell=.ts +ShellIgnoreCase=true +Include=video + +[bob] +Shell=.vob +ShellIgnoreCase=true +Include=video + +[wmv] +Shell=.wmv +ShellIgnoreCase=true +Include=video + +[fli] +Regex=\\.fl[icv]$ +RegexIgnoreCase=true +Include=video + +[ogv] +Shell=.ogv +ShellIgnoreCase=true +Include=video + +[realaudio] +Regex=\\.ra?m$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/video.sh open ram + +[webm-by-shell] +Shell=.webm +ShellIgnoreCase=true +Include=video + + +### Documents ### + +[html] +Regex=\\.s?html?$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/web.sh open html +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/web.sh view html + +[StarOffice-5.2] +Shell=.sdw +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open ooffice + +# StarOffice 6 and OpenOffice.org formats +[OpenOffice.org] +Regex=\\.(odt|fodt|ott|sxw|stw|ods|fods|ots|sxc|stc|odp|fodp|otp|sxi|sti|odg|fodg|otg|sxd|std|odb|odf|sxm|odm|sxg)$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open ooffice +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view odt + +[AbiWord] +Shell=.abw +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open abw + +[Gnumeric] +Shell=.gnumeric +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open gnumeric + +[rtf] +Shell=.rtf +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open msdoc + +# Microsoft Word Document +[msdoc-by-shell] +Regex=\\.(do[ct]|wri|docx)$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open msdoc +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view msdoc + +# Microsoft Excel Worksheet +[msxls-by-shell] +Regex=\\.(xl[sw]|xlsx)$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open msxls +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view msxls + +# Microsoft PowerPoint Presentation +[msppt] +Regex=\\.(pp[ts]|pptx)$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open msppt +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view msppt + +[dvi] +Shell=.dvi +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open dvi +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view dvi + +[tex] +Shell=.tex +ShellIgnoreCase=true +Include=editor + +[markdown] +Regex=\\.mk?d$ +RegexIgnoreCase=true +Include=editor + +[djvu] +Regex=\\.djvu?$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open djvu +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view djvu + +# Comic Books +[cbr] +Regex=\\.cb[zr]$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open comic + +# Epup, mobi, fb2 +[ebook] +Regex=\\.(epub|mobi|fb2)$ +RegexIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open ebook +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view ebook + + +### Miscellaneous ### + +# Compiled Java classes +[javaclass] +Shell=.class +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view javaclass + +[Imakefile] +Shell=Imakefile +Open=xmkmf -a + +# Makefile.PL (MakeMaker) +[Makefile.pl] +Regex=^Makefile\\.(PL|pl)$ +Open=%var{PERL:perl} %f + +[Makefile] +Regex=^[Mm]akefile$ +Open=make -f %f %{Enter parameters} + +[dbf] +Shell=.dbf +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh open dbf +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view dbf + +# REXX script +[rexx] +Regex=\\.(rexx?|cmd)$ +Open=rexx %f %{Enter parameters};echo "Press ENTER";read y + +# Disk images for Commodore computers (VIC20, C64, C128) +[d64] +Shell=.d64 +ShellIgnoreCase=true +Open=%cd %p/uc1541:// +View=%view{ascii} c1541 %f -list + +# Glade, a user interface designer for GTK+ and GNOME +[glade] +Shell=.glade +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh open glade + +# Gettext Catalogs +[mo] +Regex=\\.g?mo$ +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view mo + +[po] +Shell=.po +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh open po + +[lyx] +Shell=.lyx +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh open lyx +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view lyx + +[torrent] +Shell=.torrent +ShellIgnoreCase=true +Open=%cd %p/torrent:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view torrent + + +### Plain compressed files ### + +[ace] +Shell=.ace +ShellIgnoreCase=true +Open=%cd %p/uace:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view ace + +[arc] +Shell=.arc +ShellIgnoreCase=true +Open=%cd %p/uarc:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view arc + +[zip-by-shell] +Shell=.zip +ShellIgnoreCase=true +Open=%cd %p/uzip:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view zip + +[zoo] +Shell=.zoo +ShellIgnoreCase=true +Open=%cd %p/uzoo:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view zoo + +[lz4] +Shell=.lz4 +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view lz4 %var{PAGER:more} +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view lz4 + +[lzo] +Shell=.lzo +ShellIgnoreCase=true +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view lzo %var{PAGER:more} +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view lzo + +[wim] +Shell=.wim +ShellIgnoreCase=true +Open=%cd %p/uwim:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view wim + + +######### Files by Type ######### + +### Archives ### + +[mailbox] +Type=^ASCII mail text +Open=%cd %p/mailfs:// + +[ipk-deb] +Shell=.ipk +Type=^Debian binary package +Open=%cd %p/deb:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/package.sh view deb + +[ipk-openwrt] +Shell=.ipk +Type=\\(gzip compressed +Include=tar.gz + + +### Sources ### + +# Object +[elf] +Type=^ELF +#Open=%var{PAGER:more} %f +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view elf + +[Mach-O] +Type=^Mach-O +#Open=%var{PAGER:more} %f +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view dylib + +### Documentation ### + +# GNU Info page +[info-by-type] +Type=^Info text +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open info + +# Manual page - compressed +[troff.gz] +Type=troff.*gzip compressed +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open man.gz %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view man.gz %var{PAGER:more} + +[troff.bzip] +Type=troff.*bzip compressed +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open man.bz %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view man.bz %var{PAGER:more} + +[troff.bzip2] +Type=troff.*bzip2 compressed +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open man.bz2 %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view man.bz2 %var{PAGER:more} + +# Manual page +[man] +Type=troff or preprocessor input +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh open man %var{PAGER:more} +View=%view{ascii,nroff} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/text.sh view man %var{PAGER:more} + + +### Images ### + +[gif] +Type=^GIF +Include=image + +[jpeg] +Type=^JPEG +Include=image + +[bitmap] +Type=^PC bitmap +Include=image + +[png] +Type=^PNG +Include=image + +[jng] +Type=^JNG +Include=image + +[mng] +Type=^MNG +Include=image + +[tiff] +Type=^TIFF +Include=image + +[rbm] +Type=^PBM +Include=image + +[pgm] +Type=^PGM +Include=image + +[ppm] +Type=^PPM +Include=image + +[netpbm] +Type=^Netpbm +Include=image + + +### Video ### + +[webm-by-type] +Type=WebM +Include=video + + +### Documents ### + +[postscript] +Type=^PostScript +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open ps +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view ps + +[pdf] +Type=^PDF +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open pdf +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view pdf + +# Microsoft Word Document +[msdoc-by-type] +Type=^Microsoft Word +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open msdoc +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view msdoc + +# Microsoft Excel Worksheet +[msxls-by-type] +Type=^Microsoft Excel +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open msxls +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh view msxls + +# Use OpenOffice.org/LibreOffice to open any MS Office documents +[mso-doc-1] +Type=^Microsoft Office Document +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open ooffice + +[mso-doc-2] +Type=^Microsoft OOXML +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open ooffice + +[framemaker] +Type=^FrameMaker +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/doc.sh open framemaker + + +### Miscellaneous ### + +[sqlite3.db] +Type=^SQLite 3.x database +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh open sqlite +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/misc.sh view sqlite + + +### Plain compressed files ### + +[gzip] +Type=\\(gzip compressed +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view gz %var{PAGER:more} +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view gz + +[bzip] +Type=\\(bzip compressed +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view bzip %var{PAGER:more} +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view bzip + +[bzip2] +Type=\\(bzip2 compressed +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view bzip2 %var{PAGER:more} +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view bz2 + +[compress] +Type=\\(compress'd +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view gz %var{PAGER:more} +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view gz + +[lz] +Type=\\(lzip compressed +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view lz %var{PAGER:more} +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view lz + +[lzma] +Type=\\(LZMA compressed +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view lzma %var{PAGER:more} +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view lzma + +[xz] +Type=\\(XZ compressed +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view xz %var{PAGER:more} +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view xz + +[zstd] +Type=\\(Zstandard compressed +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view zst %var{PAGER:more} +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view zst + +[zip-by-type] +Type=\\(Zip archive +Open=%cd %p/uzip:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view zip + +[jar] +Type=\\(Java (Jar file|archive) data \\((zip|JAR)\\)\\) +TypeIgnoreCase=true +Open=%cd %p/uzip:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view zip + +[lha] +Type=^LHa .*archive +Open=%cd %p/ulha:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view lha + +[pak] +Type=^PAK .*archive +Open=%cd %p/unar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view pak + +# Parity Archive +[par2] +Type=^Parity Archive Volume Set +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh open par2 + + +######### Includes ######### +# Includes should be at end of the bindings + +[Include/tar.gz] +Open=%cd %p/utar:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view tar.gz + +[Include/cpio] +Open=%cd %p/ucpio:// +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/archive.sh view cpio + +[Include/editor] +; Open=%var{EDITOR:vi} %f +Open=%var{EDITOR:nvim} %f + +[Include/image] +Open=(open %s) +View=(open %s) + +[Include/video] +Open=/opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/video.sh open ALL_FORMATS +View=%view{ascii} /opt/homebrew/Cellar/midnight-commander/4.8.33/libexec/mc/ext.d/video.sh view ALL_FORMATS + + +######### Default ######### + +# Default target for anything not described above +[Default] +Open=(open %s) +View= + +### EOF ### diff --git a/menu b/menu new file mode 100644 index 0000000..9276ba2 --- /dev/null +++ b/menu @@ -0,0 +1,379 @@ +shell_patterns=0 + +############################################################################## +# %% The % character +# %f The current file (if non-local vfs, file will be copied locally and +# %f will be full path to it) +# %p The current file +# %d The current working directory +# %s "Selected files"; the tagged files if any, otherwise the current file +# %t Tagged files +# %u Tagged files (and they are untagged on return from expand_format) +# %view Runs the commands and pipes standard output to the view command +# If %view is immediately followed by '{', recognize keywords +# ascii, hex, nroff and unform +# +# If the format letter is in uppercase, it refers to the other panel +# +# With a number followed the % character you can turn quoting on (default) +# and off. For example: +# %f quote expanded macro +# %1f ditto +# %0f don't quote expanded macro +############################################################################## + ++ ! t t +@ Do something on the current file + CMD=%{Enter command} + $CMD %f + ++ t t +@ Do something on the tagged files + CMD=%{Enter command} + for i in %t ; do + $CMD "$i" + done + +0 Edit a bug report and send it to root + I=`mktemp "${MC_TMPDIR:-/tmp}/mail.XXXXXX"` || exit 1 + ${EDITOR-vi} "$I" + test -r "$I" && mail root < "$I" + rm -f "$I" + +=+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r +1 Display the file with roff -man + %view{ascii,nroff} roff -man %f + +2 Call the info hypertext browser + info + += t d +3 Compress the current subdirectory (tar.gz) + Pwd=`basename %d /` + echo -n "Name of the compressed file (without extension) [$Pwd]: " + read tar + [ "$tar"x = x ] && tar="$Pwd" + cd .. && \ + tar cf - "$Pwd" | gzip -f9 > "$tar.tar.gz" && \ + echo "../$tar.tar.gz created." + +4 Compress the current subdirectory (tar.bz2) + Pwd=`basename %d /` + echo -n "Name of the compressed file (without extension) [$Pwd]: " + read tar + [ "$tar"x = x ] && tar="$Pwd" + cd .. && \ + tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \ + echo "../$tar.tar.bz2 created." + +5 Compress the current subdirectory (tar.7z) + Pwd=`basename %d /` + echo -n "Name of the compressed file (without extension) [$Pwd]: " + read tar + [ "$tar"x = x ] && tar="$Pwd" + cd .. && \ + tar cf - "$Pwd" | 7za a -si "$tar.tar.7z" && \ + echo "../$tar.tar.7z created." + +6 Compress the current subdirectory (tar.xz) + Pwd=`basename %d /` + echo -n "Name of the compressed file (without extension) [$Pwd]: " + read tar + [ "$tar"x = x ] && tar="$Pwd" + cd .. && \ + tar cf - "$Pwd" | xz -f > "$tar.tar.xz" && \ + echo "../$tar.tar.xz created." + +7 Compress the current subdirectory (tar.zst) + Pwd=`basename %d /` + echo -n "Name of the compressed file (without extension) [$Pwd]: " + read tar + [ "$tar"x = x ] && tar="$Pwd" + cd .. && \ + tar cf - "$Pwd" | zstd -f > "$tar.tar.zst" && \ + echo "../$tar.tar.zst created." + +8 Compress the current subdirectory (tar.lzo) + Pwd=`basename %d /` + echo -n "Name of the compressed file (without extension) [$Pwd]: " + read tar + [ "$tar"x = x ] && tar="$Pwd" + cd .. && \ + tar cf - "$Pwd" | lzop -f > "$tar.tar.lzo" && \ + echo "../$tar.tar.lzo created." + += f \.c$ & t r ++ f \.c$ & t r & ! t t +c Compile and link current .c file + make "`basename %f .c`" 2>/dev/null || cc -O -o "`basename %f .c`" %f + ++ t r & ! t t +a Append file to opposite + cat %f >> %D/%f + ++ t t +A Append files to opposite files + for i in %t ; do + cat "$i" >> %D/"$i" + done + ++ t r & ! t t +d Delete file if a copy exists in the other directory. + if [ %d = %D ]; then + echo "The two directories must be different." + exit 1 + fi + if [ -f %D/%f ]; then # if two of them, then + if cmp -s %D/%f %f; then + rm %f && echo %f": DELETED." + else + echo %f" and "%D/%f" differ: NOT deleted." + echo -n "Press RETURN " + read key + fi + else + echo %f": No copy in "%D/%f": NOT deleted." + fi + ++ t t +D Delete tagged files if a copy exists in the other directory. + if [ %d = %D ]; then + echo "The two directories must be different." + exit 1 + fi + for i in %t ; do + if [ -f %D/"$i" ]; then + SUM1=`sum "$i"` + SUM2=`sum %D/"$i"` + if [ "$SUM1" = "$SUM2" ]; then + rm "$i" && echo "${i}: DELETED." + else + echo "$i and "%D"/$i differ: NOT deleted." + fi + else + echo "$i has no copy in "%D": NOT deleted." + fi + done + +m View manual page + MAN=%{Enter manual name} + %view{ascii,nroff} MANROFFOPT='' MAN_KEEP_FORMATTING=1 man -P cat "$MAN" + += f \.gz$ & t r ++ ! t t +n Inspect gzip'ed newsbatch file + dd if=%f bs=1 skip=12 | zcat | ${PAGER-more} + # assuming the cunbatch header is 12 bytes long. + += t r & ++ ! t t +h Strip headers from current newsarticle + CHECK=`awk '{print $1 ; exit}' %f` 2>/dev/null + case "$CHECK" in + Newsgroups:|Path:) + I=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1 + cp %f "$I" && sed '/^'"$CHECK"' /,/^$/d' "$I" > %f + [ "$?" = "0" ] && rm "$I" + echo %f": header removed." + ;; + *) + echo %f" is not a news article." + ;; + esac + ++ t t +H Strip headers from the marked newsarticles + for i in %t ; do + CHECK=`awk '{print $1 ; exit}' "$i"` 2>/dev/null + WFILE=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1 + case "$CHECK" in + Newsgroups:|Path:) + cp "$i" "$WFILE" && sed '/^'"$CHECK"' /,/^$/d' "$WFILE" > "$i" + if [ "$?" = "0" ]; then + rm "$WFILE"; echo "$i header removed. OK." + else + echo "Oops! Please check $i against $WFILE." + fi + ;; + *) + echo "$i skipped: Not a news article." + ;; + esac + done + += t r ++ ! t t +r Copy file to remote host + echo -n "To which host?: " + read Host + echo -n "To which directory on $Host?: " + read Dir + rcp -p %f "${Host}:${Dir}" + ++ t t +R Copy files to remote host (no error checking) + echo -n "Copy files to which host?: " + read Host + echo -n "To which directory on $Host? :" + read Dir + rcp -pr %u "${Host}:${Dir}" + += f \.tex$ & t r ++ f \.tex$ & t r & ! t t +t Run latex on file and show it with xdvi + latex %f && xdvi "`basename %f .tex`".dvi + +=+ f ^part | f ^Part | f uue & t r ++ t t +U Uudecode marked news articles (needs work) + ( + for i in %t ; do # strip headers + FIRST=`awk '{print $1 ; exit}' "$i"` + cat "$i" | sed '/^'"$FIRST"' /,/^$/d' + done + ) | sed '/^$/d' | sed -n '/^begin 6/,/^end$/p' | uudecode + if [ "$?" != "0" ]; then + echo "Cannot decode "%t"." + fi + echo "Please test the output file before deleting anything." + +=+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.lz$ | f \.tar\.lz4$ | f \.tar\.lzma$ | f \.tar\.lzo$ | f \.tar\.7z$ | f \.tar\.xz$ | f \.tar\.zst | f \.tar\.Z$ | f \.tar\.bz2$ & t rl +x Extract the contents of a compressed tar file + unset PRG + case %f in + *.tar.7z) PRG="7za e -so";; + *.tar.bz2) PRG="bunzip2 -c";; + *.tar.gz|*.tar.z|*.tgz|*.tpz|*.tar.Z) PRG="gzip -dc";; + *.tar.lz) PRG="lzip -dc";; + *.tar.lz4) PRG="lz4 -dc";; + *.tar.lzma) PRG="lzma -dc";; + *.tar.lzo) PRG="lzop -dc";; + *.tar.xz) PRG="xz -dc";; + *.tar.zst) PRG="zstd -dc";; + *) exit 1;; + esac + $PRG %f | tar xvf - + += t r ++ ! t t +y Gzip or gunzip current file + unset DECOMP + case %f in + *.gz|*.[zZ]) DECOMP=-d;; + esac + # Do *not* add quotes around $DECOMP! + gzip $DECOMP -v %f + ++ t t +Y Gzip or gunzip tagged files + for i in %t ; do + unset DECOMP + case "$i" in + *.gz|*.[zZ]) DECOMP=-d;; + esac + gzip $DECOMP -v "$i" + done + ++ ! t t +b Bzip2 or bunzip2 current file + unset DECOMP + case %f in + *.bz2) DECOMP=-d;; + esac + bzip2 $DECOMP -v %f + ++ t t +B Bzip2 or bunzip2 tagged files + for i in %t ; do + unset DECOMP + case "$i" in + *.bz2) DECOMP=-d;; + esac + bzip2 $DECOMP -v "$i" + done + ++ f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t +z Extract compressed tar file to subdirectory + unset D + set gzip -cd + case %f in + *.tar.F) D=`basename %f .tar.F`; set freeze -dc;; + *.tar.Z) D=`basename %f .tar.Z`;; + *.tar.bz2) D=`basename %f .tar.bz2`; set bunzip2 -c;; + *.tar.gz) D=`basename %f .tar.gz`;; + *.tar.z) D=`basename %f .tar.z`;; + *.tgz) D=`basename %f .tgz`;; + *.tpz) D=`basename %f .tpz`;; + esac + mkdir "$D"; cd "$D" && ("$1" "$2" ../%f | tar xvf -) + ++ t t +Z Extract compressed tar files to subdirectories + for i in %t ; do + set gzip -dc + unset D + case "$i" in + *.tar.F) D=`basename "$i" .tar.F`; set freeze -dc;; + *.tar.Z) D=`basename "$i" .tar.Z`;; + *.tar.bz2) D=`basename "$i" .tar.bz2`; set bunzip2 -c;; + *.tar.gz) D=`basename "$i" .tar.gz`;; + *.tar.z) D=`basename "$i" .tar.z`;; + *.tgz) D=`basename "$i" .tgz`;; + *.tpz) D=`basename "$i" .tpz`;; + esac + mkdir "$D"; (cd "$D" && "$1" "$2" "../$i" | tar xvf -) + done + ++ f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t +c Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 + unset D + unset EXT + case %f in + *.Z) EXT=Z;; + *.bz2) EXT=bz2;; + *.gz) EXT=gz;; + *.tgz) EXT=tgz;; + *.tpz) EXT=tpz;; + *.z) EXT=z;; + esac + case "$EXT" in + bz2|Z|gz|z) D=`basename %f ."$EXT"`;; + tgz|tpz) D=`basename %f ."$EXT"`.tar;; + esac + if [ "$EXT" = "bz2" ]; then + bunzip2 -v %f + gzip -f9 -v "$D" + else + gunzip -v %f + bzip2 -v "$D" + fi + ++ t t +C Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 + for i in %t ; do + unset D + unset EXT + case "$i" in + *.Z) EXT=Z;; + *.bz2) EXT=bz2;; + *.gz) EXT=gz;; + *.tgz) EXT=tgz;; + *.tpz) EXT=tpz;; + *.z) EXT=z;; + esac + case "$EXT" in + bz2|Z|gz|z) D=`basename "$i" ."$EXT"`;; + tgz|tpz) D=`basename "$i" ."$EXT"`.tar;; + esac + if [ "$EXT" = "bz2" ]; then + bunzip2 -v "$i" + gzip -f9 -v "$D" + else + gunzip -v "$i" + bzip2 -v "$D" + fi + done + ++ x /usr/bin/open | x /usr/local/bin/open & x /bin/sh +o Open next a free console + open -s -- sh diff --git a/panels.ini b/panels.ini new file mode 100644 index 0000000..e2df33c --- /dev/null +++ b/panels.ini @@ -0,0 +1,27 @@ +[New Left Panel] +display=listing +reverse=false +case_sensitive=true +exec_first=false +sort_order=name +list_mode=full +brief_cols=2 +user_mini_status=false +filter_flags=7 +list_format=full + +[New Right Panel] +display=listing +reverse=false +case_sensitive=true +exec_first=false +sort_order=name +list_mode=full +brief_cols=2 +user_mini_status=false +filter_flags=7 +list_format=full + +[Dirs] +current_is_left=true +other_dir=/Users/mzpx/.config