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

Add option to only show filename instead of full path #29

Closed
lithammer opened this issue May 6, 2015 · 2 comments
Closed

Add option to only show filename instead of full path #29

lithammer opened this issue May 6, 2015 · 2 comments

Comments

@lithammer
Copy link

When using :Unite tag, the path/filename part is basically useless because most of it is truncated and the rest of the space os occupied by the users home folder. Basically this is what all my matches look like:

@/Users/..spfront.py

That /Users/ part is useless information, I know what folder/project I'm in. So I would like an option to have the same behaviour as when using tag/include which uses fnamemodify(path, ':t') instead of filename here.

Perhaps it would be good to have two options, one for the relative path (fnamemodify(path, ':.')) and one for just the filename (fnamemodify(path, ':t')).

Basically something like this:

Current behaviour:

screen shot 2015-05-06 at 10 29 53

g:unite_source_tag_show_fname_only = 1

screen shot 2015-05-06 at 10 30 44

g:unite_source_tag_show_relative_fname = 1

screen shot 2015-05-06 at 10 31 27

@Shougo Shougo closed this as completed in 470eff8 May 6, 2015
@Shougo
Copy link
Collaborator

Shougo commented May 6, 2015

Thanks. I implemented the feature.

@lithammer
Copy link
Author

Works great, thanks!

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

No branches or pull requests

2 participants