[Bug]: Invert doesn't invert preview location
zonorti opened this issue · comments
What did you expect to happen?
Config:
style = "compact"
invert = true
inline_height = 40
show_preview = true
I would expect that preview line is at the top, the same way it works in the non-inverted orientation.
What happened?
Preview line is at the end of the list, creating a significant visual distance between input and result.
Atuin doctor output
Atuin Doctor
Checking for diagnostics
Please include the output below with any bug reports or issues
atuin:
version: 18.2.0
sync: null
shell:
name: zsh
default: zsh
plugins:
- atuin
system:
os: Darwin
arch: arm64
version: 14.4.1
disks:
- name: Macintosh HD
filesystem: apfs
- name: Macintosh HD
filesystem: apfs
- name: Fedora Linux with GNOME
filesystem: apfs
Code of Conduct
- I agree to follow this project's Code of Conduct
actually, it should be the other way around. The preview should be on top when not inverted. We had a similar discussion here and the following 5 comments.
P.S.: When I use inverted, I want the found commands right below the query (same as with fzf). For me the preview only shows up, if the command is longer than the terminal width. Having it at the bottom is more approachable and usful, because otherwise it would shift/move the results around.
@tessus yes, I was comparing inverted to fzf experience and didn't think about the resizing part tbh.