Open anki-code opened 4 years ago
I replaced XONSH_STORE_STDOUT=True
to @events.on_postcommand
and avoid overhead.
Yeah, I think that is a good idea for your output search and should be a fall back or customization for histcopy. I just wanted to have more than the output of the last command and wanted it to produce some output in a freshly started, new terminal. I could achieve the former with a rolling buffer and saving a couple of postcommands into it. I'll definitely think about it.
The output search xontrib turned out very consistent and universal (I've updated it to 0.3.3). If you want we can think how to bring the histcpy features into it.
For example:
Alt+U
to get URLs listcpy
/browser
alias and when you need to copy url you can type cpy <Alt+U>
Hi! Thank you for this histcpy!
When
XONSH_STORE_STDOUT=True
is it has any limits to read output? If I docat gigabyte_file
it saves all gigbyte of data? If yes is it has any other risks?Is there a way to avoid setting
XONSH_STORE_STDOUT
toTrue
? For example get only latest output with events/hooks.Thanks!