Skip to content

Keybindings to close current tab? #247

@lararosekelley

Description

@lararosekelley

I'm hoping to write a function to allow me to redefine evil-quit in Evil mode so that when I type :q it does the following:

  1. Close current window if more than one window
  2. Close current centaur tab if more than one tab in current tab set
  3. Quit emacs if only one window/one tab

To do this, I need some way to call centaur-tabs-buffer-close-tab, but I'm not sure how to get the currently active tab to pass along - I noticed that centaur-tabs-do-close only responds to a mouse event. Is there a way to replicate that behavior programatically without the mouse?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions