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

Scriptnames doesn't work with cfdo #54

Closed
rgrinberg opened this issue Sep 15, 2021 · 5 comments
Closed

Scriptnames doesn't work with cfdo #54

rgrinberg opened this issue Sep 15, 2021 · 5 comments

Comments

@rgrinberg
Copy link

For example, try running :Scriptnames followed by :cfdo echo % - nothing happens. I'd expect the filenames to be echoed.

@tpope
Copy link
Owner

tpope commented Sep 15, 2021

Looks like :cfdo only works for quickfix entries with line numbers. I don't think I want to add a |1| to every line just so :cfdo will work?

@tpope tpope closed this as completed Sep 15, 2021
@rgrinberg
Copy link
Author

That's a shame because doing something like :cfdo lvimgrepadd /foo/g % is pretty useful.

@tpope
Copy link
Owner

tpope commented Sep 15, 2021

Isn't that slow as heck?

@rgrinberg
Copy link
Author

To workaround this issue, I load scriptnames into args with a hack and vimgrep that. With just under 100 plugins, it takes no more than a couple of seconds to search everything this way.

@tpope
Copy link
Owner

tpope commented Sep 15, 2021

You could probably use scriptease#scriptnames_qflist() to do it in a less hacky way.

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