waymondo/frog-jump-buffer

frog-jump-buffer-current-ignore-buffers incorrectly filters similarly named buffers

geza-herman opened this issue · 1 comments

frog-jump-buffer-current-ignore-buffers uses the name of current buffer verbatim. This means that if there are other buffers which have a name which contains the name of the current buffer then those buffers will also be filtered. For example, if I'm editing t.py, then mat.py isn't included in the buffer list, because mat.py matches t.py. I fixed this problem like this, but I'm not sure it's the proper way to do it:

  (defun frog-jump-buffer-current-ignore-buffers ()
    (-non-nil
     (append frog-jump-buffer-ignore-buffers
             (list frog-jump-buffer-current-filter-function)
             (unless frog-jump-buffer-include-current-buffer
               (list (concat "\\`" (buffer-name (current-buffer)) "\\'"))))))

Thanks for the report. I am able to reproduce this when frog-jump-buffer-include-current-buffer is set to nil. Fixed with ab830cb