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

gF works but c-w f doesn't #16

Open
ghost opened this issue Feb 13, 2018 · 2 comments
Open

gF works but c-w f doesn't #16

ghost opened this issue Feb 13, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 13, 2018

<c-w>f doesn't take me to the line number within the file, whereas gF does, but only within the same window.

My use case is, from bash, going:

somegrep somestring | vim -

which gives me a list of files. If i were to gF on a result, I get the yes/no/cancel dialog to confirm I want to lose that page forever. I don't - hence my use of <c-w>f to open the result in another window. Ideally vim-fetch would do this AND jump to the correct line within that file.

@kopischke
Copy link
Collaborator

kopischke commented Feb 15, 2018

Duh, I wasn’t even aware of the CTRL-W file lookup commands until now. This looks tricky as the commands perform a lookup of the file before splitting, so vim-fetch will have to override the whole operation. I’ll file your suggestion under future enhancements, but I must warn you I cannot provide an ETA, as I have no inkling of when I will have time to invest into this plugin again.

@kopischke kopischke self-assigned this Feb 15, 2018
@ghost
Copy link
Author

ghost commented Feb 19, 2018

That's ok - workaround is just to do:

<c-w>vgF

@kopischke kopischke reopened this Feb 19, 2018
@kopischke kopischke added this to the Future plans milestone Mar 4, 2018
@kopischke kopischke removed their assignment May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant