Skip to content

Commit

Permalink
feat: Use less pager for output of the update
Browse files Browse the repository at this point in the history
  • Loading branch information
pusewicz committed Mar 22, 2024
1 parent 454b7ba commit 0df050c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/vimpk/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,12 @@ def update_command
puts
puts "Displaying diffs…"

statuses.each do |basename, status|
puts status.lines.map { |line| "#{basename}: #{colorize_diff line}" }.join
IO.popen("less", "w") do |io|
statuses.each do |basename, status|
status.lines.each do |line|
io.puts "#{basename}: #{colorize_diff line}"
end
end
end
end
end
Expand Down

0 comments on commit 0df050c

Please sign in to comment.