1
0
Fork 0
mirror of https://github.com/zdharma-continuum/ztrace.git synced 2025-01-30 08:58:22 +01:00
No description
Find a file
Philipp Schmitt 249bc9a684
Merge pull request #4 from p1r473/patch-1
Update README.md
2024-05-06 23:21:15 +02:00
.config/ztrace Rename functions h-list* to h2-list* 2016-05-20 09:32:33 +02:00
.github/workflows feat: add lint gh action workflow 2023-04-14 17:11:15 -05:00
h2-list History subwindow 2016-05-21 16:19:02 +02:00
h2-list-draw Handle ncv&2==1 terminals, detect possible FreeBSD vt 2016-05-20 13:35:10 +02:00
h2-list-input History subwindow 2016-05-21 16:19:02 +02:00
LICENSE Initial commit 2016-05-13 12:21:49 +02:00
README.md Update README.md 2024-05-06 12:46:35 -04:00
ztrace ztrace: Fix glob that reads traces 2017-03-10 08:27:31 +01:00
ztrace-usetty-wrapper First somewhat working version of ztrace 2016-05-13 16:48:45 +02:00
ztrace-widget fixes command not found :zca-usetty-wrapper 2016-10-08 18:49:15 -07:00
ztrace.plugin.zsh Fix *-widget files, bind ztrace to ^G 2016-05-21 08:10:02 +02:00

Ztrace plugin allows to catch output of commands in background. By issuing:

ztstart 3

We inform Ztrace to catch output of 3 commands.

Video: https://asciinema.org/a/45530

asciicast

Installation

zinit

Add zinit load zdharma-continuum/ztrace to your .zshrc file. zinit will handle cloning the plugin for you automatically the next time you start zsh.

Antigen

Adding antigen bundle zdharma-continuum/ztrace to your .zshrc file. Antigen will handle cloning the plugin for you automatically the next time you start zsh. You can also add the plugin to a running zsh with antigen bundle psprint/ztrace for testing before adding it to your .zshrc.

Oh-My-Zsh

  1. cd ~/.oh-my-zsh/custom/plugins
  2. git clone git@github.com:zdharma-continuum/ztrace.git
  3. Add ztrace to your plugin list

Zgenom

Add zgenom load zdharma-continuum/ztrace to your .zshrc file in the same function you're doing your other zgen load calls in.

More information

Below are keyboard shortcuts used by ztrace command:

  • Ctrl-T - start Zsh Command Architect (Zshell binding)
  • Ctrl-E - switch between Ztrace and History views
  • Enter - delete selected segment (when in command window) or add selected segment (when in history window)
  • [ or ] - move active segment (when in command window)
  • Shift-left or Shift-right - move active segment (when in command window)
  • Tab - switch between the two available windows
  • g, G - beginning and end of the list
  • / - start incremental search
  • Esc - exit incremental search, clearing filter
  • <,>, {,} - horizontal scroll
  • Ctrl-L - redraw of whole display
  • Ctrl-O, o - enter uniq mode (no duplicate lines)
  • Ctrl-W (in incremental search) - delete whole word
  • Ctrl-K (in incremental search) - delete whole line
  • Ctrl-D, Ctrl-U - half page up or down
  • Ctrl-P, Ctrl-N - previous and next (also done with vim's j,k)