approximate size of cell
This commit is contained in:
parent
8ae03b154e
commit
692c9c0865
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ define-command -hidden fzf-file %{
|
||||||
highlighter=$kak_opt_fzf_highlighter
|
highlighter=$kak_opt_fzf_highlighter
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
cmd="sleep 0.1; if [ \$(tput cols) -gt \$(tput lines) ]; then pos=right:50%%; else pos=top:60%%; fi; $cmd"
|
cmd="sleep 0.1; if [ \$(tput cols) -gt \$(expr \$(tput lines) \\* 2) ]; then pos=right:50%%; else pos=top:60%%; fi; $cmd"
|
||||||
preview_opt="--preview '($highlighter || cat {}) 2>/dev/null | head -n $kak_opt_fzf_preview_lines' --preview-window=\$pos"
|
preview_opt="--preview '($highlighter || cat {}) 2>/dev/null | head -n $kak_opt_fzf_preview_lines' --preview-window=\$pos"
|
||||||
additional_flags="$preview_opt $additional_flags"
|
additional_flags="$preview_opt $additional_flags"
|
||||||
fi
|
fi
|
||||||
|
@ -203,7 +203,7 @@ define-command -hidden fzf-git %{
|
||||||
highlighter=$kak_opt_fzf_highlighter
|
highlighter=$kak_opt_fzf_highlighter
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
cmd="sleep 0.1; if [ \$(tput cols) -gt \$(tput lines) ]; then pos=right:50%%; else pos=top:60%%; fi; $cmd"
|
cmd="sleep 0.1; if [ \$(tput cols) -gt \$(expr \$(tput lines) \\* 2) ]; then pos=right:50%%; else pos=top:60%%; fi; $cmd"
|
||||||
preview_opt="--preview '($highlighter || cat {}) 2>/dev/null | head -n $kak_opt_fzf_preview_lines' --preview-window=\$pos"
|
preview_opt="--preview '($highlighter || cat {}) 2>/dev/null | head -n $kak_opt_fzf_preview_lines' --preview-window=\$pos"
|
||||||
additional_flags="$preview_opt $additional_flags"
|
additional_flags="$preview_opt $additional_flags"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue