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 detach from the IronFocus window #356

Closed
sntgluca opened this issue Dec 26, 2023 · 5 comments
Closed

How to detach from the IronFocus window #356

sntgluca opened this issue Dec 26, 2023 · 5 comments
Labels
need-investigation Unsure of where the problem is

Comments

@sntgluca
Copy link

Dear all,

I'm walking the first steps with Iron, and enjoying it...
...until I got stuck on a simple problem...

After running some interactive commands while in focus mode,
I am not aware of any way to detach from it, and continue writing code.

Is there a simple key combination I am not able to find?
Thank you!

@jotaefe0
Copy link

jotaefe0 commented Feb 4, 2024

Did you tried Ctrl + "-" This should return you to Normal Mode.
Also remember you can move through windows splits using Ctrl+W and "hjkl"

@sntgluca
Copy link
Author

Dear @jotaefe0 ,

thanks for the suggestion!
I am afraid it didn't work.

I am not sure I explained what I am trying to do well...
As long as I use the REPL from the neovim editor, i.e. I send code to the REPL, everything is fine.

But if I get into my ipython session to write some test code from within, I can't get out. the vim bindings don't work, as I am inside ipython at that moment.
I guess there must be a way to detach without closing the session but I can't find it...

Any other idea is still welcome :)

@raffaem
Copy link

raffaem commented Feb 14, 2024

@sntgluca
Copy link
Author

sntgluca commented Mar 2, 2024

Dear all,
still no luck, at least for me...

Could you replicate the behaviour at all?

What do you do differently? Do you just use the hot-keys and never type anything interactively?

@hkupty hkupty added the need-investigation Unsure of where the problem is label Mar 31, 2024
@sntgluca
Copy link
Author

Hi all,

I learnt that I need to exit from the terminal mode.

A couple of discussion on the internet show that the solution is to use <C-> - maybe map it to something of our liking.

My personal choice, after I setup the Tmux navigator, has been

vim.keymap.set("t", "<space>F", "<C-\\><C-n>:TmuxNavigateLeft<CR>", opts)

Hope it helps someone else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-investigation Unsure of where the problem is
Projects
None yet
Development

No branches or pull requests

4 participants