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

Better user experience for the filemanager plugin #19

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

X-Ryl669
Copy link

This happens on top of the previous PR that was allowing opening on files on new tab (and via Enter).

This improves the user experience of the file manager in two way:

  1. Replace the textual file tree with icons for directories and files (instead of + - and nothing)
  2. Allow quick filtering to easy jump to the file to open (in a folder, type "abc" while the manager is opened and the cursor will jump to the first file with base name starting with "abc"), press enter to open it. If you don't type anything for 2s, the previous filtered pattern is forgotten, like usual file explorer on Windows and MacOSX.

This gives this kind of visual changes:
image

Please notice that there's a bug in micro's lua binding that's independent of this PR, when using time.AfterFunc the callback function's modifications to any buffer and InfoBar isn't refreshed until the next user event. I think it could be solved either generically (by calling screen.Display() in go code after a timer elapsed), or manually, by binding the screen.Display function call as a command that's callable by a lua script). Either method would work.

This adds a configuration option to allow filemanager to open a selected file in a new tab instead of a new split.
Update documentation for new features
Update version
Use icons for file manager instead of plain text
Also allow filtering while typing the filename directly
@lazev
Copy link

lazev commented Jul 13, 2024

Hi. Congrats on the enhancements. Is there a chance to open files and folders with a mouse click or double click? At least for me, it doesn't work.

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

Successfully merging this pull request may close these issues.

2 participants