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

Distinguish between files and directories in narrow action #557

Closed
petobens opened this Issue Jan 8, 2019 · 9 comments

Comments

Projects
None yet
3 participants
@petobens
Copy link

petobens commented Jan 8, 2019

Currently if I use the narrow action, for instance with :Denite directory_rec, there is no visual indication to distinguish between files and directories:

screenshot_2019-01-08_16 43 48
It would be good if directories (such as source or kind in the example above) had a visual hint that they are indeed directories (something like source/ or showing dir source instead of file source).
Thanks!

@petobens

This comment has been minimized.

Copy link

petobens commented Jan 8, 2019

Also I would be awesome if I could return to the previous list of candidates:
i) I select some directory such as source and press <CR> to list its contents
ii) press something C-b (back) to return to the previous original list of candidates (i.e the upper directory /python3/denite where the source dir lives)

@Shougo Shougo closed this in 805d1e0 Jan 10, 2019

@petobens

This comment has been minimized.

Copy link

petobens commented Jan 10, 2019

Thanks for the change. Now directories correctly have a trailing slash as in repos/:
screenshot_2019-01-10_00 21 48

However it still says file instead of directory. Can that be fixed?

On the other hand have you seen my other comment about going back to the previous path? i.e having an unnarrow action:

Also I would be awesome if I could return to the previous list of candidates:
i) I select some directory such as source and press to list its contents
ii) press something C-b (back) to return to the previous original list of candidates (i.e the upper directory /python3/denite where the source dir lives)

@shnjtk

This comment has been minimized.

Copy link

shnjtk commented Jan 10, 2019

@petobens
I can go back to the upper directory with C-w.

@petobens

This comment has been minimized.

Copy link

petobens commented Jan 10, 2019

@shnjtk how's that mapping defined?

@shnjtk

This comment has been minimized.

Copy link

shnjtk commented Jan 10, 2019

@petobens
Sorry, here is my mapping.

call denite#custom#map('insert', '<C-w>', '<denite:move_up_path>', 'noremap')
@petobens

This comment has been minimized.

Copy link

petobens commented Jan 12, 2019

@shnjtk thank you!

The only pending thing then is this @Shougo:

However it still says file instead of directory. Can that be fixed?

@Shougo

This comment has been minimized.

Copy link
Owner

Shougo commented Jan 14, 2019

However it still says file instead of directory. Can that be fixed?

It is feature of denite. I don't change the behavior.

@Shougo

This comment has been minimized.

Copy link
Owner

Shougo commented Jan 14, 2019

On the other hand have you seen my other comment about going back to the previous path? i.e having an unnarrow action:

Hm. I may add the feature...

@petobens

This comment has been minimized.

Copy link

petobens commented Jan 14, 2019

Hm. I may add the feature...

Thank you! It's a bit confusing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment