Yves> For people spending a lot of time in a terminal/shell (bash, csh etc...) 
do
Yves> you work from the shell or from an editor?

I live inside emacs for editing and reading mail (at home still, moved
to Exchange over Web at work, boo his!) but generally use xterms with
tcsh for day to day living.  But they're both setup side by side with
100 columns and 48 rows each.  

Yves> The joke goes that people using emacs live inside emacs, and I
Yves> have indeed seen developers working from a simple window and
Yves> sending chunk of code to a compiler/repl right from emacs, now
Yves> what about the shell?

I had a boss who lived inside emails, ran shell mode all the time.
I've tried, but can't stand it.  Cut'n'paste from an xterm has been
all I've needed if I wanted to grab some screen output and then edit
it.  

I also use 'screen' ALOT as well.  tmux has been tried, but kicked to
the curb for not being like screen keybinding wise. :-)

Yves> I'm a vi/vim person, and when working from the shell I tend to
Yves> use one of these two patterns:

I do use vi/vim for small, quick edits.  But once I get into major
work, I shift back into emacs.  Esp if it's plain ol' vi and not vim.
But even then, I still work best in emacs for text editing.  I wrote
this reply inside emacs using VM.  

Yves> - run a command with no output redirection, then use "Shift-PgUP" and
Yves> "Shift-PgDn" to examine the output

Yup, do this all the time!

Yves> - run a command with a redirection to a file in /tmp, then
Yves> "view" that file to be able to do searches etc on the output

I just pipe into less generally.  

Yves> This morning it occurred to me (after 25 years of using UNIXes,
Yves> I'm not really fast I guess) that if I know that the output is
Yves> going to be very long and it is likely that I will want to do
Yves> searches on the output, I can open a blank file, then do
Yves> something like (in vi/vim):

Yves>     esc-: r ! whois google.com

Yves> Bingo! Then really, I can continue my day by doing "Shift-g" and
Yves> re-using the above trick. It has the huge advantage to log
Yves> everything I do, I guess I could clean up anything I don't
Yves> really care for (or not and assume that anything could be
Yves> important, I just don't know yet), and save the file after the
Yves> date and have a log of my work for the rest of my life. Now, I
Yves> could see the added gymnastic of "esc-: r !" becoming a pain
Yves> very quickly.

Yves> Hence my question, anybody already doing something similar (Even
Yves> with emacs, I guess that'd be the straw to get me to start using
Yves> evil mode!)? Can you describe?

Learn something new all the time, I'll have to remember this.  
_______________________________________________
Tech mailing list
Tech@lists.lopsa.org
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to