exrok / ivy-rich

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

1 More friendly interface for ivy

Currently only ivy-switch-buffer is supported.

1.1 Usage

(require 'ivy-rich)
(ivy-set-display-transformer 'ivy-switch-buffer 'ivy-rich-switch-buffer-transformer)

If you want to align the virtual buffers, try

(setq ivy-virtual-abbreviate 'full
      ivy-rich-switch-buffer-align-virtual-buffer t)

To abbreviate paths using abbreviate-file-name (e.g. replace “/home/username” with “~”)

(setq ivy-rich-path-style 'abbrev)

Note that this may not affect remote files. To always show absolute path, set it to =’full= or =’absolute=. Any other value will show the file path relative to the project root or default-directory.

Use M-x customize-group ivy-rich to see more options.

2 Screenshots

2.1 ivy-switch-buffer

screenshots/buffer.png

3 Notice

For better user experience, a large *-max-length should be set.

About


Languages

Language:Emacs Lisp 100.0%