Giter VIP home page Giter VIP logo

Comments (8)

dalehenrich avatar dalehenrich commented on August 16, 2024

command line completion was added along with history ... file completion is yet to be completed

from tode.

dalehenrich avatar dalehenrich commented on August 16, 2024

From @pdebruic:

Can "?" or "help" or "man" (man without a command) be made into a
shell command that lists the possible commands at that point?

from tode.

dalehenrich avatar dalehenrich commented on August 16, 2024

node test patterns:

input after tab
/ / : examples/ home@/ mc/ metacello/ projects@/ sys/ tmp/ tools/
/s /sys/ :
/sys /sys/ :
/sys/ /sys/ : default@/ local@/ oldHome@/ stone@/ stones@/
/sys/st /sys/stone : stone stones
/sys/stones /sys/stones/ :
/sys/stones/ /sys/stones/ : README.md stones/ templates/
. ./ :
./ ./ : home/ homeComposition@/ projectComposition@/ projects/
./p ./project : projectComposition projects
./projectC ./projectComposition/ :
./projectComposition/ ./projectComposition/ : crypto@/ GLASS1@/ grease@/ gsApplicationTools@/ gsDevKitHome@/ GsUpgrader@/ IndexTutorial@/
~ ~/ :
~/ ~/:crypto@/ GLASS1@/ grease@/ gsApplicationTools@/ gsDevKitHome@/ GsUpgrader@/ IndexTutorial@/`
~/Gs ~/GsUpgrader :

command/path test patterns:

input after tab
ls / ls / : examples/ home@/ mc/ metacello/ projects@/ sys/ tmp/ tools/
ls /s ls /sys/ :
ls /sys ls /sys/ :
ls /sys/ ls /sys/ : default@/ local@/ oldHome@/ stone@/ stones@/
ls /sys/st ls /sys/stone : stone stones
ls /sys/stones ls /sys/stones/ :
ls /sys/stones/ ls /sys/stones/ : README.md stones/ templates/
ls ./ ls ./ : home/ homeComposition@/ projectComposition@/ projects/
ls ./p ls ./project : projectComposition projects
ls ./projectC ls ./projectComposition/ :
ls ./projectComposition/ ls ./projectComposition/ : crypto@/ GLASS1@/ grease@/ gsApplicationTools@/ gsDevKitHome@/ GsUpgrader@/ IndexTutorial@/

command tab completion:

input after tab
m m : man mc method mkdir mm mmb mount mr mv
ma man :

from tode.

dalehenrich avatar dalehenrich commented on August 16, 2024

Hmmmm ... I might be tempted to go a little bit crazy and introduce command-specific tab completion.

So you'd get help with available options and or subcommands .... for a command like browse class, a tab would provide list of all classes that match the pattern, so you'd be able to build the class name on the command line ... same for methods ... the command line class TDCommandLine would have to be given a bit more to go on, but that can definitely be done ...

Then again, I should submit a separate bug, since right now I think I've pretty much matched up with what you get from unix with command and path completion ...

from tode.

dalehenrich avatar dalehenrich commented on August 16, 2024

clean sheet

from tode.

dalehenrich avatar dalehenrich commented on August 16, 2024

Ooops .. missed the use case involving ~/ ...

from tode.

dalehenrich avatar dalehenrich commented on August 16, 2024

Oooh, oooh, oooh! need to handle expansion of @/ ... which is a path to an object node:

mr list @/repos/Ston

from tode.

dalehenrich avatar dalehenrich commented on August 16, 2024

@/ tab completion moved to Issue #151

from tode.

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.