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

Completion highlighting does not work correctly when file-list is enabled #628

Open
jorgelaranjo opened this issue Aug 9, 2023 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@jorgelaranjo
Copy link

What do you want?

List files with size and modified date on a different column

Why do you want this?

So that it is easier to decide which file to open

Who else would benefit from this?

People that have several files on the same folder and want to quickly open one

How should it work?

vim

Given the following situation:

  • Folder with many files
  • Want to open files that are > than a given size.

When I perform the following steps:

  1. vim

Then I expect the following to happen:

  1. files are listed and size and modified date [or other fields if configured] are shown

As is
image

To be
image

@jorgelaranjo jorgelaranjo added the enhancement New feature or request label Aug 9, 2023
@marlonrichert
Copy link
Owner

marlonrichert commented Aug 16, 2023

That's already possible. Add the following to your .zshrc file:

zstyle ':completion:*' file-list yes

Documented here: https://zsh.sourceforge.io/Doc/Release/Completion-System.html#index-file_002dlist_002c-completion-style

With this turned on, though, the completion highlighting is not working correctly. That should be fixed.

@marlonrichert marlonrichert changed the title Auto suggest files and allow to add size, modified date etc. Completion highlighting does not work correctly when file-list is enabled Aug 16, 2023
@marlonrichert marlonrichert added bug Something isn't working good first issue Good for newcomers and removed enhancement New feature or request labels Aug 16, 2023
@jorgelaranjo
Copy link
Author

image

@marlonrichert
Copy link
Owner

Reopening, because I want to fix the highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants