dblume commited on 2025-12-12 12:44:50
Showing 1 changed files, with 1 additions and 1 deletions.
Screen looks better at some widths with both "--wrap never" and "--terminal-width" because of the decorative lines and wrapping.
| ... | ... |
@@ -168,7 +168,7 @@ case "$-" in |
| 168 | 168 |
gf() {
|
| 169 | 169 |
local file |
| 170 | 170 |
if type batcat >/dev/null 2>&1; then |
| 171 |
- file="$(git ls-files | fzf --preview 'batcat --color=always --wrap never --line-range :$(($LINES - 4)) {}' --preview-window=right:60%)"
|
|
| 171 |
+ file="$(git ls-files | fzf --preview 'batcat --color=always --wrap never --line-range :$(($LINES - 4)) --terminal-width $COLUMNS {}' --preview-window=right:60%)"
|
|
| 172 | 172 |
else |
| 173 | 173 |
file="$(git ls-files | fzf --preview 'head -n $LINES {}' --preview-window=right:60%)"
|
| 174 | 174 |
fi |
| 175 | 175 |