xontrib-output-search

Get identifiers, paths, URLs and words from the previous command output and use them for the next command in xonsh shell.

BSD-2-CLAUSE License

Downloads
451
Stars
39
Committers
5
xontrib-output-search - 0.2.0

Published by anki-code over 4 years ago

New parser algorithm creates more clearer tokens

xontrib-output-search - 0.1.8

Published by anki-code over 4 years ago

json tokenizer renamed to dict and support python dict

xontrib-output-search - 0.1.7

Published by anki-code over 4 years ago

Output search now works on any position of the command.

xontrib-output-search - 0.1.6

Published by anki-code over 4 years ago

  • Added previous command to tokenizer along with output:
    $ VAR='/hello/from:/var'; echo ok
    ok
    $ <Alt+F>
    VAR
    /hello/from
    /var
    ...
    
  • Improved env-like tokenizer
xontrib-output-search - 0.1.5

Published by anki-code over 4 years ago

JSON tokenizer now extract all keys and values:

$ echo '{"One": {"two":"three four", "six":7777}}'                                                                                                                                                                                     
{"One": {"two":"three four", "six":7777}}
$ <Alt+F>
One
two
three four
three
four
six
7777
xontrib-output-search - 0.1.3

Published by anki-code over 4 years ago

Reimplementation of tokenizer and generator to make it extendable:

  • _tokenizer_simple_splitter - split by white spaces
  • _generator_frame_stripping - extract token from special characters
  • _generator_env - generate tokens from env-like output
xontrib-output-search - 0.1.2

Published by anki-code over 4 years ago

Environment variables support:

$ env | grep ^PATH=
PATH=/one/two:/three/four
$ ls fo<Alt+F>
$ ls /three/four
xontrib-output-search - 0.1.0

Published by anki-code over 4 years ago

  • New hotkey: Alt + F
  • New prefix: f__
  • New generator
  • New readme
  • New tests for tokenizer
xontrib-output-search - 0.0.2

Published by anki-code over 4 years ago

  • XONSH_STORE_STDOUT not used anymore. Now the output is stored only for last not empty command and in memory. It's more secure solution.
  • Cleaning from colors
xontrib-output-search - 0.0.1

Published by anki-code over 4 years ago