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

How do I disable see hidden files? #2973

Open
acampove opened this issue May 15, 2024 · 4 comments
Open

How do I disable see hidden files? #2973

acampove opened this issue May 15, 2024 · 4 comments

Comments

@acampove
Copy link

Runtime Environment

  • Operating system and version: el9.3
  • Terminal emulator and version: terminator 2.1.1
  • Python version: Python 3.9.18
  • Ranger version/commit: ranger 1.9.3
  • Locale:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Current Behavior

There is a combination of keys that I still haven't figure out what it is; which I type by mistake and enables the view of hidden files. Viewing hidden files makes the machine freeze, given that there are many hiden files, I assume.

Expected Behavior

I would like to disable seeing hidden files.

Context

I have to wait 5 to 10 minutes to get the machine to unfreeze.

Possible Solutions

Steps to reproduce

Traceback


@Rom1deTroyes
Copy link

Rom1deTroyes commented May 16, 2024

There is a combination of keys that I still haven't figure out what it is; which I type by mistake and enables the view of hidden files.

By default, pressing z h toggle show_hidden file.

@acampove
Copy link
Author

Hi, @Rom1deTroyes

Thanks, that's one combination of keys that does it. However I am sure I did not press zh. There is something else that is making this happen that is been pressed by mistake and maybe once every two days with my workflow. I work with a remote server and there are many hidden files. Every time this combination happens, the machine freezes for a few minutes trying to load everything that is hidden. I rarely need to toggle show-hidden, do you know how this can be turned off?

Cheers.

@thalesnunes
Copy link

You can go on your rc.conf file and edit the line:
set show_hidden true
to
set show_hidden false

This will make it hide files on default. Additionally, if you don't want to accidentally press zh and toggle hidden files again, you can comment the line map zh set show_hidden! using a # in the beggining

@acampove
Copy link
Author

Dear @thalesnunes ,

Thanks, I will remove that option. I will come back if I keep seeing this problem though :D

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants