Giter VIP home page Giter VIP logo

Comments (7)

vivek9patel avatar vivek9patel commented on May 20, 2024

cd command is working,
and it'll be wonderful to add 'code .' command.

from vivek9patel.github.io.

iamkarshe avatar iamkarshe commented on May 20, 2024

I was so much into UI that after cd books I was keep tabbing myself for auto filling.
Can Tab key be mocked to provide terminal-ish autocomplete feature?

from vivek9patel.github.io.

tusharnankani avatar tusharnankani commented on May 20, 2024

I was so much into UI that after cd books I was keep tabbing myself for auto filling.
Can Tab key be mocked to provide terminal-ish autocomplete feature?

Tab on a terminal makes sense, but on a webpage, tab works as to move on focusable elements are links, input fields, and buttons. So, I don't think that can be implemented unless there is a way of disabling the Tab key.

from vivek9patel.github.io.

vivek9patel avatar vivek9patel commented on May 20, 2024

There is a way to stop default behavior of webpage for tab,
onKeyDown event listen for "TAB" & e.preventDefault() will do the work!

Although if I implement autocomplete feature, web performance will decrease, because I have to search through all the child_directories on every TAB press,
unless if I implement some sort of algorithm to perform search!

from vivek9patel.github.io.

iamkarshe avatar iamkarshe commented on May 20, 2024

Tab feature would also need tabindex=-1 to avoid focusable inputs.

You can keep of all directories in one array (which you can ofcourse generate at build time) and use something like Fuse.js to fuzzy-fy the searches ( https://fusejs.io/ ).

Let me know your thoughts.

from vivek9patel.github.io.

vivek9patel avatar vivek9patel commented on May 20, 2024

hmm, ill look at Fuse.js docs then!

from vivek9patel.github.io.

Devansh-Singh-Parmar avatar Devansh-Singh-Parmar commented on May 20, 2024

cd command is working,
and it'll be wonderful to add 'code .' command.

Hello, I Tried cd command
but it's didn't work...

from vivek9patel.github.io.

Related Issues (20)

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.