GithubHelp home page GithubHelp logo

CLI Menu: Tab Complete about jquery-cli HOT 6 CLOSED

gavbarnett avatar gavbarnett commented on August 29, 2024
CLI Menu: Tab Complete

from jquery-cli.

Comments (6)

gavbarnett avatar gavbarnett commented on August 29, 2024

50% done I reckon.
Worked out how to do it (though codes a little dirty). And implemented on top level it lasted push to master & gh-pages.
operates as follows:

ab[tab]= about
but,
about li[tab] = not found (should show about licence)

c[tab] = prints list of options(clear, connect)

from jquery-cli.

gavbarnett avatar gavbarnett commented on August 29, 2024

To go further need to swap-out most of the switch statements for objects inside the functions (as per CLI_Menu at present). At least I know how to do that now!.

from jquery-cli.

gavbarnett avatar gavbarnett commented on August 29, 2024

Change list of tab options to be a semi-colon ( ; ) or tab separate list to save space on terminals.

from jquery-cli.

gavbarnett avatar gavbarnett commented on August 29, 2024

Currently only works with lowercase input, easy fix for this.

But I guess debate if:
Hac[tab] should result in
Hacker
or
hacker

I guess the first but its slightly more annoying to code.

from jquery-cli.

gavbarnett avatar gavbarnett commented on August 29, 2024

swapped out Time function switch statements for object list.

And got tab working to at least second level now e.g.
Ti[Tab] = Time
Time F[Tab] =Time Full
Time [Tab] = Time (but give a list of options)

I'm not confident its going to work if I added a third level [Attack Troll Umbrella], but will cross that bridge when we get to it. :-)

Seems to be stable on none updated function (such as help, echo, about) but only shows first level. Simply a case of working through existing function to convert to the new "standard" as posted on wiki.

from jquery-cli.

gavbarnett avatar gavbarnett commented on August 29, 2024

Tab Complete, now complete across all functions! * trumpets play *

from jquery-cli.

Related Issues (12)

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.