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

Use of FTermToggle #94

Open
pmatulis opened this issue Oct 6, 2023 · 4 comments
Open

Use of FTermToggle #94

pmatulis opened this issue Oct 6, 2023 · 4 comments

Comments

@pmatulis
Copy link

pmatulis commented Oct 6, 2023

How is FTermToggle used? I can open a terminal with FTermOpen but I would like to temporarily return to the editor by toggling the terminal off, with the intention to switch back to it soon after. However I cannot issue the toggle command while in terminal mode no matter how hard I try.

@xixiaofinland
Copy link

In insert in terminal mode, you need <C-> to go to normal mode. This is vim/nvim policy instead of FTerm. You can make hotkeys to simplify keystrokes.

I studied the Fterm code and created my own version of the terminal, SFTerm. My need is to send commands to the terminal without leaving the current working window.

The most benefit for me, after going through the code base here is, 1) how to write OO code in Lua 2) how to create and interact with a terminal in Lua/Nvim.

@pmatulis
Copy link
Author

pmatulis commented Oct 6, 2023

How do I toggle with the Ctrl key?

The SFTerm project is strangely associated with Salesforce, which is very offputting. There appear to be built-in commands for it.

@xixiaofinland
Copy link

xixiaofinland commented Oct 6, 2023

I wrote <C-\><C-n>, no idea why GH turns it...
in Terminal mode, you need the above to enter the normal mode where you can switch windows, run hotkeys etc.

my SFTerm is tailored for Salesforce. One thing it does is to send commands to terminal without activating the terminal window nor enter the insert mode of it.

@pmatulis
Copy link
Author

pmatulis commented Oct 6, 2023

Okay, I understand. Thank you.

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