rules in mc.ext

2022-09-15 Thread Fourhundred Thecat via mc
Hello, can I change the default internal viewer to something else (less)? I think I could change each line individually: View=%view{ascii} mediainfo %f to View=mediainfo %f | less but I would rather change this once, globally. Also, I am confused how the include directive works in

shortcut for "Sort by Modify Time"

2022-06-07 Thread Fourhundred Thecat via mc
Hello, I normally use "Sort by Name" in mc panels, but frequently need to switch to "Sort by Modify Time" from the menu selection. But this is quite tedious: F9 -> Sort Order -> Modify Time Is there any shortcut for this? If not, can I define my own shortcut? perhaps Alt+m ? That does not

Re: make "filter" case insensitive

2022-02-24 Thread Fourhundred Thecat via mc
> On 2022-02-23 17:59, Frank Dietrich via mc wrote: Hi, the filter uses shell globbing pattern. For example *.[Pp][Dd][Ff] would filter files *.PDF, *.pdf (and all other permutations of the characters). thank you, but that is extremly laborious. If there is no configuration option to make

make "filter" case insensitive

2022-02-23 Thread Fourhundred Thecat via mc
Hello, is there any way to make "filter" case insensitive? If there is no configuration option for this, how difficult would it be to change this in the source code? (I am using mc version: 3:4.8.22-1 on Debian 10 thank you ___ mc mailing list

filter files based on wildcard pattern

2022-02-21 Thread Fourhundred Thecat via mc
Hello, does midnight commander have a shortcut, to "filter" files in current directory based on a wildcard? I mean, for example, if I have many files in current dir, I would like to filter the view to only see files matching "*.pdf" I know there exists the "+" shortcut to select files based on

detect if shell is running standalone or from mc

2021-07-03 Thread Fourhundred Thecat via mc
Hello, how can I determine in a shell, whether the shell is running standalone or in mc? I am using zsh, and I have few aliases defined. I would like to change behavior of the alias, depending whether I am in mc or not. How can I detect it in the shell, that I am currently in mc? thanks,

filter files

2019-08-02 Thread Fourhundred Thecat
Hello, can I use "filter" to limit the files that I see in my current panel ? For instance, only show files modified in the last n minutes/hours in the current directory ? thanks, ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc

does mc support sftp ?

2018-11-15 Thread Fourhundred Thecat
Hello, I need to connect to server where I don't have shell access (no ssh) the server only allows sftp. I can connect with winscp, for instance. does mc support sftp as well ? thanks, ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc

display thousands separator in file size

2016-09-26 Thread Fourhundred Thecat
Hello, is there a simple way how I could modify the code, so that file size displayed in mc has thousands separator? I am using thousands separator with ls, and it hugely increases readability: BLOCK_SIZE="'1" ls -lAF i.e. it takes couple of seconds to see the magnitude of a number like

Re: change "timeformat_old" from 6 months to 1 year

2016-09-20 Thread Fourhundred Thecat
> On 2016-09-19 05:11, Mooffie wrote: > > On 9/19/16, Mooffie wrote: >> >> One possibility is to modify MC's source code: >> >> https://source.midnight-commander.org/S/lib--timefmt.c.html#L133 >> >> Change the "6L" (six months) to "12L". > > Or you can edit the MC binary

change "timeformat_old" from 6 months to 1 year

2016-09-18 Thread Fourhundred Thecat
Hello, I am using different date formats for "timeformat_recent" and "timeformat_old": [Misc] timeformat_recent=%b %e %H:%M timeformat_old=%Y %b %e %H:%M which gives me nice, clean dates, where new files are immediately distinguished from older ones: Sep 3 15:13 2016 Mar 10

Re: view .gnumeric files in mc (in console)

2016-08-31 Thread Fourhundred Thecat
> On 2016-08-31 10:51, Slava Zanko wrote: > > Hi Fourhundred, > > Try to use this: > > View=%view{ascii} ssconvert %f || xls2csv %f || strings %f > that obviously cannot work when run on the commandline, ssconvert needs output file, and possibly also --export-type. The following command works

view .gnumeric files in mc (in console)

2016-08-31 Thread Fourhundred Thecat
Hello, has anybody figured out, how to view gnumeric files in mc (in console/text mode)? I am aware that this can be configured in /etc/mc/mc.ext, and I see there is already section for excel files: type/^Microsoft\ Excel Edit=true Open=(gnumeric %f >/dev/null 2>&1 &)