cp-switch-buffer, cp: Improve preview and make it optional
Avoid displaying the ` *counsel-projectile*` buffer when switching to a project with no open buffer. Also preview non-visited files if `counsel-switch-buffer-preview-virtual-buffers` is non-nil. Only trigger preview if `counsel-projectile-preview-buffers` is non-nil (default is nil). Update readme. Closes #171
This commit is contained in:
parent
293aa37800
commit
06b03c1080
2 changed files with 102 additions and 40 deletions
|
|
@ -341,6 +341,8 @@ If one of these variable is nil, the default, the command's candidates are not s
|
|||
```
|
||||
|
||||
Note that the `counsel-projectile` command always sorts buffers before files. Buffers are sorted as in `counsel-projectile-switch-to-buffer` and files are sorted according to `counsel-projectile-find-file`.
|
||||
## Preview in `counsel-projectile-switch-to-buffer` and `counsel-projectile`
|
||||
If the variable `counsel-projectile-preview-buffers` is non-nil, `counsel-projectile-switch-to-buffer` and `counsel-projectile` display a preview of the selected buffer in the current window. This makes these commands behave similarly to `counsel-switch-buffer`. If `counsel-switch-buffer-preview-virtual-buffers` is also non-nil, `counsel-projectile` also displays a preview of the selected non-visited file.
|
||||
# Upgrading
|
||||
## Breaking changes in version `0.3`
|
||||
### Key bindings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue