Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<c-h> show hidden file doesn't work in ranger in konsole and xterm #1083

Closed
kyawthusoe45 opened this issue Feb 18, 2018 · 2 comments
Closed
Labels

Comments

@kyawthusoe45
Copy link

kyawthusoe45 commented Feb 18, 2018

Runtime Environment

  • Operating system and version: Arch Linux latest as of now
  • Terminal emulator and version: konsole 17.2.2 and xterm
  • Python version: Python version: 3.6.4 (default, Jan 5 2018, 02:35:40) [GCC 7.2.1 20171224]
  • Ranger version/commit: ranger version: ranger-stable 1.9.0
  • Locale: Locale: en_US.UTF-8

Current Behavior

https://bugs.kde.org/show_bug.cgi?id=390666
I reported it to KDE thinking it's the problem. I asked for advice concerning this bug in KDE irc.
I type cat in konsole and press c-h, it worked and show ^H.
I type stty -a in konsole and there's ^H nowhere.
I open emacs in konsole with -nw option. I can use c-h fine.
I tried it in tty2. ranger is fine in there. c-h works in tty2
I type echo $TERM in konsole and tty2.
In konsole, it's xterm-256color. In tty2, it's just linux.
It relieved me that there's no problem in KDE.

Expected Behavior

https://bugs.kde.org/show_bug.cgi?id=390666

Context

Possible Solutions

Steps to reproduce

  1. open ranger in xterm or konsole,
  2. type c-h which is to show hidden file
  3. doesn't show hidden file, zh work, other combination of ctrl works in ranger

Traceback


@toonn toonn added the bug label Feb 18, 2018
@yinflying
Copy link

Just replace the map <c-h> with <bs> in ~/.config/ranger/rc.conf .
The reason you should ref the issue:
#559

@toonn
Copy link
Member

toonn commented Apr 23, 2018

Note that this only works if <c-h> emits ^H for you. For me it emits ^? whether I'm in or out of tmux.

toonn added a commit to toonn/ranger that referenced this issue Apr 24, 2018
<C-h> is variously interpreted as ^H or ^?, by copying the mapping to
both <backspace> and <backspace2> it should work either case.

Fixes ranger#1083
@hut hut closed this as completed in #1152 May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants