Skip to content

Commit

Permalink
Wrap lines in preview window
Browse files Browse the repository at this point in the history
  • Loading branch information
shushcat committed Nov 7, 2020
1 parent f42f768 commit ca37527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txt-agenda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fzf_preview() {
}

fzf_report() {
selected=$(report | fzf --tac --no-sort +s --preview-window=up --preview="$0 -p {}")
selected=$(report | fzf --tac --no-sort +s --preview-window=up:wrap --preview="$0 -p {}")
selected_file_name=$(echo "${selected}" | cut -d':' -f2)
selected_line_num=$(echo "${selected}" | cut -d':' -f3)
exec "echo" "$selected_line_num" "$selected_file_name"
Expand Down

0 comments on commit ca37527

Please sign in to comment.