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

Jump forward <C-i> just switch buffer #1551

Closed
dvogt23 opened this issue Sep 8, 2022 · 9 comments
Closed

Jump forward <C-i> just switch buffer #1551

dvogt23 opened this issue Sep 8, 2022 · 9 comments

Comments

@dvogt23
Copy link

dvogt23 commented Sep 8, 2022

Describe the bug
After jumping through files with <C-o> it should be possible to jump forward with <C-i> but this just jump to the next buffer, instead of forward the jumplist.

To Reproduce
Steps to reproduce the behavior:

  1. Open source code file with lsp included
  2. Jump to definition of a function usage
  3. Jump deeper into other definitions
  4. Jump back sometime with <C-o>
  5. Jump "forward" with <C-i> (just goto next buffer instead)

Expected behavior
Jump forward in jumplist...

Screenshots
I did just goto definition and jump back with C-o. With C-i wanna jump forward, but it move to next buffer.

Kapture 2022-09-08 at 15 22 39

BTW same for jump between search with /text and n sometimes jump back and forward not possible...

@Akianonymus
Copy link
Contributor

Is this different from the behaviour with nvim -u None ?

@dvogt23
Copy link
Author

dvogt23 commented Sep 9, 2022

Ahw damn, its missing in nvim 😢 vim -u None works ...

@dvogt23 dvogt23 closed this as completed Sep 9, 2022
@Akianonymus
Copy link
Contributor

@dvogt23 Maybe create a issue in neovim github repo.

@dvogtfstr
Copy link

ye will do... doc says it should be possible https://neovim.io/doc/user/motion.html#CTRL-I

@anstadnik
Copy link

The problem is that if <Tab> is mapped it also maps <C-i> which is a vital feature of nvim. Link
Adding <Tab> to disabled mapping list fixed the issue, though IMHO it should not be mapped by default.

@fernandovmacedo
Copy link

CTRL-i and <TAB> works fine in Neovim. To fix the issue in Nvchad, you have to change the mapping of <TAB> in lua/core/mappings.lua:85.

I have changed the original mapping to S-TAB and deleted the goto prev buffer that was mapped to S-TAB.

@gam-phon
Copy link

gam-phon commented May 19, 2023

Using Mac, in Alacritty config file:

key_bindings:
   - { key: I, mods: Control, chars: "\x1b[105;6u" }

This fix the issue for me. Now I can use Tab and Ctrl-I

@LinuxIsCool
Copy link

LinuxIsCool commented Feb 2, 2024

@gam-phon You are a genius. Thanks for sharing that!!! So amazing to be able to have <c-i> seperate from <TAB>

BTW I'm on linux and it's working.

@gam-phon
Copy link

gam-phon commented Feb 4, 2024

@LinuxIsCool Thanks. I am happy that was helpful.

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

7 participants