-
Notifications
You must be signed in to change notification settings - Fork 100
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
Add option to show hidden files and directories in IFS browser #1839
Add option to show hidden files and directories in IFS browser #1839
Conversation
@chrjorgensen Any chance you can fix the conflict? 😬 |
@worksofliam Conflict fixed... |
Initial reaction and usage of the code is awesome. I need to play with it more before I merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good enhancement!
I have a few suggestions to make and a question:
- Shouldn't a button be added to the browser to toggle between hide/show hidden files? I'm quite sure users will either miss the feature of hit
ctrl+h
by mistake and ask why some files disappeared 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments which I don't expect any changes for, because I love this feature! I have so many hidden folders I don't care about. But, do see Seb's comments for minor fixes and then assign a review back to me. Thanks!
package.json
Outdated
}, | ||
{ | ||
"command": "code-for-ibmi.ifs.toggleShowHiddenFiles", | ||
"when": "code-for-ibmi:connected && view == ifsBrowser" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this when
clause in the right place? Even if my focus on was on the IFS Browser, I couldn't get it to show up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will remove the command and add an icon in the IFS browser instead.
Co-authored-by: Sébastien Julliand <sebjulliand@gmail.com>
@worksofliam The keybinding has been removed and replaced by an icon in the IFS browser navigation menu, as suggested by @sebjulliand Feel free to test and merged, if approved. 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrjorgensen Thanks for taking my shortcut consideration into account! I prefer the icon over the shortcut for sure due to it already being used on Mac.
Works good to me. Thanks!
Changes
Up until now the IFS browser shows all files and directories, even the hidden ones with a
.
in front of the name.This PR will add an option to show or hide these files and directories in the IFS browser:
The option can be changed in the connection settings:
ALWAYS_SHOW_FILES
inifsBrowser.ts
) to always show.vscode
and.gitignore
Checklist