OpenTUI: Missing vim like keybind to delete sessions in v1.0.x #2445

Closed
opened 2026-02-16 17:35:40 -05:00 by yindo · 9 comments
Owner

Originally created by @Damond5 on GitHub (Nov 1, 2025).

Originally assigned to: @thdxr on GitHub.

Description

After upgrading to v1.0.7 vim like keybind to delete sessions is gone.

Used to be x, but you could also consider d.

Delete key is not a convenient key to press.

OpenCode version

v1.0.7

Steps to reproduce

  1. Open opencode
  2. Execute command /session
  3. There is no mention of x to delete
  4. Hitting x twice doesnt delete

Screenshot and/or share link

No response

Operating System

Arch Linux

Terminal

Alacritty

Originally created by @Damond5 on GitHub (Nov 1, 2025). Originally assigned to: @thdxr on GitHub. ### Description After upgrading to v1.0.7 vim like keybind to delete sessions is gone. Used to be x, but you could also consider d. Delete key is not a convenient key to press. ### OpenCode version v1.0.7 ### Steps to reproduce 1. Open opencode 2. Execute command /session 3. There is no mention of x to delete 4. Hitting x twice doesnt delete ### Screenshot and/or share link _No response_ ### Operating System Arch Linux ### Terminal Alacritty
yindo added the opentuibug labels 2026-02-16 17:35:40 -05:00
yindo closed this issue 2026-02-16 17:35:40 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3262: Similar request about customizing delete keybinds in session list modal, specifically mentions x/del keybinds for session deletion

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 1, 2025): This issue might be a duplicate of existing issues. Please check: - #3262: Similar request about customizing delete keybinds in session list modal, specifically mentions x/del keybinds for session deletion Feel free to ignore if none of these address your specific case.
Author
Owner

@maxandron commented on GitHub (Nov 1, 2025):

To add to this: the new version focuses immediately on the search functionality, which is not needed by default in my opinion, and doesn't allow searching for sessions with the letter r (because it jumps to rename).

I would prefer the default functionality to be j/k for navigation, d/x to delete, r to rename, / to jump to search

@maxandron commented on GitHub (Nov 1, 2025): To add to this: the new version focuses immediately on the search functionality, which is not needed by default in my opinion, and doesn't allow searching for sessions with the letter `r` (because it jumps to rename). I would prefer the default functionality to be j/k for navigation, d/x to delete, r to rename, / to jump to search
Author
Owner

@thdxr commented on GitHub (Nov 1, 2025):

i switched rename to ctrl+r

navigating up and down you can do with ctrl+p/n which is consistent with neovim when you have type to search + a menu (autocomplete, telescope)

we can probably make it ctrl+d to delete does that work?

@thdxr commented on GitHub (Nov 1, 2025): i switched rename to `ctrl+r` navigating up and down you can do with `ctrl+p/n` which is consistent with neovim when you have type to search + a menu (autocomplete, telescope) we can probably make it `ctrl+d` to delete does that work?
Author
Owner

@AbbasSrour commented on GitHub (Nov 1, 2025):

I mentioned this also on discord, we need vim bindings make a lot more sense in tui application.

@AbbasSrour commented on GitHub (Nov 1, 2025): I mentioned this also on discord, we need vim bindings make a lot more sense in tui application.
Author
Owner

@Sawangg commented on GitHub (Nov 1, 2025):

I personally used x to delete sessions quite a lot so this would be nice if added back to be consistent with vim bindings

@Sawangg commented on GitHub (Nov 1, 2025): I personally used x to delete sessions quite a lot so this would be nice if added back to be consistent with vim bindings
Author
Owner

@Damond5 commented on GitHub (Nov 1, 2025):

i switched rename to ctrl+r

navigating up and down you can do with ctrl+p/n which is consistent with neovim when you have type to search + a menu (autocomplete, telescope)

we can probably make it ctrl+d to delete does that work?

Sounds like that would work and make it consistent with the current keybinding scheme in opencode.

Although I would personally much prefer keybinds closer to the home row, that doesnt require the use of ctrl all the time.

@Damond5 commented on GitHub (Nov 1, 2025): > i switched rename to `ctrl+r` > > navigating up and down you can do with `ctrl+p/n` which is consistent with neovim when you have type to search + a menu (autocomplete, telescope) > > we can probably make it `ctrl+d` to delete does that work? Sounds like that would work and make it consistent with the current keybinding scheme in opencode. Although I would personally much prefer keybinds closer to the home row, that doesnt require the use of ctrl all the time.
Author
Owner

@thdxr commented on GitHub (Nov 1, 2025):

pushed the changes - we can't use single char keybinds here because of search, we have to balance different needs

@thdxr commented on GitHub (Nov 1, 2025): pushed the changes - we can't use single char keybinds here because of search, we have to balance different needs
Author
Owner

@Damond5 commented on GitHub (Nov 1, 2025):

Thanks, impressively quick response and execution!

Yes, that would require a modal approach, like one of the suggestions above: starting in normal mode with j/k navigation and entering search with /.

@Damond5 commented on GitHub (Nov 1, 2025): Thanks, impressively quick response and execution! Yes, that would require a modal approach, like one of the suggestions above: starting in normal mode with j/k navigation and entering search with /.
Author
Owner

@Damond5 commented on GitHub (Nov 2, 2025):

@thdxr I think something went wrong.

Now in v1.0.11, hitting ctrl + d the 2nd time doesnt delete the session.

I can open a new issue if thats better.

@Damond5 commented on GitHub (Nov 2, 2025): @thdxr I think something went wrong. Now in v1.0.11, hitting ctrl + d the 2nd time doesnt delete the session. I can open a new issue if thats better.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2445