Steps to reproduce, using ivy-switch-buffer to switch buffers:
- Open two buffers with a common prefix. In my case,
todo.org and todo.org_archive.
- Switch to
todo.org.
- Switch to some third buffer, like
*Messages*.
- Switch to some fourth buffer, like
*scratch*.
- Invoke
ivy-switch-buffer.
- Start typing your common prefix from step 1, e.g.
todo.
Expected behavior: todo.org is first in Ivy's candidates list and is selected, since that was the most recent buffer with that string.
Observed behavior: todo.org is first in Ivy's candidates, but todo.org_archive is the second and is the selected option, presumably because ivy-switch-buffer starts with the "other" buffer selected by default, which (AFAIK) is always the second option.
Is there any way to get ivy-switch-buffer to select the most recent non-current buffer after filtering? I believe this behavior changed as of 79ffa67 (#484). Thanks!
Steps to reproduce, using ivy-switch-buffer to switch buffers:
todo.organdtodo.org_archive.todo.org.*Messages*.*scratch*.ivy-switch-buffer.todo.Expected behavior:
todo.orgis first in Ivy's candidates list and is selected, since that was the most recent buffer with that string.Observed behavior:
todo.orgis first in Ivy's candidates, buttodo.org_archiveis the second and is the selected option, presumably becauseivy-switch-bufferstarts with the "other" buffer selected by default, which (AFAIK) is always the second option.Is there any way to get
ivy-switch-bufferto select the most recent non-current buffer after filtering? I believe this behavior changed as of 79ffa67 (#484). Thanks!