Skip to content

ajrosen/tab-bar-buffers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

MELPA

tab-bar-buffers

This package piggy-backs on tab-bar-mode to implement a simple buffer manager. Instead of managing tabs it manages buffers.

tab-bar-buffers

Installation

Add the following tor your init file.

(tab-bar-buffers-mode t)

Or enable tab-bar-buffers-mode from the Easy Customization form.

(customize-group 'tab-bar-buffers)

Customization

tab-bar-buffers-mode has a few customization items of its own.

  • Uninteresting buffers are buffer names that are not interesting
  • Uninteresting prefixes are buffer name prefixes that are not interesting (default (" " "*"))
  • Interesting buffers are buffers that are always interesting

If tab-bar-buffers-mode determines a buffer is uninteresting, it will not be shown in the tab bar.

Visible buffers are always shown.

Some of tab-bar-mode's customization options are also relevant for tab-bar-buffers.

  • tab-bar-close-button-show
  • tab-bar-position
  • tab-bar-select-tab-modifiers
  • tab-bar-tab-hints

If tab-bar-tab-name-function is tab-bar-tab-name-truncated, then tab-bar-tab-name-truncated-max and tab-bar-tab-name-ellipsis are honored.

Faces

The face for tab-bar-tab is used for current-buffer. tab-bar-tab-inactive is used for all other buffers.

Bindings

Key and mouse bindings set by tab-bar-mode are preserved by advising some of tab-bar-mode's commands around their tab-bar-buffers equivalent, as defined by tab-bar--define-keys.

  • tab-new -> tab-bar-buffers-new-buffer
  • tab-bar-select-tab -> tab-bar-buffers-select-buffer
  • tab-next -> tab-bar-buffers-next
  • tab-previous -> tab-bar-buffers-prev
  • tab-recent -> tab-bar-buffers-recent
  • tab-last -> tab-bar-buffers-last
  • tab-bar-close-tab -> tab-bar-buffers-close-buffer

About

Use tab-bar-mode as a buffer manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published