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

Add tabout of paired brackets #1587

Closed
eugenesvk opened this issue Jan 27, 2022 · 2 comments
Closed

Add tabout of paired brackets #1587

eugenesvk opened this issue Jan 27, 2022 · 2 comments
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@eugenesvk
Copy link

There is already a great description of this feature that I miss in Helix in this discussion, excerpted below, so I'm just following the suggestion of creating a feature request based on that

Tabout actually takes you out of '' or "" or () ... in insert mode. For
example if you want to write print("something"); then in simpler steps:

  • First you write print
  • Then you write ( which get auto-paired to ()
  • Now your current state is print(|)(| represents cursor position)
  • You write ": print("|")(| represents cursor position)
  • Now you type something: print("something|")(| represents cursor position)
  • Notice that you are in insert mode, at the end of something and you have to
    move beyond "). Here you can either get into normal mode, go to the end, get
    in insert mode and type ; to complete the task or you can type ") which will take you to the end so you can type ; to complete the task.
  • Instead of the two ways given above you can just press tab twice at
    print("something|")(| represents cursor position) to move to the end
    print("something")|, still in insert mode to type ; and complete the task.
@eugenesvk eugenesvk added the C-enhancement Category: Improvements label Jan 27, 2022
@kirawi kirawi added the A-helix-term Area: Helix term improvements label Jan 27, 2022
@xcpky
Copy link

xcpky commented May 31, 2022

I have the same need.

@kirawi
Copy link
Member

kirawi commented Mar 10, 2024

This was implemented by #4443

@kirawi kirawi closed this as completed Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

3 participants