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

how to open file in current window #414

Open
kulakilam opened this issue Aug 13, 2023 · 4 comments
Open

how to open file in current window #414

kulakilam opened this issue Aug 13, 2023 · 4 comments

Comments

@kulakilam
Copy link
Contributor

kulakilam commented Aug 13, 2023

reproduce steps:

  1. execute :FloatermNew fzf
  2. select a file and click enter

expect to open in current window, not an new window.

@AlexW00
Copy link

AlexW00 commented Oct 24, 2023

+1

@Rusteam
Copy link

Rusteam commented Mar 12, 2024

have you tried floaterm path/to/file?

@aleph-ra
Copy link

This is expected behaviour as the default for g:floaterm_opener is set to 'split'. You can change this global variable to 'edit' to open in the same window.

For neovim its done with vim.g.floaterm_opener = 'edit'. It can be made default by calling a setup function in your plugin manager.

@Archdsenna
Copy link

This is expected behaviour as the default for g:floaterm_opener is set to 'split'. You can change this global variable to 'edit' to open in the same window.这是预期行为,因为 g:floaterm_opener 默认设置为 'split' 。您可以将此全局变量更改为 'edit' 以在同一窗口中打开。

For neovim its done with vim.g.floaterm_opener = 'edit'. It can be made default by calling a setup function in your plugin manager.对于 neovim 来说,它是用 vim.g.floaterm_opener = 'edit' 完成的。可以通过调用插件管理器中的设置函数将其设置为默认值。

This is expected behaviour as the default for g:floaterm_opener is set to 'split'. You can change this global variable to 'edit' to open in the same window.

For neovim its done with vim.g.floaterm_opener = 'edit'. It can be made default by calling a setup function in your plugin manager.

Thank you very much, very useful!

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

5 participants