Giter VIP home page Giter VIP logo

Comments (3)

chrisant996 avatar chrisant996 commented on June 1, 2024

When I type

clink u

I see

clink update

The pdate part should be shown in a dimmed color.
Is the pdate part showing up in the same color as the u part??

It is the Auto-suggest feature (like in the fish shell).
It is not related to TAB completion.

Refer to Getting Started and Enhanced default settings for more information.

However, when I press tab I get

clink uninstallscripts

That is the completion feature. You're already familiar with it, but for more info you can refer to How Completion Works.

I know pressing right arrow key will fill it correctly, but this is very odd to do.

They're two very different features. The documentations links above explain the features. The Getting Started section can be very helpful when starting out.

from clink.

tilkinsc avatar tilkinsc commented on June 1, 2024

Hey thanks for the fast reply.

Yeah, I am very aware of the nature of the situation. Being a linux user, I have experience with terminals autofilling the parameter dimmed.

Thanks for the offered documentation.

autosuggest.strategy=completion

Would this mimic the behavior of pressing tab to complete whats shown?

from clink.

chrisant996 avatar chrisant996 commented on June 1, 2024

I'm not sure I have enough info to answer the question.

What behavior do you want?

  • TAB cycles through possible completions, and auto-suggest does nothing except show the first match that would be completed?
  • TAB does bash/zsh style completion, and auto-suggest shows the first match -- but TAB might insert none/some/all of it depending on the longest common prefix of the available matches?
  • Something else?

Setting the strategy to completion pulls a suggestion from the first available match. Depending on your key bindings, the overall behavior will be one of the first two listed above.

RIGHT and TAB are intended to do two different things. It's possible to configure them to do almost the same thing. To me, that seems less useful, but it's configurable so it can be tailored to meet different users' needs and preferences.

(To clarify terminology: Terminals just forward input to programs and display textual output from programs. Shells are responsible for completion and auto-suggestions and input line editing and history and running scripts and so on.)

from clink.

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.