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

expand returns an empty string #41

Closed
bpingris opened this issue Aug 6, 2020 · 3 comments
Closed

expand returns an empty string #41

bpingris opened this issue Aug 6, 2020 · 3 comments

Comments

@bpingris
Copy link

bpingris commented Aug 6, 2020

Hello !

When I'm in the CHADtree buffer, if I call the expand function, it returns me an empty string.

: echom expand('%')

It would be great if it could return something like 'CHADtree' as it's useful for some custom behaviors.

For instance, I'm trying to not use the CHADtree buffer if I open a file with fzf.

With nerdtree you can do something like this

@bpingris bpingris changed the title expand return an empty string expand returns an empty string Aug 6, 2020
@ms-jpq
Copy link
Owner

ms-jpq commented Aug 6, 2020

5248fcb

done

@ms-jpq ms-jpq closed this as completed Aug 6, 2020
@ms-jpq
Copy link
Owner

ms-jpq commented Aug 6, 2020

SORRY IT HAD A BUG I NEED TO REVERT IT.

@ms-jpq ms-jpq reopened this Aug 6, 2020
@ms-jpq
Copy link
Owner

ms-jpq commented Jan 21, 2021

Please use &ft == 'CHADTree'

I didn't set a buffer name because some plugins cough cough netrw will try to expand(<afile>) on BufEnter and run code. I don't want to cause unnecessary conflicts.

@ms-jpq ms-jpq closed this as completed Jan 21, 2021
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