con-f-use / xontrib-histcpy

Useful aliases and shortcuts for extracting links and text from command output history in xonsh
https://pypi.org/project/xontrib-histcpy/
GNU General Public License v3.0
4 stars 3 forks source link

Describe use case #12

Closed anki-code closed 4 years ago

anki-code commented 4 years ago

Hi!

I can't repeat the use case described in README.

$ pip install git+github.com/xonsh/xonsh # https://github.com/xonsh/xonsh/commit/53bfe8c99ce3c8d4396fe7c2741b19fd6555af12
$ XONSH_STORE_STDOUT=True SHELL_TYPE=ptk2 xonsh --no-rc
xonsh$ xontrib load histcpy
xonsh$ echo 'http://test.com'
http://test.com
xonsh$ wget htt<tab or alt-u>   # no suggestion

What I'm doing wrong?

Thanks!

anki-code commented 4 years ago

Oh I see that code in the pypi package is different than in repo.

And

except Exception as e:
    import logging
    logging.debug('Cannot set xontrib-histcpy shortcuts', exc_info=True)

This hide the error from me:

ImportError: cannot import name 'ptk_shell_type' from 'xonsh.platform'

Fix this in #13