-
Notifications
You must be signed in to change notification settings - Fork 81
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
How to use gd gf inside floating window #208
Labels
Comments
Put this code into function s:open_in_normal_window() abort
let f = findfile(expand('<cfile>'))
if !empty(f) && has_key(nvim_win_get_config(win_getid()), 'anchor')
FloatermHide
execute 'e ' . f
endif
endfunction
nnoremap <silent><buffer> gf :call <SID>open_in_normal_window()<CR> or use function s:open_in_normal_window() abort
let f = findfile(expand('<cfile>'))
if !empty(f) && has_key(nvim_win_get_config(win_getid()), 'anchor')
FloatermHide
execute 'e ' . f
endif
endfunction
autocmd FileType floaterm nnoremap <silent><buffer> gf :call <SID>open_in_normal_window()<CR> |
I feel it would be awesome if the floaterm supports |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to use gd gf on file links inside the floating terminal, but then nvim switch to a new or an existing buffer inside the floating window itself.
The text was updated successfully, but these errors were encountered: