Giter Site home page Giter Site logo

ptrepl's People

Contributors

dependabot[bot] avatar imomaliev avatar meeuw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dldinternet

ptrepl's Issues

Unable to launch

I created a temporary virtualenv and installed ptrepl inside. I copied the config snippet from the readme and placed it in ~/.config/ptrepl/config.json and tried to launch ptrepl. I get the following exception:

$ ptrepl git
Traceback (most recent call last):
  File "/Users/amjith/.virtualenvs/tempenv-0f62281434a57/bin/ptrepl", line 11, in <module>
    sys.exit(parse_args())
  File "/Users/amjith/.virtualenvs/tempenv-0f62281434a57/lib/python3.7/site-packages/ptrepl/cli.py", line 92, in parse_args
    main(args.command, prompt=args.prompt)
  File "/Users/amjith/.virtualenvs/tempenv-0f62281434a57/lib/python3.7/site-packages/ptrepl/cli.py", line 19, in main
    history = FileHistory(get_history_file(command, local_shada_path=local_shada_path))
  File "/Users/amjith/.virtualenvs/tempenv-0f62281434a57/lib/python3.7/site-packages/ptrepl/history.py", line 12, in get_history_file
    assert '$' not in path, f"Not all environment variables were expanded {path}"
AssertionError: Not all environment variables were expanded $DIRENV_DIR/.direnv/ptrepl/

crash when history is empty and I hit enter

When I run ptrepl on a given command for the first time and I start from hitting ENTER, ptrepl crashes with following tracebask:

Traceback (most recent call last):
  File "/home/foobar/.local/bin/ptrepl", line 10, in <module>
    sys.exit(parse_args())
  File "/home/foobar/.local/lib/python3.7/site-packages/ptrepl/cli.py", line 94, in parse_args
    main(args.command, prompt=args.prompt)
  File "/home/foobar/.local/lib/python3.7/site-packages/ptrepl/cli.py", line 69, in main
    session.default_buffer.history.get_strings()[-1] = subcommand
IndexError: list assignment index out of range

Watch command

Hi @imomaliev,

I have a wonderful idea!

What do you think of a feature that would allow the result of executing a specified command is always in the top part of the terminal and the input line is below?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.