Re: multi-window searching, newer screen versions

Aaron Davies <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
> The script you have is pretty cool but it is hard to fit into a
> workflow - one would need to save the buffers, look through the buffer
> file via an external program, correlate the buffer to the screen
> session in question, and then go to that screen.

i have it half-working on my mac (still only gets the current contents of the window, not the scrollback)

pro% ./screen_hardcopy.sh|grep HARDCOPY
2676.search : 1 pro% ./screen_hardcopy.sh|grep HARDCOPY
2676.search : 2 HARDCOPYDIR=/tmp/screen-hardcopy-$USER
2676.search : 2 mkdir -p $HARDCOPYDIR
2676.search : 2    mkdir -p "$HARDCOPYDIR/$session"
2676.search : 2 #   screen -S "$session" -X eval "hardcopydir '$HARDCOPYDIR/$session'" "at '#' hardcopy -h"
2676.search : 2    screen -S "$session" -X eval "hardcopydir '$HARDCOPYDIR/$session'" "at '#' hardcopy"
2676.search : 2    for hardcopy in $HARDCOPYDIR/$session/*
2676.search : 2    rmdir "$HARDCOPYDIR/$session"
2676.search : 2 rmdir "$HARDCOPYDIR"

i now know that "HARDCOPY" is on windows one and two of screen "search"

which is not to say that being able to auto-jump to other screens while searching wouldn't be nice, but this is definitely better than nothing
-- 
Aaron Davies
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.