Re: In my mc.keymap I would like to change Find = alt-f

2022-10-16 Thread Andrew Borodin
On Sat, 15 Oct 2022 22:00:13 + (UTC) Bob Currey via mc  wrote:
> I would like to remap the find file to work on alt-f, alt-slash, or 
> ctrl-slash.
> I tried those in my ~/.config/mc.keymap file, but none of them work.  I do 
> think
> the change to alt-f did work a few years ago.
> QuitQuiet = f20
> Find = alt-f
> CdQuick = alt-c
> 
> I see on the screen it still says it is mapped to M-?, but not sure if that
> should show the current mapping or just the default. 
> 
> Any suggestions?

Check the section name in your ~/.config/mc/mc.keymap. It must be [filemanager]
not [main].

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Undeletable macro

2022-10-04 Thread Andrew Borodin
On Tue, 4 Oct 2022 16:38:00 +0300 Sergei Antonov via mc  wrote:
> How do I clear this macro? Removing ~/.config/mc does not help.

Macros are  stored in ~/.local/share/mc/mc.macros.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Quick view

2022-10-02 Thread Andrew Borodin
On Sun, 02 Oct 2022 10:14:23 +0200 "Riccardo Paolo Bestetti"  
wrote:
> One feature I like about MC is "quick view" (C-x q), or the ability to
> use one of the panes to quickly preview files. However, I have noticed
> that it doesn't work as well as the file viewer (F3). Some examples:
> 
> - When quick view is open, hovering on some types of files (especially
>   zip files and derivatives such as epub, docx, jar) results in a big
>   red popup that needs a keypress to be dismissed, and then their
>   content is not displayed

There is a bug in zip-files detection. I hope, it's fixed[1]. It'll be
in the master branch at next weekend.

> - Some of the files that ca be successfully rendered in the viewer (e.g.
>   HTML, images*, PDF) show up as plain text/binary dumped as ASCII
>   instead in quick view

It's a feature[2]. Quick view shows file in the raw mode to avoid any delays
required to get some info of the file.

> - Directories show the string "Cannot view: not a regular file" but it
>   might be a good feature to show the contents, or maybe a short
>   description of it ("X images, Y documents")

Again, to calculate directory statistics, or get some info of file, we need
some time. Any delay can annoy users.

[1] https://midnight-commander.org/ticket/4404
[2] https://midnight-commander.org/ticket/4117

-- 
Andrew

___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: shortcut for "Sort by Modify Time"

2022-06-07 Thread Andrew Borodin
On Tue, 7 Jun 2022 08:56:06 +0200 Fourhundred Thecat via mc  
wrote:
> 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 seem to be used for anything.

Yes, you can.
Create a file ~/.config/mc/mc.keymap with following content:

[panel]
SortByName = alt-n
SortByMTime = alt-m


-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: MC 4.8.28 main menu hotkeys

2022-04-06 Thread Andrew Borodin
On Wed, 6 Apr 2022 19:31:55 +0100 Paul Marwick via mc  wrote:
> My specific problem is the change in the left or right menu, where "S" was 
> the key
> for sort order.

There was a hotkey conflict between "SFTP link" and "Filter": "F" was used in 
both items[1].

Change of hotkey for "Filter" was impossible, because all letters "ilter" are 
used
in this menu. From the other hand, almost all letters "stplink" are used too.
Only "k" is free. "o" in "Sort order" was free too.

> Is it possible to change the hotkey for those menu entries? I've had a look at
> the configuration files and can't see an option, but I don't really want to 
> modify
> the source to revert to the older behaviour

Hotkeys are defined in the source code and cannot be changed via any 
configuration
options.

> (and find another hotkey for the SFTP option).

Only "k" can be used for that.

[1] https://midnight-commander.org/ticket/4284

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Help testing release candidate / mc-4.8.28-rc1

2022-03-21 Thread Andrew Borodin
On Sun, 20 Mar 2022 19:12:13 +0100 Oswald Buddenhagen via mc-devel 
 wrote:
> On Sun, Mar 20, 2022 at 06:59:32PM +0300, Andrew Borodin wrote:
> >On Sun, 20 Mar 2022 15:22:14 +0100 Oswald Buddenhagen via mc-devel 
> >
> > wrote:
> >> `mc -P $file` doesn't work any more when the file already exists 
> >> (which is of course the case after file=`mktemp`).
> >
> >Indeed.
> >
> >A following patch is proposed:
> >
> >diff --git a/src/main.c b/src/main.c
> >index 3a33dfb59..a4910349a 100644
> >--- a/src/main.c
> >+++ b/src/main.c
> >@@ -492,6 +492,10 @@ main (int argc, char *argv[])
> > 
> > last_wd_fd = open (mc_args__last_wd_file, O_WRONLY | O_CREAT | 
> > O_TRUNC | O_EXCL,
> >S_IRUSR | S_IWUSR);
> >+
> >+if (last_wd_fd == -1 && errno == EEXIST)
> >+last_wd_fd = open (mc_args__last_wd_file, O_WRONLY | O_TRUNC, 
> >S_IRUSR | S_IWUSR);
> >+
> > if (last_wd_fd != -1)
> > {
> > ssize_t ret1;
> >
> that seems overly complicated - why not just drop the O_EXCL? at least i 
> can't see an obvious
> reason for having it in the first place.

Ok.

> anyway, i wonder why i ran into this only recently, given that this behavior 
> is actually
> rather ancient. probably has something to do with me porting the wrapper 
> function from
> tempfile to mktemp (as debian started to complain about deprecation), though 
> the replacement
> itself couldn't have caused it.

mc-wrapper.sh doesn't create a file. It creates a file name only. then mc 
creates a file with
given file name, and everything works fine.

Wrapper patched to use mktemp creates a file, and mc tries to open an existing 
file and fails.
A workaround is to apply `mktemp -u` or even `mktemp -u -t`, but is it portable?

-- 
A.


___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Help testing release candidate / mc-4.8.28-rc1

2022-03-20 Thread Andrew Borodin
On Sun, 20 Mar 2022 15:22:14 +0100 Oswald Buddenhagen via mc-devel 

 wrote:
> On Sun, Mar 20, 2022 at 01:15:41PM +0100, Yury V. Zaytsev wrote:
> >TLDR; I would appreciate if you could please test the following tarball on 
> >your systems
> and report any blocker regressions as compared to the previous 4.8.27 release:
> >
> i tested master instead:
> 
> find.c: In function ‘find_cmd’:
> find.c:1837:28: warning: ‘start_dir_len’ may be used uninitialized in this 
> function [-Wmaybe-uninitialized]
>   1837 | p = name + (size_t) start_dir_len;
>|^~
> find.c:1897:13: note: ‘start_dir_len’ was declared here
>   1897 | ssize_t start_dir_len;
>| ^

This isn't critical. start_dir_len is an output of find_parameters().

> coord_cache.c: In function ‘mcview_ccache_add_entry’:
> coord_cache.c:97:5: warning: ‘g_memdup’ is deprecated: Use 'g_memdup2' 
> instead [-Wdeprecated-declarations]
> 97 | cache->cache[pos] = g_memdup (entry, sizeof (*entry));
>| ^
> In file included from /usr/include/glib-2.0/glib.h:82,
>   from ../../lib/global.h:66,
>   from coord_cache.c:57:
> /usr/include/glib-2.0/glib/gstrfuncs.h:257:23: note: declared here
>257 | gpointer  g_memdup (gconstpointer mem,
>|   ^~~~

This is not critical too.
https://midnight-commander.org/ticket/4270#comment:12

> `mc -P $file` doesn't work any more when the file already exists (which is of 
> course the case after file=`mktemp`).

Indeed.
file is opened with O_CREAT | O_EXCL flags. In this case, as written in open(2),

O_EXCL Ensure  that  this call creates the file: if this flag is specified in 
conjunction
   with O_CREAT, and pathname already exists, then open() fails with the 
error EEXIST.

A following patch is proposed:

diff --git a/src/main.c b/src/main.c
index 3a33dfb59..a4910349a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -492,6 +492,10 @@ main (int argc, char *argv[])
 
 last_wd_fd = open (mc_args__last_wd_file, O_WRONLY | O_CREAT | O_TRUNC 
| O_EXCL,
S_IRUSR | S_IWUSR);
+
+if (last_wd_fd == -1 && errno == EEXIST)
+last_wd_fd = open (mc_args__last_wd_file, O_WRONLY | O_TRUNC, 
S_IRUSR | S_IWUSR);
+
 if (last_wd_fd != -1)
 {
 ssize_t ret1;

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: make "filter" case insensitive

2022-02-24 Thread Andrew Borodin
On Thu, 24 Feb 2022 09:59:07 +0100 Fourhundred Thecat via mc  
wrote:
> If there is no configuration option to make the matching
> case-nonsensitive, would it be possible to change this in the source
> code easily?

Unfortunately, no.

Feel free to create a ticket: https://midnight-commander.org/wiki/NewTicket
Registration is required.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: keymap problem with 4.8.27

2021-11-11 Thread Andrew Borodin
On Wed, 10 Nov 2021 19:24:03 +0100 Henning wrote:
> Instead I Use f1 to invoke the hotlist becaus ctrl-\ not usable with german 
> keyboard layout.
> Also, I invoked search with ctrl-f because alt-? is not usable here.
> But it doesn't work any more.
> 
> I replaced every keymap file (in /etc/mc, /root/.config/mc and /usr/share/mc) 
> with a link
> to my keymap and also copied default.keymaps
> out of the way, but to no avail.
> 
> So, currently I am changing keymap.c to use my keys. Of course this shouldn't 
> be necessary.

Yes, it isn't necessary.

Before bind a key to another action you should unbind it.
f1 key is bound to for Help action.
ctrl-f is bound to Right action in the command line, which is input line.

Please create ~/.config/mc/mc.keymap with following content:

[filemanager]
# unbind a key (was: Help = f1)
Help =
# bind f1 to the new action
HotList = f1
# bind ctrl-f to the new action
Find = ctrl-f

[input]
# unbind ctrl-f (was: Right = right; alt-right; ctrl-f)
Right = right; alt-right

Unfortunately, after that ctrl-f will not work in all input lines.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Any missed features?

2021-02-16 Thread Andrew Borodin
On Tue, 16 Feb 2021 13:23:44 -0500 Felix Miata wrote:
> http://www.midnight-commander.org/ticket/1952
> 
> Highly frustrating, cannot use it for Mozilla.org's Firefox downloads. :(

I'm working on it.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Any missed features?

2021-02-15 Thread Andrew Borodin
On Mon, 15 Feb 2021 17:30:59 -0600 Sebastian Gniazdowski wrote:
> I'm going to have some free time in the upcoming few days, so I'm looking
> for an idea to work/code on, so I thought that I'll ask: are there any
> features missed in MC?

Everybody wants to implement features, even that features will not be used by 
99% users.
Nobody wants to fix bugs.

-- 
А.
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: entering zip archives since 4.8.22?

2021-02-10 Thread Andrew Borodin
On Wed, 10 Feb 2021 11:48:42 +0100 wwp wrote:
> is it just me or is it since mc 4.8.22 that entering a .zip archive
> opens it up in desktop's file browser?
> 
> Here: CentOS7 with Mate, if I [enter] a zip file in mc 4.8.22, it opens
> the desktop's defaut binding for zip files: engrampa.
> 
> My ~/.config/mc/mc.ext file contains:
> # zip
> shell/i/.zip
>   Open=%cd %p/uzip://
>   View=%view{ascii} /usr/local/libexec/mc/ext.d/archive.sh view zip
> 
> # zip
> type/i/^zip\ archive
>   Open=%cd %p/uzip://
>   View=%view{ascii} /usr/local/libexec/mc/ext.d/archive.sh view zip
> 
> The previous (and expected) behaviour was to browse the archive inside
> mc as a subfolder. I didn't notice a change of behaviour for other
> archive types.

Please try update your local mc.ext:
https://midnight-commander.org/ticket/4180
https://midnight-commander.org/ticket/4183

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Help testing release candidate / mc-4.8.26-rc1

2021-01-18 Thread Andrew Borodin
On Mon, 18 Jan 2021 08:35:24 +0300 Andrew Borodin wrote:
> On Mon, 18 Jan 2021 04:38:10 +0100 David Haller wrote:
> > 1. mcedit causes a SIGSEGV when jumping out via Ctrl-o, even if just
> >too _look_ at stuff, not doing anything on the (sub-)shell:
> 
> Confirmed.
> I'll fix this today.

Fixed: 
https://midnight-commander.org/changeset/a88a626e76139259e5b6fc0db39045f051e243dd

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Help testing release candidate / mc-4.8.26-rc1

2021-01-17 Thread Andrew Borodin
On Mon, 18 Jan 2021 04:38:10 +0100 David Haller wrote:
> Hello,

Hi!

Thanks for testing.

> On Sun, 10 Jan 2021, Yury V. Zaytsev wrote:
> >TLDR; I would appreciate if you could please test the following tarball on
> >your systems and report any blocker regressions as compared to the previous
> >4.8.25 release:
> 
> Two things:
> 
> 1. mcedit causes a SIGSEGV when jumping out via Ctrl-o, even if just
>too _look_ at stuff, not doing anything on the (sub-)shell:

Confirmed.
I'll fix this today.

> 2. I don't know if that's a current regression or if that already was
>the case in 4.8.25 and earlier: if compiled without slang, no mouse
>actions work anymore (has the curses code gone?)
> 
> I can do more debugging if you can't pinpoint the change...

This is known: https://midnight-commander.org/ticket/4144

> 3.: you should add the version to AC_INIT, so that PACKAGE_VERSION
> gets set correctly during configure. If not, generated docs have
> 'mc-' instead of 'mc-$VERSION' (e.g. mc-4.8.25) as version in e.g. 
> the pdf ;)

This is known too: https://midnight-commander.org/ticket/3603

> A possible patch might be:
> 
>  mc-4.8.26-fix_ac_version.patch 
> diff '-bpurNx*~' g/configure.ac h/configure.ac
> --- g/configure.ac  2021-01-10 12:50:16.0 +0100
> +++ h/configure.ac  2021-01-11 13:56:25.382961865 +0100
> @@ -3,7 +3,8 @@ dnl Configure.in file for the Midnight C
>  dnl
>  
>  AC_PREREQ(2.60)
> -AC_INIT([GNU Midnight Commander], [], [mc-devel@gnome.org])
> +m4_define(pkg_VERSION,[m4_esyscmd([sh ./ver.sh])])
> +AC_INIT([GNU Midnight Commander], [pkg_VERSION], [mc-devel@gnome.org])
>  m4_pattern_forbid(MC_)
>  AC_CONFIG_MACRO_DIR([m4])
>  AC_CONFIG_AUX_DIR(config)
> diff '-bpurNx*~' g/ver.sh h/ver.sh
> --- g/ver.sh1970-01-01 01:00:00.0 +0100
> +++ h/ver.sh2021-01-11 13:54:30.0 +0100
> @@ -0,0 +1,2 @@
> +#!/bin/sh
> +awk -F'"' '/MC_CURRENT_VERSION/{printf("%s",$2);}' version.h
> 
> 
> (not using the external script get's you into quoting hell ;)
> 
> I've seen that it's somewhat redundant, but possible the later setting
> of the version from version.h can be removed then, I've not looked
> into that yet.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Binding non-ASCII characters?

2020-12-04 Thread Andrew Borodin
On Fri, 04 Dec 2020 20:22:37 +0200 JD wrote:
> So, my question is, we just can't use non-ASCII here, right? :)

Right.

https://midnight-commander.org/ticket/2343

-- 
A.
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: extfs changes with mc 4.8.25 regarding '.' '..' in filenames list

2020-10-21 Thread Andrew Borodin
On Wed, 21 Oct 2020 15:05:10 +0200 dieter via mc-devel  
wrote:
> This "untar" module adds "./" at the beginning of the extracted
> filenames in order to handle filenames beginning with a blank.
> 
> Removing this "./" it works again, except for filenames which start
> with a blank - they are listed in the panel but can not be opened or
> extracted because tar can not find them in the archive without the
> missing blank.

Seems this bug and https://midnight-commander.org/ticket/4077 have the same 
root.

> I found that in some other extfs modules (for deb and urar) in mc 4.2.25
> also the "./" was removed

I'll try to get extfs working again with leading ./ in the file names.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: how to report security bugs?

2020-10-21 Thread Andrew Borodin
On Wed, 21 Oct 2020 15:48:44 +0200 Petr Špaček via mc-devel 
 wrote:
> what is the recommended way to report security bugs?

https://midnight-commander.org/wiki/NewTicket

Registration is required.

-- 
Andrew

___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Subprocess strangeness

2020-09-14 Thread Andrew Borodin
On Sun, 13 Sep 2020 17:45:08 -0400 Alan Corey via mc  wrote:
> I've been using mc for 20 years or more and only seen this in the last
> couple weeks.  I use rxvt as my terminal emulator mostly.  I could
> navigate to where I wanted another terminal in mc, then type rxvt &
> and a new independent window would open there.  I could close the
> original window and the new one stayed open.

I tested mc-4.8.25 with following terminal emulators:
mate-terminal-1.12.1
xterm-320
urxvt-9.20

All of them works as described above: child window is alive after parent
one closed.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Editor syntax highlighting for Arduino *.ino source code files

2020-07-12 Thread Andrew Borodin
On Sun, 12 Jul 2020 16:14:55 +0100 Keith Roberts wrote:
> I'm using the Arduino IDE and I think the language is a subset of C++.
> 
> Can I add a syntax file to MC to allow the editor to highlight C++ code in 
> the *.ino source file?

This is already done:
https://midnight-commander.org/changeset/1f4b5ae3962729b6fa5998a9ee02c5b9da88cfe0

It will be available out-of-box in the new release in a few days.

Feel free to submit a patch if this commit is incomplete.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Filter acting only on files, not on directories

2020-07-04 Thread Andrew Borodin
On Thu, 2 Jul 2020 15:46:19 +0200 Marco via mc  wrote:
> the filter (in Left/Right ? Filter) acts only on files, not on
> directories. Is there a way to include directories in the filter as
> well?

Unfortunately, no. Filter is applied to files only,

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: displays bad regular file timestamps on entry to .bz2 file & preserves the errors on copy out

2020-06-14 Thread Andrew Borodin
On Tue, 17 Mar 2020 20:50:49 -0400 Felix Miata wrote:
> It's only happened on this one so far that I can remember:
> 
> Others I've checked from mozilla.org are handled normally.
> 
> Tar has no such problem.
> 
> Is this a known issue?

Yes, it is. MC's tar implementation doesn't support extended headers:

https://mail.gnome.org/archives/mc-devel/2020-March/msg1.html

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: displays bad regular file timestamps on entry to .bz2 file & preserves the errors on copy out

2020-03-21 Thread Andrew Borodin
On Tue, 17 Mar 2020 20:50:49 -0400 Felix Miata via mc-devel 
 wrote:
> It's only happened on this one so far that I can remember:
> 
> Others I've checked from mozilla.org are handled normally.
> 
> Tar has no such problem.

The most part of tar source code in MC is very old (end of 1990s or beginning 
of 2000s)
and doesn't support some modern tar features.

In the case of firefox-68.6.0esr.tar.bz2, MC's tar vfs ignores extended headers
which contain the mtime of file in tar archive. The mtime field in POSIX header
is 0, therefore you can see the the 1 Jan 1970 in MC file panel.

> Is this a known issue? I've not been able to find anything on point among 
> tickets
> on https://midnight-commander.org/

Probably, the main tar ticket is https://midnight-commander.org/ticket/1952.

-- 
Amdrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Help testing release candidate / mc-4.8.24-rc1

2020-01-07 Thread Andrew Borodin
On Tue, 07 Jan 2020 17:45:28 +0300 Andrew Borodin wrote:
> On Tue, 7 Jan 2020 14:15:21 +0100 wwp wrote:
> > I think I have one more tiny issue to report.. I went back to 4.8.23,
> > and at least two settings from the layout prefs were lost: command
> > prompt and panel split. Maybe you changed the storage format for some
> > config items?
> 
> Yes. This is a result of [1].
> 
> Previously some options that are actually boolean were stored
> as intreger 0/1. Now its are stored as yes/no.

Sorry. Not yes/no, but true/false.

> 
> [1] https://midnight-commander.org/ticket/4039

-- 
А.
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Help testing release candidate / mc-4.8.24-rc1

2020-01-07 Thread Andrew Borodin
On Tue, 7 Jan 2020 14:15:21 +0100 wwp wrote:
> I think I have one more tiny issue to report.. I went back to 4.8.23,
> and at least two settings from the layout prefs were lost: command
> prompt and panel split. Maybe you changed the storage format for some
> config items?

Yes. This is a result of [1].

Previously some options that are actually boolean were stored
as intreger 0/1. Now its are stored as yes/no.

[1] https://midnight-commander.org/ticket/4039

-- 
А.
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Help testing release candidate / mc-4.8.24-rc1

2020-01-06 Thread Andrew Borodin
On Mon, 6 Jan 2020 12:45:57 +0100 wwp  wrote:
> 
> I noticed one regression: if I start mc, then start mcedit from
> subshell, I'll get:
> ===
> GNU Midnight Commander is already running on this terminal.
> Subshell support will be disabled.
> ===
> 
> Back to 4.8.23 and the issue is gone, as expected.

Notice if you run standalone mceditor, you haven't a subshell in it [1].

A new behavior (I can't say this is a bug) is a some kind of payment 
for having a full-functional subshell in standalone 
mceditor/mcviewer/mcdiffviewer.
Now if you run mcedit from mc it is the same as you run mc from mc
with all features.

[1] https://midnight-commander.org/ticket/3380

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Last version - Enter key bug

2019-12-22 Thread Andrew Borodin
On Mon, 23 Dec 2019 02:18:53 +0100 Piotr Biesiada via mc-devel wrote:
> Just tested:
> 4.8.22-1 does not have this bug
> 4.8.23-1 does have this bug
>
> Reproduce:
> 1. open Cygwin
> 2. type "mc"
> 3. open "Right" menu
> 4. go down with arrow keys to "Shell connection"
> 5. press Enter
>
> Bug is that Enter does here go to next option below "Shell connection", does 
> not start the option.

This is fixed already:
https://midnight-commander.org/ticket/4006

-- 
A.

___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: ordinary files in rpm file not displayed/accessible

2019-08-14 Thread Andrew Borodin
On Wed, 14 Aug 2019 05:03:06 -0400 Felix Miata via mc wrote:
> On "entry" to 132k
> http://download.opensuse.org/tumbleweed/repo/oss/x86_64/MozillaFirefox-branding-upstream-68.0.1-2.1.x86_64.rpm
> or
> http://download.opensuse.org/repositories/mozilla/openSUSE_Tumbleweed/x86_64/MozillaFirefox-branding-upstream-68.0.1-1.13.x86_64.rpm
> (downloaded with zypper)
> all directories are displayed as empty, not expected behavior.

Why do you think so?

$ rpm2cpio MozillaFirefox-branding-upstream-68.0.1-1.13.x86_64.rpm | cpio -t
./usr/lib64/firefox
1 block

Archive is correct. Single empty directory is in it.

The 132k is filled by huge packet changelog:

$ rpm -qp --changelog MozillaFirefox-branding-upstream-68.0.1-1.13.x86_64.rpm | 
wc -c
129549

> Is there a compression scheme missing from mc packaging that causes this?
> Does mc.ext need some sort of customization? Something else? Bug report?

MC is powerless to do anything here.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: 4.8.23: pulldown menu items can't be accessed with key

2019-06-24 Thread Andrew Borodin
On Mon, 24 Jun 2019 10:29:30 +0200 Henning wrote:
> In the pulldown menues the  key doesn't work as expected. Menu
> items can only be accessed with the letter keys. Instead, enter be-
> haves exactly like down-arrow. This is valid for mc and mcedit.

Currently I'm using recent mc and menu works fine for me.
I cannot reproduce the described behaviour.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Help testing release candidate / mc-4.8.23-rc1

2019-06-18 Thread Andrew Borodin
On Mon, 17 Jun 2019 22:56:45 +0200 Egmont Koblinger via mc-devel wrote:
> There's a severe usability regression: After pressing F9 the hotkeys
> (e.g. O for Options, then L for Layout) don't work.

Thanks for the bugreport.
Fixed in 7eaa51c79bb74e6e650935e23895c62073ff46c5.

-- 
A.
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Help testing release candidate / mc-4.8.23-rc1

2019-06-18 Thread Andrew Borodin
On Mon, 17 Jun 2019 22:56:45 +0200 Egmont Koblinger via mc-devel wrote:
> There's a severe usability regression: After pressing F9 the hotkeys
> (e.g. O for Options, then L for Layout) don't work.

Thanks for the bugreport.
Fixed in 7eaa51c79bb74e6e650935e23895c62073ff46c5.

-- 
A.
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Help testing release candidate / mc-4.8.23-rc1

2019-06-17 Thread Andrew Borodin
On Mon, 17 Jun 2019 08:56:55 +0200 David Martin via mc-devel wrote:
> "Ubuntu 16.04.6 LTS": many unsigned int cast warnings for smbfs.

Thanks for the report.

Fixed in
c47f0c4bba7af48c2147950f23fbc2e14f1de162
92146f10333f6068d6b0a54921bd2cae284705a7

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Help testing release candidate / mc-4.8.23-rc1

2019-06-16 Thread Andrew Borodin
On Sun, 16 Jun 2019 22:06:56 -0600 Jack Woehr via mc-devel wrote:
> make[4]: Entering directory '/usr/local/src/MC/build-4.8.22-166/src/vfs/sfs'
>   CC   sfs.lo
> ../../../../mc-4.8.22-166-gcd16697a3/src/vfs/sfs/sfs.c: In function 
> ‘sfs_open’:
> ../../../../mc-4.8.22-166-gcd16697a3/src/vfs/sfs/sfs.c:281:10: warning:
> declaration of ‘sfs_info’ shadows a global declaration [-Wshadow]
>  int *sfs_info;
>   ^~~~
> ../../../../mc-4.8.22-166-gcd16697a3/src/vfs/sfs/sfs.c:118:3: note: shadowed 
> declaration is here
>  } sfs_info[MAXFS];
>^~~~

Thanks for the report.
Fixed in 58d601c54b62ff061c2088d03d5d5aeaceec3dcf.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: [PATCH] fix GPM bug in MC

2019-02-27 Thread Andrew Borodin
On Wed, 27 Feb 2019 13:54:35 -0500 (EST) Mikulas Patocka wrote:
> I am sending this patch that fixes GPM bug.

Thanks! Please add your patch and comment to
https://midnight-commander.org/ticket/3208

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Help testing release candidate / mc-4.8.22-rc1

2018-12-29 Thread Andrew Borodin
On Sat, 29 Dec 2018 19:46:16 -0700 Jack Woehr via mc 
 wrote:
> In IBM i PASE environment, we're back to having struct timespect trouble
> with this snapshot:

This is weird.

> /home/JWOEHR/work/mc-4.8.21-108-g4b46e6194/src/filemanager/file.c: In
> function 'get_times':
> /home/JWOEHR/work/mc-4.8.21-108-g4b46e6194/src/filemanager/file.c:899:17:
> error: incompatible types when assigning to type 'struct timespec' from
> type 'st_timespec_t {aka const struct st_timespec}'
>  (*times)[0] = sb->st_atim;
>  ^
> /home/JWOEHR/work/mc-4.8.21-108-g4b46e6194/src/filemanager/file.c:900:17:
> error: incompatible types when assigning to type 'struct timespec' from
> type 'st_timespec_t {aka const struct st_timespec}'
>  (*times)[1] = sb->st_mtim;

Looks like HAVE_UTIMENSAT is defined. But there no any changes around
checking of utimensat() since 09/09 (commit a453376).

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Help testing release candidate / mc-4.8.22-rc1

2018-12-29 Thread Andrew Borodin
On Sat, 29 Dec 2018 19:46:16 -0700 Jack Woehr via mc 
 wrote:
> In IBM i PASE environment, we're back to having struct timespect trouble
> with this snapshot:

This is weird.

> /home/JWOEHR/work/mc-4.8.21-108-g4b46e6194/src/filemanager/file.c: In
> function 'get_times':
> /home/JWOEHR/work/mc-4.8.21-108-g4b46e6194/src/filemanager/file.c:899:17:
> error: incompatible types when assigning to type 'struct timespec' from
> type 'st_timespec_t {aka const struct st_timespec}'
>  (*times)[0] = sb->st_atim;
>  ^
> /home/JWOEHR/work/mc-4.8.21-108-g4b46e6194/src/filemanager/file.c:900:17:
> error: incompatible types when assigning to type 'struct timespec' from
> type 'st_timespec_t {aka const struct st_timespec}'
>  (*times)[1] = sb->st_mtim;

Looks like HAVE_UTIMENSAT is defined. But there no any changes around
checking of utimensat() since 09/09 (commit a453376).

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: change default configuration

2018-07-27 Thread Andrew Borodin
On Fri, 27 Jul 2018 17:01:17 +0300 Sergey Naumov via mc-devel wrote:
> I'm curious whether there is a way to change default configuration that is
> generated when user invokes mc for the first time?
> 
> For example, I want "use_internal_edit" to be true by default instead of
> false for any new user.

In vanilla mc the initial value of use_internal_edit is true. Some distros
(Debian and some others) change this to false.

> If there is a way to do it, then is it possible to just use lines that I
> want to change, not the whole configuration, say
> 
> [Midnight-Commander]
> use_internal_edit=true

Before first run, ~/.config/mc/ini doesn't exist.
If ~/.config/mc/ini doesn't exist, /etc/mc/mc.ini is used.
If /etc/mc/mc.ini doesn't exist, /usr/share/mc/mc.ini is used.
You can create one of these files with required default settings set.

Unfortunately, there is no info about /etc/mc/mc.ini in the man page.
I'll fix that at this weekend.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: develop vfs plugin

2018-05-28 Thread Andrew Borodin
On Mon, 28 May 2018 13:42:33 +0200 Raikol Duergar wrote:
> the problem is that extfs helpers need full ls -lR from start,

Yes. This mean that you read an archive one time only. Otherwise, if you
want walk through archive directories, you have to read archive again
and again. If archive doesn't provide its list explicitly, the directory
change will take a lot of time.

> it is possible to get directory by directory?

Unfortunately, no.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: develop vfs plugin

2018-05-25 Thread Andrew Borodin
On Wed, 23 May 2018 13:07:28 +0200 Raikol Duergar wrote:
> i dont like to do a full scan of archive from the start 

The base vfs library code is in the lib/vfs directory.
Also you can find there some notes in README and HACKING files.
Unfortunately, historically, a detail documentation is absent at all.

Various VFS implementations (plugins) are in the src/vfs directory.
Some VFSes (ftp, fish, etc) are written in C. Most archive VFSes
are shell, perl, python scripts run via extfs (see src/vfs/extfs/helpers).

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Contributing to the wiki

2017-10-02 Thread Andrew Borodin
On Tue, 3 Oct 2017 00:13:15 +0200 Cristian Rigamonti wrote:
> Hi, I'd like to suggest/make some changes to the documentation
> at https://midnight-commander.org/wiki/doc
> 
> Is it possible to have edit permission on the wiki? (my trac account is "cri")

Thanks for the request!

I added permission to you to modify wiki pages.

--
Andrew

___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: mc macro recording/editing issues

2017-09-20 Thread Andrew Borodin
On Wed, 20 Sep 2017 12:28:02 +0300 Sergey Naumov  wrote:
> But I will try to use macro too.
> In the code (usermenu.c: expand_format()) I see that despite mcedit manual
> mentions %c, it is not actually supported.
> Could I fix %c and also add %C as file offset (WEdit.buffer.curs1)? Should
> I file a bug for it?

No. usermenu.c isn't related to editor and editor macros. It is related to user 
menu
(called via F2 in file namager or F11 in the editor).

I can't confirm that recorded macro isn't stored in ~/.local/share/mc/mc.macros.
It works for me. But ctrl-space. It is some special case.

-- 
Andrew.
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: bad timestamps mc-4.8.19 copy from archive

2017-08-11 Thread Andrew Borodin
On Fri, 11 Aug 2017 05:37:17 -0400 Felix Miata wrote:
> Yury V. Zaytsev composed on 2017-08-11 11:04 (UTC+0200):
> 
> > Felix Miata wrote:
> ...
> >> Reverting to 4.8.17 solves.
> 
> > Please check current git, should be already solved.
> 
> No luck searching. I get 15k hits searching for 'timestamp archive'. It wants 
> to
> search all of git across all repos rather than limiting to mc, and
> https://midnight-commander.org/search finds only one closed two year old bug.

https://midnight-commander.org/ticket/3821

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: MC doesn't edit files on remote file systems (e.g. ssh) if external editor is used

2017-07-06 Thread Andrew Borodin
On Thu, 6 Jul 2017 16:26:10 +0200 (CEST) "Yury V. Zaytsev" wrote:
> I've just reproduced the issue with an external editor. I guess for some 
> reason
> we don't upload the file back when the editor quits. You are welcome to file 
> a bug,
> and even better would be if you could have a look at it, and provide a patch.

https://midnight-commander.org/ticket/37

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Local-to-dir mcedit prefs or quick profiles?

2017-02-20 Thread Andrew Borodin
On Mon, 20 Feb 2017 11:24:48 +0100 (CET) "Yury V. Zaytsev" wrote:
> On Mon, 20 Feb 2017, wwp wrote:
> 
> > What feature or best practice would you suggest in order to quickly 
> > switch mcedit settings (general editor options) according to the file 
> > location? What do you guys do in such situation? (note that I'm using it 
> > for more 15 years, and decide to ask the community about this only now 
> > :-D )
> 
> Maybe we need some limited support for vim / emacs modelines...

https://midnight-commander.org/ticket/3068

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: [PATCH] fix directory search order to be depth-first again

2016-05-22 Thread Andrew Borodin
On Sun, 22 May 2016 12:45:58 +0200 Oswald Buddenhagen wrote:
> this matches the pre-glib implementation, and is way more natural.

Thanks!

Committed to the 3641_cleanup branch.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


About 4.8.16 (was: Re: mc^2 news (january 2016))

2016-02-27 Thread Andrew Borodin
On Thu, 25 Feb 2016 22:17:33 +0100 "Yury V. Zaytsev" wrote:
> On a related note, I think we (or, rather, I) should start thinking
> about releasing 4.8.16 sometime soon. There is quite a bit of good stuff
> accumulated in master already.

I agree.

> The biggest problem now is that the cleanup branch again has became quite 
> huge.

The cleanup branch contains about 50 commits. Most of them are small and clean.

> But I can always tell to myself that I trust Andrew's good judgment :-)

Thanks!

> Andrew, what do you think of this? Do you have any personal plans as to
> what do you want to get done before 4.8.16?

No, I don't. We can release 4.8.16 after review and merge of #3566 and #3547.

IIRC, we don't have tickets that are so critical to be included in release.
But I can mistake because we have 540 open tickets and I can forget something.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Cannot submit new ticket

2015-12-12 Thread Andrew Borodin
Greetings!

>From now, almost all spam filters are switched off. The only spam filter
which is still used is BadIP[1].

In addition, since we have 99.9% of spam from users with @yahoo.com and
@outlook.com emails, registration from these email domains are permanently
disallowed.

[1] https://www.midnight-commander.org/wiki/BadIP

-- 
Andrew

___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Midnight Commander 4.8.15 released

2015-11-08 Thread Andrew Borodin
On Sun, 08 Nov 2015 21:33:19 +0100 Laurent Wandrebeck wrote:
>   --enable-vfs-mcfs

This is useless. mcfs was removed  a long time ago.

-- 
A.
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: mc and me

2015-11-06 Thread Andrew Borodin
On Fri, 6 Nov 2015 11:12:55 +0300 Slava Zanko wrote:
> > I'm all for granting Egmont commit access.
> 
> +1 from me.

Me too.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Midnight Commander not compiles on Debian Squeeze

2015-10-20 Thread Andrew Borodin
On Tue, 20 Oct 2015 19:54:45 +0200 "Yury V. Zaytsev" wrote:
> On Tue, 2015-10-20 at 14:48 +0300, Mooffie wrote:
> > 
> > You also need to update README, INSTALL, HACKING. 
> 
> Thanks! I would have forgotten about it.

What about forgotten

11 PKG_CHECK_MODULES(GMODULE, [gmodule-no-export-2.0 >= 2.14], 
[found_gmodule=yes], [:])
12 if test x"$found_gmodule" = xyes; then
13 g_module_supported="gmodule-no-export-2.0"
14 else
15 dnl try fallback to the generic gmodule
16 PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.14], 
[found_gmodule=yes], [:])

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: COPYOUT time

2015-06-10 Thread Andrew Borodin
On Wed, 10 Jun 2015 19:10:52 +0300 Nicolas Rybkin wrote:
 Can anyone tell me where is implementation of mc_fstat() ? I can't find it.

lib/vfs/interface.c:589

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Translations and Transifex

2015-06-09 Thread Andrew Borodin
On Tue, 9 Jun 2015 21:17:35 +0200 Morten Bo Johansen wrote:
 On 2015-06-09 Oswald Buddenhagen wrote:
  do you see what is right below that button on the pricing page?
 
 No, nothing that contradicts what I said. Please open my eyes.

https://www.transifex.com/pricing/

Open source projects

Crowdsource translations for your Open Source project for free on Transifex 
with no word count limits.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Hello

2015-05-18 Thread Andrew Borodin
On Mon, 18 May 2015 17:18:22 -0400 David  Both wrote:
 That information is actually very helpful. I will proceed on the basis that
 the primary documentation is the MAN page and that information will move into
 the help file.

Current man page is very big. We have an old idea to split it in to independent
files:
1) the man page itself which contains description of command line options
and probably some other info, and
2) the content of built-in help.

I would be great if you try to implement that. Thanks!

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: [ANN] mc^2

2015-05-10 Thread Andrew Borodin
On Sun, 10 May 2015 14:25:50 +0300 Paul Sokolovsky wrote:
 the patch exists http://www.midnight-commander.org/ticket/1652 , and only
 held by exactly perfectionist attitudes and lack of more general response.

I don't have words other than I wrote in ticket comments.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: [ANN] mc^2

2015-05-08 Thread Andrew Borodin
On Fri, 8 May 2015 15:05:33 +0300 Mooffie wrote:
 On 5/8/15, Egmont Koblinger wrote:
  How much work would it be to port your branch to 4.8.14 or git head
  (they're pretty much the same now)?
 
 Probably very little work.
 
 I'll do that sometime soon, I hope.

It would be great if you split first huge commit of branch in several small
commits. It will make the review easier.

Thanks!

-- 
A.
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Bug reports / suggestions welcome here ?

2015-04-18 Thread Andrew Borodin
On Sat, 18 Apr 2015 12:52:07 +0200 Rikishi 42 wrote:
 I've been using mc for a very, very long time now. And a while (years ?) back
 there was a change in the interface of the copy progress display. I liked
 that very much, but found a bug and also a need for a an additional option.
 
 I'm only using release 4.8.1, but didn't find anything in the release notes
 that would suggest that it would have been addressed.

 Is this the right place to report/suggest those modifications, or is this
 list for developpers only?
 
 The other mc mailing list seems very quiet, so I figured I'd ask here.

The only place for bug reporting is https://www.midnight-commander.org.
We don't use other sites (github, etc) for bug tracking.

Start page for bug reporting is 
https://www.midnight-commander.org/wiki/NewTicket.
Registration is required.
Please don't ignore any requests written on this page.

-- 
Andrew
 
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: reporting of issues

2015-03-29 Thread Andrew Borodin
On Sun, 29 Mar 2015 09:52:46 +0200 Frank Dietrich wrote:
 I have a quick question: Is it enough to report an issue on
 
 https://github.com/MidnightCommander/mc/issues

We (developers) don't use github as issue tracker.

 or should it be reported anywhere else also?

Please report any issue here: https://www.midnight-commander.org/wiki/NewTicket
Registration is reguired.

Please use search before create new ticket. Please try recent mc release and
don't report issues for old versions.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Ticket comment rejected and lost

2015-02-23 Thread Andrew Borodin
On Mon, 23 Feb 2015 17:16:19 +0100 Egmont Koblinger wrote:
 Actually, I got the same message again.  I can't submit my newest bug report.

Sorry. I still hope to make spam filter more corresponding to spam and ham.
For last day, there 3 real spam messages was banned.

 
 (Which, for reference is: F2 followed by F1 brings up an error about
 missing help.)
 

I've created the ticket.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Ticket comment rejected and lost

2015-02-10 Thread Andrew Borodin
On Mon, 9 Feb 2015 14:59:53 +0100 Egmont Koblinger wrote:
 So... I wanted to submit a comment to ticket 2027... I logged in,
 wrote about 10-15 lines, and after clicking Submit I was given an
 error, something like Submission rejected because of suspected spam
 (can't remember the exact words).

I'm sorry! That's my fault. I played with anti-spam settings some days
ago. Some spam was blocked but some ham was blocked too. I returned
previous settings.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Bug tracker doesn't work

2014-12-15 Thread Andrew Borodin
On Sat, 13 Dec 2014 15:23:03 +0100 Egmont Koblinger egm...@gmail.com  wrote:
 I'd like you to understand that at this point that fixing the
 development architecture and process of mc is the most critical issue,
 pretty much blocking everything else.

Slava is working on fixing bugtracker. Unfortunately, I can't help him
because I don't have any experience of administration and support of real web
services.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: remember / save left and right directory

2014-02-20 Thread Andrew Borodin
On Thu, 20 Feb 2014 17:44:26 +0200 Alex waza...@inbox.lv wrote:
 Why MC do not remember last directory (right/left windows) when I quit from 
 it ? How to fix it ?

Menu-Options-Panel options...
[x] Auto save panels setup

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Incorrect behavior in Hotlist - Insert

2013-12-31 Thread Andrew Borodin
On Tue, 31 Dec 2013 19:14:09 -0800 Mike Smithson wrote:
 Not decrementing (as I have done here by commenting out the lines)
 leaves the cursor on the new entry. This seems *more* correct than
 jumping up two entries.

I agree. I removed the decrement of l-pos in the 2290_find_file_speedup branch
(temporary commit is da8810e6b40f667595ca54b28c62eb5452058f28).

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Compile from git clone fails.

2013-12-26 Thread Andrew Borodin
On Thu, 26 Dec 2013 13:50:24 -0800 Mike Smithson mdooli...@gmail.com wrote:
 Normally I compile from tarball.
 
 git clone git://github.com/MidnightCommander/mc.git
 
 I used standard process: autogen.sh, ./configure, make,
 and everything goes fine until the very end.
 
 I get this:
 
 gcc -std=gnu99 -Wcomment -Wdeclaration-after-statement -Wfloat-equal  
 -Wformat -Wformat-security -Wimplicit -Wmissing-braces  
 -Wmissing-declarations -Wmissing-prototypes -Wnested-externs  -Wno-long-long 
 -Wno-unreachable-code -Wparentheses -Wreturn-type  -Wsequence-point -Wshadow 
 -Wsign-compare -Wswitch -Wuninitialized  -Wunused-but-set-variable 
 -Wunused-function -Wunused-label  -Wunused-parameter -Wunused-value 
 -Wunused-variable -Wwrite-strings -g -O2  -o mc main.o  
 ./.libs/libinternal.al -L/usr/lib ../lib/.libs/libmc.al  -lslang -lgpm 
 /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so
 ./.libs/libinternal.al(mcviewer.lo)(.text+0x2c1): In function `mcview_new':
 /home/miven/src/Managers/mc/git/mc-4.8.11-131225b/src/viewer/mcviewer.c:214:  
 undefined reference to `mcview_init'
 ./.libs/libinternal.al(mcviewer.lo)(.text+0x304):/home/miven/src/Managers/mc/git/mc-4.8.11-131225b/src/viewer/mcviewer.c:217:
   undefined reference to `mcview_toggle_hex_mode'
 ./.libs/libinternal.al(mcviewer.lo)(.text+0x324):/home/miven/src/Managers/mc/git/mc-4.8.11-131225b/src/viewer/mcviewer.c:219:
   undefined reference to `mcview_toggle_nroff_mode'
 ./.libs/libinternal.al(mcviewer.lo)(.text+0x344):/home/miven/src/Managers/mc/git/mc-4.8.11-131225b/src/viewer/mcviewer.c:221:
   undefined reference to `mcview_toggle_wrap_mode'
 ./.libs/libinternal.al(mcviewer.lo)(.text+0x364):/home/miven/src/Managers/mc/git/mc-4.8.11-131225b/src/viewer/mcviewer.c:223:
   undefined reference to `mcview_toggle_magic_mode'
 
 ... etc etc etc ...
 

Cannot reproduce. Works fine for me.

Could you please show config.log and full make log:

make V=1  make.log 21  tar cjf mc-log.tar.bz2 config.log make.log

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: panel scrolling

2013-12-23 Thread Andrew Borodin
Hi!

On Mon, 23 Dec 2013 20:43:08 -0800 Mike Smithson mdooli...@gmail.com wrote:
 Try it, you'll like it.

Cool! Looks very interesting.

Would you please create a ticket at the midnight-commander.org?

 It also demonstrates how easy it is to add new option to mc these days.

I have some remarks to your patch.

We have some indentation rules for mc source code. Please run make indent 
before
create patches.

[...]

 +.scroll_center = TRUE,

By default, new behavior should be switched off.

[...]

 +QUICK_CHECKBOX (N_(Center scrolling),  
 panels_options.scroll_center, NULL),

The C key is already in use in every dialog window (in the Cancel button).
The s key is free in this dialog and can be used for this option.

Please provide a short description of new option in the mc internal help 
(doc/man/mc.1.in).

[...]

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: MC Tabs

2013-10-16 Thread Andrew Borodin
On Mon, 14 Oct 2013 20:20:19 +0200 Cosmin Popescu wrote:
 Please find attached my contribution to mc: tabs like Total Commander has.

This is a known issue: https://www.midnight-commander.org/ticket/1581

 I am a regular midnight commander user. I use it for all my file exploring
 needs on several systems. I use it under Arch Linux and Ubuntu at home,
 under Red Hat on various servers that I administer and under Cygwin on
 Windows 7 at work.
 
 One of the things that was missing were the tabs and I hated all the time,
 when I needed to copy some files from a location to several locations to
 have to change the folder so many times.
 
 You will find an archive containing several patches that will add tabs to
 MC and a keymap file to map some shortcuts for the tabs. Another message
 will follow with some screen shots.

Bugtracker is rather than e-mail to collect requests. This is some guarantee
that your request will not be forgotten.

 Inside the archive there is an executable file called apply-patch that will
 apply all the pathes on the required files. To install the patch, just
 un-archive the patch.tar.gz inside the root folder of mc-4.8.10 archive, cd
 to patch and run ./apply-patch.

Please, no. Use diff -ruNp to create patch if you're working with snapshot.
Or git format-patch, or git diff if you're working with repo.

[...]

 Also, please note that in the src/filemanager/filegui.c you have a small
 bug at the line 288. The closing bracket of the function is inside the
 #ifdef directive, while the opening one is outside. The program will of
 course fail to compile under cygwin, so I've corrected it.

This is already fixed: https://www.midnight-commander.org/ticket/3053
That is why you should use recent repo snapshot instead of release tarball.

 In the src/filemanager/mountlist.c, on the line 245 you are using the
 _GL_UNUSED macro. This will also fail to compile on my version of cygwin.
 Although I know that probably I have to add a dev package to have the macro
 defined, I don't think that it should be the case to do that just to avoid
 a warning (to add a dependency). I would do that with something like #ifdef
 _CYGWIN_ directive, but since this might be because of my installation of
 cygwin, I didn't modify it in the patch that I've sent you.

Thanks! This code was borrowed from gnulib. Seems I missed somesing. I'll check
that.

[...]

 Please let me know if you would like to include the tabs in your main
 source repository. If not, do you have something against me posting the
 patch on sourceforce and github?

The best way is following:
1. Clone git repo, or if you are not familiar with git, get recent snapshot:
https://github.com/MidnightCommander/mc/archive/master.zip
2. Create patch.
3. Attach this patch (and some description as you wish) to the ticket #1581.
You must be registered at m-c.o for that.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: What is audio/x-wav D)download or C)cancel anyway?

2013-09-03 Thread Andrew Borodin
On Mon, 2 Sep 2013 19:41:17 -0500 (CDT) Theodore Kilgore wrote:
 
 and why do I get a black screen with this mysterious message at the bottom 
 when I am attempting to play a WAV file in MC running in a terminal (not 
 in X!)? And, of course, I just get this message, no music. What in the 
 world is happening, here?

MC supports system-wide file bindings using xdg-open.

 Just upgraded to Slackware Current on my old eeepc netbook, decided to 
 play a piece of music afterward to relax, and I confronted this.
 
 I looked into the extension editor, and it says about wav files and other 
 sound files that it follows what is in /usr/libexec/mc/ext.d/sound.sh
 
 That file does not seem to contain anything of the kind. It says it is 
 going to use play in the terminal (which is what I expected) and it says 
 it wants to use xmms in X.

Look at the end of sound.sh:

86 open)
87 ${MC_XDG_OPEN} ${MC_EXT_FILENAME} 2/dev/null || \
88 do_open_action ${filetype}

To disable xdg-open in mc, you can define MC_XDG_OPEN=/bin/false.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Disabling file highlighting for some types?

2013-09-03 Thread Andrew Borodin
On Fri, 30 Aug 2013 09:34:03 +0200 Dominik Vogt wrote:
 and filehighlight.ini has this section I want to disable:
 
 --
 [temp]
 extensions=tmp;$$$;~;bak
 extensions_case=false
 regexp=(^#.*|.*~$)
 --
 
 How can I disable these predefined rules in the user specific
 configuration?

Copy /etc/mc/filehighlight.ini to ~/.config/mc/ and modify it as you wish.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Vim's modeline support

2013-09-03 Thread Andrew Borodin
On Sat, 31 Aug 2013 17:32:28 +0200 Tomasz Wasilczyk wrote:
 Hi,
 
 I recently needed indentation styles set per-file (not globally). Such
 feature is supported by vim with modeline mod enabled, but my favorite
 editor is mcedit. So, I've just wrote modeline support for mcedit.
 
 Here is the patch against current git: http://pastebin.com/99anc269
 
 This is rather a proof-of-concept, than final pull request. If you
 find it useful to add its support to official mcedit, I could polish
 this commit (I guess, mc_findinfile should be moved somewhere and
 named differently).

Yes, it is useful. Please create a ticket on www.midnight-commander.org.

 By the way: how to enable BlockShiftLeft/BlockShiftRight? I tried
 editing mc.keymap, but none of locations where i put it didn't worked.

System-wide in /etc/mc/keymap, section [editor]. For reference:
BlockShiftLeft = alt-shift-left
BlockShiftRight = alt-shift-right

For user only, the same is in ~/.config/mc/mc.keymap.

Both cases are work for me.

Be sure that shortcuts you choose are supported in your terminal.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: [PATCH] Fix info for ogg files in sound.sh

2013-05-19 Thread Andrew Borodin
On Sat, 18 May 2013 18:09:06 +0300 wrote:
 MC 4.8.8 views OGG files incorrectly if they names contain spaces:
 
 Error opening input file My\ recording\ #1.ogg: No such file or directory
 
 There is a small bug in misc/ext.d/sound.sh.
 ogginfo should be shown for MC_EXT_FILENAME like other cases.
 Using MC_EXT_SELECTED handles filenames with spaces incorrectly.
 
 An appropriate patch is attached.

Thanks for the patch! Applied to the 2900_cleanup branch and will be merged
to master soon.

-- 
Andrew

___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: MC-win-4.8.7 does not show files

2013-05-19 Thread Andrew Borodin
On Sat, 18 May 2013 03:36:04 +0300 Alpo Värri wrote:
 Midnight Commander Windows version 4.8.7

MC for Windows isn't developed and isn't supported at all. Sorry.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: shortcut key for sorting by mtime

2013-05-11 Thread Andrew Borodin
On Wed, 8 May 2013 10:16:54 +0800 Weiwu Zhang wrote:
 The way I do it now is to select from menu and set order there. It
 involves more than a dozen key-stokes everytime when I enter INCOMING
 folder.
 
 Is there a shortcut key for this purpose or an alternative solution?

There are following actions are in the mc.keymap file w/o default shortcuts:

SortByName =
SortByExt =
SortBySize =
SortByMTime =

You can bind they as you wish.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: mc ignores parts of /etc/mailcap

2013-05-02 Thread Andrew Borodin
On Thu, 2 May 2013 11:15:21 +0800 Weiwu Zhang wrote:
 If I press Enter on a gif/jpeg file, mc calls 'feh' to display it.
 If I press Enter on a mp3/wav file, mc flashes and does nothing more.
 No more software are launched.

mc itself does not use /etc/mailcap. mc uses own file of extension handling
rules. That file is mc.ext. Use Command-Edit extension file menu item
to modify it.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: midnight commander internal cd in scripts

2013-02-24 Thread Andrew Borodin
On Fri, 22 Feb 2013 20:16:17 +0200 Elad Rom wrote:
 Is there a way to cd into a folder (be it ssh, ftp or local folders)
 from an existing instance of midnight commander through a shell script?
 
 Example:
 Inside an open MC instance, in my home folder, there is a file called 
 somessh.sh.
 When I hit enter on this executable, I want mc to cd into the directory I 
 specify inside the file (E.g. ~/Downloads)
 as if I'm using the cd in the mini-command line or via quick cd.

When you run shell script, you run new shell which is child process of MC.
When you do cd in the script, you change working directory of that child
shell. Working directory of parent is unchanged. You unable to change working
directory of parent from child.

You have to use the source built-in shell command to run script in current
process context. This allows you change current directory from script.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: midnight commander internal cd in scripts

2013-02-24 Thread Andrew Borodin
On Sun, 24 Feb 2013 22:52:19 +0200 Elad Rom wrote:
 could you give an example for such a script?

Example of what?

 can I run it from mc panels, or from the user menu?

Yes from mc command line only via source.

Directly from panels (pressing Enter) -- no, because script is executed in the
new child process.
From user menu -- no, because of the same reason.

You can use Directory hotlist to store various directories and fast cd to any
of them.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: stable vs. latest

2013-02-19 Thread Andrew Borodin
On Tue, 19 Feb 2013 15:19:11 -0500 Felix Miata wrote:
 Last Debian, Fedora  *buntu releases had 4.8.x. Current Gentoo is 4.8.7.
 Mageia 3 is about to be released with 4.8.7. So, why does the stable/4.8.1.x
 branch even exist?

There is no stable branch anymore. 4.8.1.7 was the last release in 4.8.1.x
branch. 4.8.1-stable and master branches have more and more differences, and
patch backporting from master to stable and vice versa becomes more and more
hardly. We try make stability in master as much as possible.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: how to modify mc configuration directory

2013-02-06 Thread Andrew Borodin
On Thu, 7 Feb 2013 14:43:51 +0800 vinurs wrote:
 I am a new comer for mc, is there any method to modify the mc
 configuration directory from .config/mc to .mc (for example), I searched
 the google, but I can't find the answer.

This question is for mc@ mailing list, not for mc-devel@ one.

In order to change mc configuration directory, you have to rebuild mc using
--with-homedir=DIR option:

  --with-homedir  Choose any place of user settings relative to home
  dir, or XDG for respect XDG standards [XDG]

Or you can set up the MC_HOME environment variable. See manual page for details.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Easy renaming of files

2013-01-28 Thread Andrew Borodin
On Mon, 28 Jan 2013 10:34:29 +0100 Marco wrote:
 Is there an easier way to rename files, for instance a shortcut to
 pre-populate the field with the current file name?

Shifr-F6.

-- 
Andrew


___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: ctrl mappings don't work

2013-01-11 Thread Andrew Borodin
On Thu, 10 Jan 2013 20:30:50 +0100 Oswald Buddenhagen wrote:
 huh? slang/ncurses runs the tty in raw mode, so it gets all the keys
 just fine. what is most likely happening is that mc's command prompt is
 eating those keys before they reach the keybinding dispatcher.

Ok. In xterm

when I press ctrl-h, SLang_getkey() returns 8
when I press ctrl-m, SLang_getkey() returns 13

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: external diff

2012-11-28 Thread Andrew Borodin
On Wed, 28 Nov 2012 19:42:47 +0100 Frank Dietrich wrote:
 is it possible to configure an external diff tool?
 I would like to use meld in case I need to diff a directory.
 
 Current I do it like this
   in panel1: cd ..
   in panel2: cd ..
   type command 'meld '
   in panel2: CTRL-SHIFT-ENTER
   in panel1: CTRL-SHIFT-ENTER
   press ENTER to execute the command
 
 I would like to reduce the number of steps needed to compare the two
 selected directories without leaving them.

Read the Macro Substitution subsection in mc manual page.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Bugreports

2012-10-26 Thread Andrew Borodin
On Fri, 26 Oct 2012 16:14:41 +0200 Kov?cs Zolt?n wrote:
 Dear mc-devel,

First of all, print relevant subject.

 Is this enough for a normal bug report? I use 4.8.1 (3:4.8.1-4 in an Ubuntu
 box).

No. Current release is 4.8.6. For bug report for recent mc version welcome to
https://www.midnight-commander.org/wiki/NewTicket. Don't forget to use search
to avoid ticket duplication.
For bug report for old releases welcome to bugzilla of your distro.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Remapping keyboard shortcuts

2012-10-02 Thread Andrew Borodin
On Tue, 2 Oct 2012 09:23:08 +0200 Marco wrote:

First of all, what version of mc do you use? Show the result of mc -V.

What terminal emulator do you use? Show 'echo $TERM' and 'stty -a'.

What keyboard layout do you use, QWERTY or something else?

  I'm not familiar with terminal setup, but seems ctrl-j cannot be
  used in mc because it is intercepted by terminal. Terminal gets
  ctrl-j and sends NL to the program.
 
 I don't think it's a terminal issue. To verify that I mapped the

To verify that run 'cat' in clear terminal and press keys that you're 
interested.
Show results here.

 commands alt-i and alt-o to Up and Down. There keys are definitely
 interpreted by MC. What I did:
 
 [panel]
 Down = ctrl-j; alt-i
 Up = ctrl-k; alt-o
 
 and I removed all other bindings to ctrl-j, ctrl-k, alt-i and alt-o.
 The result:
 
 ctrl-j  - prints the highlighted file name on the terminal

What is it? How it looks?

 ctrl-k  - apparently nothing
 alt-i   - usual mapping (change directory of other panel)
 alt-o   - moved the cursor *DOWN* (Note: it is mapped to “Up”)

That's very strange.

 What is the proper way of unbinding? Deleting the entire entry,
 setting it empty (e.g. Down = )?

Set empty.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Bug in mc

2012-10-01 Thread Andrew Borodin
On Thu, 27 Sep 2012 11:39:54 +0200 Jakusev, Alexandr wrote:
 Our system has an old version of diff that does not support -a flag. When mc
 invokes it for file comparison purposes, it returns error saying that such 
 flag
 is not recognised. Upon such event, mc crashes happily. While there are many
 ways to work around this issue, I don't think that mc should crash.

Update mc to recent 4.8.6 release. This bug is fixed as part of
https://www.midnight-commander.org/ticket/2873

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Spanish Help + man

2012-09-27 Thread Andrew Borodin
On Sat, 15 Sep 2012 17:37:06 +0200 David Mart?n wrote:
 I have updated the Spanish docs for mc. Here is the main source file.

Thanks!

Applied: 
https://www.midnight-commander.org/changeset/672c572e9b18363bfb4cad854082da739e11d569

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: [801bab95] issues with man pages

2012-09-25 Thread Andrew Borodin
On Tue, 25 Sep 2012 07:37:14 +0200 (CEST) Werner LEMBERG w...@gnu.org wrote:
 compilation and installation of commit 801bab95 on my GNU/Linux box
 using the standard incantation (./autogen.sh, ./configure; sudo make
 install) was just fine, however, there are three issues, the first of
 them serious.
 
 (1) mc fails to find the resource directory if called for man pages.
 Going to a (uncompressed) man page `foo.man' and pressing F3
 yields
 
   /tmp/mc-wl/mcextQeBmEa: line 14:
 /lib/mc/ext.d/text.sh: No such file or directory
 
 Obviously, it misses the `/usr/local' prefix.

Cannot reproduce. Works find for me.

Please show the output of
/usr/local/bin/mc -V  /usr/local/bin/mc -F

-- 
Аndrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: [801bab95] issues with man pages

2012-09-25 Thread Andrew Borodin
On Tue, 25 Sep 2012 12:36:29 +0200 (CEST) Werner LEMBERG wrote:
 the `exec_prefix' variable doesn't get expanded:

${exec_prefix}/lib/mc/ext.d/text.sh view man lessa

As first step, would you please try build mc with the attached patch.

Thanks!

-- 
Andrew
diff --git a/configure.ac b/configure.ac
index cfa7208..55eecde 100644
--- a/configure.ac
+++ b/configure.ac
@@ -425,7 +425,7 @@ dnl 
 dnl ${prefix} and ${exec_prefix} are undefined here if --prefix is not used in command line
 dnl Let define ${prefix} and ${exec_prefix}
 test x$prefix = xNONE  prefix=$ac_default_prefix
-test x$exec_prefix = xNONE  exec_prefix='${prefix}'
+test x$exec_prefix = xNONE  exec_prefix=${prefix}
 
 if test x${libexecdir} = x'${exec_prefix}/libexec'; then
 EXTHELPERSDIR=${prefix}/libexec/${PACKAGE}/ext.d
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: [801bab95] issues with man pages

2012-09-25 Thread Andrew Borodin
On Tue, 25 Sep 2012 12:36:29 +0200 (CEST) Werner LEMBERG  wrote:
 the `exec_prefix' variable doesn't get expanded:

${exec_prefix}/lib/mc/ext.d/text.sh view man lessa

Please test patch
https://www.midnight-commander.org/changeset/684eaa426b76a791a54b1bc8f29cc37e9dfbb8e7

Thanks!

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Segfault when viewing HTML files with mc -v

2012-07-30 Thread Andrew Borodin
On Mon, 30 Jul 2012 01:38:53 +0300 Nikos Chantziaras wrote:
 (I'm on Linux 64-bit.  This happens with current Git master as well as the
 4.8.4 release.  4.8.3 does not have the issue.

Thanks for the bugreport. But best way to report bugs is to create ticket at
midnight-commander.org.

Since segfault is serious bug, I created ticket myself:
https://www.midnight-commander.org/ticket/2858.
Please test that fix.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Transifex and mc.pot

2012-07-30 Thread Andrew Borodin
On Mon, 30 Jul 2012 01:34:46 +0200 David Mart?n wrote:
 I feel that I'm doing something wrong about translations... I keep my es.po
 file updated to latest git sources. Not every day nor every week, but on
 a regular basis. But if I upload the file to Transifex it REFUSES quite a few
 messages. I suppose it's because an older mc.pot file. The mc.pot seems to be
 uploaded just before every release, but this way the release is published
 with old translations.

Transifex detects changes in mc.pot in repo and automatically downloads mc.pot
and merges it into all .po files. And yes, actually mc.pot is gerenerated before
release. I think, we should make it more often, not for after every change in 
i18n stuff, but after more or less accumulated number of changes.

-- 
Andrew
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Segfault when viewing HTML files with mc -v

2012-07-30 Thread Andrew Borodin
On Mon, 30 Jul 2012 14:32:49 +0200 Yury V. Zaytsev wrote:
 Worse even it's substantially harder for most of them to communicate in
 English, so tickets that require a lot of communication naturally get put off
 till later.

Some communication problems in non-native language exist, yes. But actually
requirement for ticket is a guarantee that request/bugreport as ticket will be
kept in Trac forever. Request via e-mail/forum/jabber/etc has a good chance to 
be
forgotten and lost.

-- 
Andrew

___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: System-wide smooth scrolling?

2012-03-23 Thread Andrew Borodin
On Fri, 23 Mar 2012 03:16:32 -0700 (PDT) Gilles wrote:
 Smooth scrolling is available per user through ~/.mc/ini.
 
 I was wondering if MC provided a system-wide configuration file so that
 settings applied to all users (root and non-root)?

If user's configuration files exists, it is used. If not, /etc/mc/mc.ini is used
if it exists. If not, /usr/share/mc/mc.ini is used.

Unfortunately, partial configuration redefinition is not supported yet. 
Configuration file is used completely.

-- 
Andrew
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: Set sort order to show directories on top.

2012-01-31 Thread Andrew Borodin
On Tue, 31 Jan 2012 21:39:59 -0600 Christian Dysthe wrote:
 Is it possible to set directory sort order so that directories always is 
 shown on top?

This is default sort order.

Menu-Left/Right-Sort order...-Name

-- 
Andrew
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: F1 can't find help

2011-11-13 Thread Andrew Borodin
On Sun, 13 Nov 2011 15:28:59 -0600 sc wrote:
 when i hit F1 in mc i get a message that he can't find
 /usr/share/mc/help/mc.hlp
 
 curiously, i have a /usr/share/mc/help path, but it is empty
 
 i'm on opensuse, installed mc from yast (4.7.5.1)

This a packaging error. Ask your mc maintainer to fix that.

-- 
Andrew
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: F5/F6 rename functionality removed?!!

2011-10-09 Thread Andrew Borodin
On Sat, 8 Oct 2011 01:58:33 -0700 (PDT) slaj wrote:
 Anyway, that is not important, still I'm not able to rename a file because
 the ESC shift+6 sequence does not give me anything. Sure, shift+f6 is
 acceptable solution for rename, and this could be just problem of a my
 terminal(s) but for the connection I do I can't change the terminal
 behavior, and I used to use ESC 6.

Which version of mc do you use now?

-- 
Andrew
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: Problem with renaming a file

2011-10-07 Thread Andrew Borodin
On Thu, 06 Oct 2011 20:06:43 +0200 Hartmut Figge wrote:
 Too complicated. I do not see an explanation how to file a bug there and
 searching the wiki leads to
 
 | Creating a custom report requires a comfortable knowledge of SQL.
 
 Well, i do know nothing about SQL. *g* It would be nice if you could
 open a ticket by yourself.

What? Where did you read that?

 P.S.
 Accessing https://www.midnight-commander.org/ gives
 http://www.triffids.de/pub/screenshot/mc111006.png

It's ok. m-c.o uses self-signed certificate 
(https://www.midnight-commander.org/ticket/2578).

I filed a bugreport myself: https://www.midnight-commander.org/ticket/2626

Thanks!

-- 
Andrew
___
mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: Problem with renaming a file

2011-10-07 Thread Andrew Borodin
On Fri, 07 Oct 2011 11:12:28 +0200 Hartmut Figge wrote:
 Wanting to file a bug and not finding a way to do so on
 https://www.midnight-commander.org/ i used the Tab Help/Guide and found
 https://www.midnight-commander.org/wiki/TracReports.
 
 The paragraph 'Creating Custom Reports' was terrifying. *g*

That is internal stuff of Trac itself, not MC.

To file a bug, you must be registered and logged in at m-c.o. Then you can use
the 'New Ticket' item of top-screen menu line.

-- 
Andrew
___
mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: F5/F6 rename functionality

2011-10-06 Thread Andrew Borodin
On Thu, 6 Oct 2011 04:02:36 -0700 (PDT) slaj wrote:
 Why the HECK you removed rename functionality from F5/F6?!!
 What idiot decided to change the F5/F6 window to not show the file name!!!
 I've just updated MC after many years to see that developers are destroying
 this gem!

I don't understand what you're talking about.

http://catb.org/~esr/faqs/smart-questions.html

-- 
Andrew
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: Problem with renaming a file

2011-10-06 Thread Andrew Borodin
On Thu, 06 Oct 2011 16:39:15 +0200 Hartmut Figge wrote:
 hafi@i5 ~ $ mc --version
 GNU Midnight Commander 4.7.5.3
 
 Downloading a patch from bugzilla/mozilla gives a file with the name
 attachment.cgi?id=564208. My build script requires, that a patch begins
 with 'patch'. Trying a rename to patch_attachment.cgi?id=564208 with mc
 results in patch_attachment.cgiattachment.cgi?id=564208id=564208
 
 Steps to reproduce:
 mkdir mc-test
 cd mc-test
 touch attachment.cgi?id=564208
 mc
 Point to this file, press F6, type the letter a then ESC then TAB, press
 Home, then patch_ and then the button OK.

Yes, I confirm this bug. Special chars like ? should be escaped while
autocompletion file names. Would you create a ticket in midnight-commander.org?
Shift-F6 works as expected.

-- 
Andrew
___
mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: Zip support broken ?

2011-09-26 Thread Andrew Borodin
On Thu, 22 Sep 2011 14:49:21 -0300 Fr?d?ric L. W. Meunier  wrote:
 Slackware 13.37 comes with Midnight Commander 4.7.5.2 and UnZip 6.0. When 
 I press Enter on a .zip archive, it does nothing.

Well, it's known bug: https://www.midnight-commander.org/ticket/423

Would you like test the patch
https://www.midnight-commander.org/raw-attachment/ticket/423/uzip.diff
and report result here or as the comment directly in the ticket?

Thanks!

-- 
Andrew
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: mc and ctrl-x

2011-09-14 Thread Andrew Borodin
On Wed, 14 Sep 2011 10:35:14 +0200 Ladislav Hagara wrote:
 please, is possible to give ctrl-x back as shortcut for extended
 keybindings mode. In new stable version 4.7.5.4 [1] you removed it.

Oops, sorry, that is my fault.

 According to #2586 [2] you prefer ctrl-x as shortcut for !WordRight
 action. Do you have some stats how many users really need it for
 !WordRight action?

ctrl-x is removed only in editor. In file manager in main branch
(mc-4.8.0-pre2), it works as before. When I backported #2586 to stable branch,
I removed by mistake the key binding to ExtMap1 action in [main] section
instead of EditExtMode action in [editor] section. And EditExtMode is absent
in keymap file. That is another bug.

 Imho, ctrl-x should work as shortcut for extended keybindings mode
 again, it is quite used:

Surely.

You can edit /etc/mc/mc.keymap to restore the ctrl-x behaviour in file manager:
ExtMap1 = ctrl-x

I created a ticket:
https://www.midnight-commander.org/ticket/2609

Thank you for the bugreport.

-- 
Andrew
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: mc and ctrl-x

2011-09-14 Thread Andrew Borodin
On Wed, 14 Sep 2011 14:53:10 +0200 Ladislav Hagara wrote:
 BTW, why did you edit only misc/mc.keymap.default in that ticket and not
 also misc/mc.keymap. Imho, both should be fixed.

mc.keymap is symlink to mc.keymap.default in repo. While creating the tarball,
symlinks are replaced by files which are pointed by symlinks. As a result,
mc.keymap and mc.keymap.default are identical files in tarball.

-- 
Andrew
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: What is the difference between Change time and Modify time?

2011-07-31 Thread Andrew Borodin
On Sat, 30 Jul 2011 14:10:41 -0500 (CDT) Theodore Kilgore wrote:


To answer your question, please read the stat(2) man page and find
description of change time (ctime) and modify time (mtime)

Probably, the built-in help should be more verbose about sort orders.

-- 
Andrew
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


  1   2   >