Code Monkey home page Code Monkey logo

Comments (2)

aryarm avatar aryarm commented on June 17, 2024

Plans

  • use $COMP_WORDS to check whether the first argument to cds is -
  • use $COMP_WORDS to get a sub-array of all of the shortcut names to be deleted
  • remove any shortcut names that have already been typed from the completions
  • account for tab completions at any spot in the line (ex: cds - <letter(s)>[tab] <shortcut2>)

from myaliases.

aryarm avatar aryarm commented on June 17, 2024

Turns out that removing shortcut names that have already been typed from the completions is harder than I thought, especially because bash doesn't have an elegant way of checking whether an element exists in an array.
My final attempt was on commit a4d27f6 but then I gave up and put everything back to normal in commit cc444c2.
I might come back to this later, but it seems like code for _cds will be significantly more simple if this feature isn't implemented.

from myaliases.

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.