Coder Social home page Coder Social logo

alphaterm's People

Watchers

 avatar

alphaterm's Issues

Support to run a command in term.js

Commands that render with ncurses (htop, vim, etc..), or require user input (ssh, less, etc..), are virtually un-usable.

Add a button/option/something to restart a running/completed command in term.js.

Pipes

We need two tickets to the gunshow.

Hotkeys

Implement global hotkey listener with 'react-hotkeys'. I need C-u!

Contextual Autocompletion

Currently only shell commands and directories are autocompletable. Zsh supports contextual parameter and flag completion, which is super useful. While I would like this feature, I think it is unreasonable to expect users to supply a completion function with their program for every shell in the universe. Since Bash and Zsh completion functions are fairly ubiquitous I propose writing the contextual completion feature, followed by a (Zsh &|| Bash)-> Alphaterm completion function parser. Sounds fun.

Re-rendering a ton when running command with lots of output

For example, find / returns a lot of data. The current setup re-renders the commandNode component every time a piece of data is returned, which gets very slow very quickly.

TODO:
Prevent re-rendering after a timeout if a command has not returned, then re-render once the command returns.

Contextual directory autocomplete breaks when you backspace up directories

If you input a path.. say /home/someone/stuff/things, then backspace back up to /home/someone/st , the autocompleter still contains suggestions for the stuff directory instead of the someone directory because it loads new completions when it matches a filepath. Ie. it loads new completions on /home, /home/someone, /home/someone/stuff, etc. and since backspacing over ~/stuff/someone to ~/stu hits ~/stuff , those are the completions it loads.

To fix this I can imagine two solutions:

First, reload completions on every keystroke, which would likely be a reasonable solution in both implementation and computational complexity.

If this turns out to be too complex, then the other solution I can imagine is to cache the depth of the path on every keystroke, and reload the completions when that depth changes.

Autocomplete

TODO:
[X] Autocomplete shell functions
[X] Autocomplete directories
[X] Contextual directory completion

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.