Skip to content

How to filter buffer list also by path in ivy-switch-buffer? #120

@spavlovich001

Description

@spavlovich001

I'm use:

(setq ivy-rich-display-transformers-list
        '(ivy-switch-buffer
          (:columns
           (
            (ivy-rich-candidate (:width 50))
            (ivy-rich-switch-buffer-indicators (:width 40 :face error :align right))
            (ivy-rich-switch-buffer-project (:width 15 :face success))
            (ivy-rich-switch-buffer-path (:width (lambda (x) (ivy-rich-switch-buffer-shorten-path x (ivy-rich-minibuffer-width 0.3))))))
           :predicate
           (lambda (cand) (get-buffer cand)))))

If I open two files:

1. some_path1/filename1
2. some_path/filename2

I can filter buffer by name(press fi 1 or fi 2), but I not can filter by path + name (press so path1 or so path2). How to do this? Why is this necessary? Case: I open two files(usualy more two file):

1. some_path1/filename1
2. some_path2/filename1

And I need filter name + path: press me1 pa1(some_path1/filename1 or me1 pa2(some_path2/filename1)

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