Tag Info

New answers tagged

2

Since you're on Ubuntu, the pager used to visualise man pages is probably GNU less. As you can see after pressing h: ESC-u Undo (toggle) search highlighting. In most terminals, it should be equivalent to Alt+U.


2

See this Question on StackOverflow: Pipe less to Emacs - in particular see the answer by event_jr, where he refers to a package he made: e-sink. A brief description is – Pipe output of shell command into a Emacs buffer using emacsclient. I believe that emacsclient does work for the terminal version of emacs I use e-sink (in the GUI version) every day ...


2

The accepted answer of the thread you linked to is correct (as are the other answers in this thread). To summarize for anyone coming to this thread from google, the OP referred to this particular answer in the linked thread which used the g|$vim - command inside less to pipe all of less's content to vim's stdin channel. However, based on answers from this ...


1

There is no way to construct a buffer from std in with emacs. You could do the reverse and launch locate and less from within emacs, but not the other way round. Otherwise, Saul's idea (and the accepted answer in the post you cite) are correct; save the output to a file and open that within emacs.


2

Try locate ... > file && emacs file or try locate -i linux > file && emacs file or try locate -i linux > file && emacs file. Assuming you want to name your temp file "file" or go into emacs and do m-x shell ret then locate -i linux ret or m-x locate ret.


1

When searching in less, matches are highlighted, then you can use n (or N) to search for the next (resp. previous) pattern, and if typing / (to initiate a new search) but using the up/down arrow-keys you can get (inspect and modify) the previous entered regular expression.


1

For slow inputs, like git log -Gregex, do you want: A) lines to appear on the main screen as they come in, then switch to the alternate screen once scrolling is needed (so the first $LINES of output will always appear in your scrollback); if so, go with the 2nd of Gilles's answers to a similar question. B) lines to appear on the alternate screen, but quit ...


1

For slow inputs, like git log -Gregex, do you want: A) lines to appear on the main screen as they come in, then switch to the alternate screen once scrolling is needed (so the first $LINES of output will always appear in your scrollback); if so, go with the 2nd of Gilles's answers. B) lines to appear on the alternate screen, but quit the alternate screen ...


0

From man less: -# or --shift Specifies the default number of positions to scroll horizontally in the RIGHTARROW and LEFTARROW commands. If the number specified is zero, it sets the default number of positions to one half of the screen width. Alternately, the number may be specified as a fraction of the width of the screen, starting with a decimal ...


1

The screen swapping is done with a terminal control code. Such codes are documented under terminfo(5). The two involved in the screen saving/restoring are typically smcup and rmcup. The first turns on a special cursor addressing mode of the terminal (sm="set mode") and the second one turns it off. Typically, these two will save the screen and restore it. ...


0

This is bug/feature request number 303: http://www.greenwoodsoftware.com/less/bugs.html When -F is used, don't output terminal initialization and exit sequences when only one screen is displayed. Sorry, this is just an explanation, not a solution. I guess the maintainer would accept a patch which solves this.



Top 50 recent answers are included