## Description
This enables the ability to delete buffers directly from the `smart`
picker (or other combined pickers) by adding a check + warning to the
`bufdelete` action (ensuring it only operates on buffer items), and
adding the same `dd` and `<c-x>` mappings as the `buffers` picker.
## Related Issue(s)
TBD... searching.
## Screenshots
https://github.com/user-attachments/assets/6c5c4b5e-74ed-4778-9f31-a714f7da1853
## Description
Handle [detached
HEAD](https://git-scm.com/docs/git-checkout#_detached_head)
- list: display correct information
- preview: without error notification
- action: checkout the commit that HEAD detached at
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
## Related Issue(s)
<!--
If this PR fixes any issues, please link to the issue here.
- Fixes #<issue_number>
-->
- Fixes#672
## Screenshots
<!-- Add screenshots of the changes if applicable. -->
Before:
<img width="1308" alt="image"
src="https://github.com/user-attachments/assets/fad291a3-a730-4a2b-9eb2-4a0edd83d794"
/>
After:
<img width="1038" alt="image"
src="https://github.com/user-attachments/assets/d312579a-e12d-4286-845c-a706d91a6c95"
/>
---------
Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
## Description
When the input opens, the cursor is placed two columns to the right
after the default prompt, but should be one.
The cause is the `vim.api.nvim_win_set_cursor` takes (row, col) with the
base of (1, 0) */I hate this/*
## Related Issue(s)
No related issue created.
## Screenshots
`:lua Snacks.input({ default = "aaa" }, function () end )`
gives the input as "aaa |" (where pipe shows the cursor position)
Co-authored-by: Igor Iatsenko <igor.iatsenko@here.com>
## Description
<!-- Describe the big picture of your changes to communicate to the
maintainers
why we should accept this pull request. -->
-
d972bc0a47
breaks cache key for virtual lines since `0 and 1 or 0` also evaluates
to 1 in lua.
## Related Issue(s)
<!--
If this PR fixes any issues, please link to the issue here.
- Fixes #<issue_number>
-->
- Fixes#510
## Screenshots
<!-- Add screenshots of the changes if applicable. -->
## Description
The cursor position is now synchronized between the zen/zoom window and
it's parent.
I'm not sure if this is the best way to achieve that. Initally I wanted
to do set the parent's cursor position only when the zen buffer is
closed, but I couldn't figure out a way to do that.
## Related Issue(s)
Fixes#539