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

Feature: Shortcut to Show/hide dot files #10458

Closed
mimoguz opened this issue Nov 13, 2022 · 8 comments
Closed

Feature: Shortcut to Show/hide dot files #10458

mimoguz opened this issue Nov 13, 2022 · 8 comments

Comments

@mimoguz
Copy link

mimoguz commented Nov 13, 2022

What feature or improvement do you think would benefit Files?

Dot files are *nix hack to hide files. Shouldn't their visibiliy also can be toggled using the "show hidden items" toggle and ctrl+h shortcut?

Currently the user needs to go to settings dialog each time they want to change the visibility of the dot files. Since, no thanks to multi-platform apps' mishandling of config/user data paths, now dot files are everywhere, I think that feature (it's very helpful btw, thanks for implementing it) should be streamlined.

Requirements

  • Toggle the dot files' visibility using the same toggle button and shortcut used for hidden files.
  • If desired, add an option to turn this behaviour on/off.

Files Version

Version: 2.3.12.0

Windows Version

Windows 11 22H2 22621.819

Comments

No response

@mimoguz
Copy link
Author

mimoguz commented Nov 13, 2022

Alternatively, the "show dot files" setting can be an enum with three members: hidden, visible, and "same as hidden files and folders".

@mimoguz
Copy link
Author

mimoguz commented Nov 13, 2022

Alternatively, the "show dot files" setting can be an enum with three members: hidden, visible, and "same as hidden files and folders".

I just went ahead and implemented this (hastily, with some missing parts and junk left behind): Commit link. What do you think?

@yaira2
Copy link
Member

yaira2 commented Nov 13, 2022

Dot files are not the same as hidden files, I'm interested in hearing more about your use case for constantly toggling the setting on and off.

@yaira2 yaira2 added the needs - additional info Needs more information from the reporter label Nov 13, 2022
@mimoguz
Copy link
Author

mimoguz commented Nov 13, 2022

Dot files are not the same as hidden files

Technically, you're correct, they are not the same. But they accomplish the same thing in their respective worlds. On KDE file manager, Dolphin, the option to show dot files is even labeled as "Show Hidden Files".

I'm interested in hearing more about your use case for constantly toggling the setting on and off.

What is the use case for constantly toggling hidden items? Under my user folder, there are 51 dot folders and 8 dot files, and some of them belong to Microsoft apps!. They should have been under AppData, but they are not. The java project I'm currently working on has 3 dot folders: .git, .github, .idea, And then there are .gitignore and .editorconfig files. They should be hidden by default, but they are not (edit: well, .git is). Most of the time I don't need to see them, like I don't need to see the "regular" hidden files, they are just visual noise. But sometimes I need to see them, just like sometimes I need to see the regular hidden files. Files has a quick toggle and a shotcut to show/hide hidden items, and I just thought that those can be used to show/hide dot files too.

Anyway, thanks!. And sorry for my broken English.

@yaira2
Copy link
Member

yaira2 commented Nov 13, 2022

If we can add a shortcut for this, what would you suggest?

@mimoguz
Copy link
Author

mimoguz commented Nov 13, 2022

If we can add a shortcut for this, what would you suggest?

Ctrl + .

🙂

@yaira2 yaira2 changed the title Show/hide dot files together with hidden files Feature: Shortcut to Show/hide dot files Nov 13, 2022
@yaira2 yaira2 removed the needs - additional info Needs more information from the reporter label Nov 13, 2022
@yaira2 yaira2 moved this to 🆕 New in Files task board Nov 13, 2022
@yaira2 yaira2 moved this from 🆕 New to 🔖 Ready to build in Files task board Nov 13, 2022
@cinqmilleans
Copy link
Contributor

A feature to modify hotkeys is in the works. This will also allow keyboard shortcuts to be assigned to commands that do not have them by default.

@yaira2
Copy link
Member

yaira2 commented Mar 26, 2023

Merging with #11481

@yaira2 yaira2 closed this as completed Mar 26, 2023
@github-project-automation github-project-automation bot moved this from 🔖 Ready to build to ✅ Done in Files task board Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants