completion/ivy: remove directory in buffer name
When switching buffers.
This commit is contained in:
parent
5f2e708cd7
commit
e4477f02e3
1 changed files with 1 additions and 10 deletions
|
@ -21,16 +21,7 @@ Buffers that are considered unreal (see `doom-real-buffer-p') are dimmed with
|
|||
`+ivy-buffer-unreal-face'."
|
||||
(let ((b (get-buffer candidate)))
|
||||
(when (null uniquify-buffer-name-style)
|
||||
(when-let* ((file-path (buffer-file-name b))
|
||||
(uniquify-buffer-name-style 'forward))
|
||||
(setq candidate
|
||||
(uniquify-get-proposed-name
|
||||
(replace-regexp-in-string "<[0-9]+>$" "" (buffer-name b))
|
||||
(directory-file-name
|
||||
(if file-path
|
||||
(file-name-directory file-path)
|
||||
default-directory))
|
||||
1))))
|
||||
(setq candidate (replace-regexp-in-string "<[0-9]+>$" "" candidate)))
|
||||
(cond ((ignore-errors
|
||||
(file-remote-p
|
||||
(buffer-local-value 'default-directory b)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue