Re: Ctrl+J in mc

2019-01-03 Thread Jan Synacek via mc-devel
On Fri, Nov 16, 2018 at 11:40 AM Ivan Pizhenko via mc-devel
 wrote:
>
> Hi, I'm wondering why following happens:
> In Ubuntu and FreeBSD, when I am pressing Ctrl+J in MC, it puts name
> of file on which file cursor is currently on. But this doesn't work in
> CentOS and RHEL.
> How to fix that in CentOS and RHEL?
> Ivan.

Hi,

Ctrl+j usually generates the ascii character 10, which is basically
the same as pressing Enter, unless (I guess) it's redefined in the
terminfo database or, maybe, is a setting of the X terminal emulator.
The escape sequences are usually generated by pressing Alt+. So,
as others already pointed out, Alt+Enter will generate the same
sequence as pressing Esc and then Enter. In fact, you can use this
behaviour whenever you want to press Esc first (works great in Vim,
for example - try pressing Alt+h when in insert mode).

As to why Ctrl+j generates an escape sequence on other systems, I
don't know. I find that behaviour quite confusing.

Hope this explanation helps a bit.

Cheers,
-- 
Jan Synacek
Software Engineer, Red Hat
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Ctrl+J in mc

2019-01-03 Thread Ivan Pizhenko via mc-devel
Thanks! Didn't know about Alt+Enter.
Looks like in Ubuntu Ctrl+J generates Alt+Enter and in RHEL/CentOS just Enter
пт, 16 лист. 2018 о 13:18 Thomas Zajic  пише:
>
> * Ivan Pizhenko via mc-devel, 28.10.18 21:52
>
> > Hi, I'm wondering why following happens:
> > In Ubuntu and FreeBSD, when I am pressing Ctrl+J in MC, it puts name
> > of file on which file cursor is currently on. But this doesn't work in
> > CentOS and RHEL.
> > How to fix that in CentOS and RHEL?
> > Ivan.
>
> Never heard about Ctrl+j, I always used Alt+Enter for that purpose.
> Alt+a does the same thing for the path, BTW (just in case you didn't
> know). :-)
>
> HTH,
> Thomas
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel


Re: Ctrl+J in mc

2018-11-16 Thread Thomas Zajic
* Ivan Pizhenko via mc-devel, 28.10.18 21:52

> Hi, I'm wondering why following happens:
> In Ubuntu and FreeBSD, when I am pressing Ctrl+J in MC, it puts name
> of file on which file cursor is currently on. But this doesn't work in
> CentOS and RHEL.
> How to fix that in CentOS and RHEL?
> Ivan.

Never heard about Ctrl+j, I always used Alt+Enter for that purpose.
Alt+a does the same thing for the path, BTW (just in case you didn't
know). :-)

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


Ctrl+J in mc

2018-11-16 Thread Ivan Pizhenko via mc-devel
Hi, I'm wondering why following happens:
In Ubuntu and FreeBSD, when I am pressing Ctrl+J in MC, it puts name
of file on which file cursor is currently on. But this doesn't work in
CentOS and RHEL.
How to fix that in CentOS and RHEL?
Ivan.
___
mc-devel mailing list
https://mail.gnome.org/mailman/listinfo/mc-devel