zsh-users
 help / color / mirror / code / Atom feed
* New project to reuse output of commands
@ 2016-05-13 16:58 Sebastian Gniazdowski
  0 siblings, 0 replies; only message in thread
From: Sebastian Gniazdowski @ 2016-05-13 16:58 UTC (permalink / raw)
  To: Zsh Users

Hello,
would anyone participate? The goal is summarized in this video:

https://asciinema.org/a/bezp40yelxl0gkxay3pxkgzag

Putting this into text: reuse parts of output of commands without
mouse. Automatically save output of commands into files. Edit command
line from a curses interface, with access to the saved outputs and
history.

Main mechanism is simple and robust:

ztstart() {
  ...
  exec {ZTRACE_FD}>&1
  exec > >(tee -a "$ZTRACE_PATH/$fname")
}

ztstop() {
  ...
  exec >&$ZTRACE_FD && exec {ZTRACE_FD}>&-
}

Github site:

https://github.com/psprint/ztrace

Best regards,
Sebastian Gniazdowski


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-13 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-13 16:58 New project to reuse output of commands Sebastian Gniazdowski

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).