chrisant996 / clink

Bash's powerful command line editing in cmd.exe
https://chrisant996.github.io/clink/
GNU General Public License v3.0
3.44k stars 135 forks source link

how to insert next word from auto-suggestion ? #643

Closed Mitezuss closed 1 month ago

Mitezuss commented 1 month ago

need some configuration to complete word by word using "Tab" ?

for example:

0

Type: f and press ??? to complete first next: type t and press ??? to complete two next: type t and press ??? to complete tree

result: first two tree

and write whatever:

first two tree newtext

chrisant996 commented 1 month ago

Are you looking for the info in the "Completions" box at Feature Highlights in the documentation?

chrisant996 commented 1 month ago

If not, then please describe what you're doing in more detail.

What have you tried? What was the result? What did you want instead?

What is your Tab key binding? (Press Alt-Shift-/ and then Tab to see what's bound to Tab.)

Mitezuss commented 1 month ago

If not, then please describe what you're doing in more detail.

What have you tried? What was the result? What did you want instead?

What is your Tab key binding? (Press Alt-Shift-/ and then Tab to see what's bound to Tab.)

i have in the history:

first two tree four first two ten first two five

i will try to explain with some images:

1 Type f 2

if i press -> will have: 3

but what need press to have: 4

now type t 5

press what for: 5 5

if here i press: PgUp or PgDown need switch from: first two tree four to first two ten

or :

now i can write whatever: 6

or press t to have: 7

and press WHAT? for: 7 5

and write whatever: 8

Regards

Mitezuss commented 1 month ago

If not, then please describe what you're doing in more detail.

What have you tried? What was the result? What did you want instead?

What is your Tab key binding? (Press Alt-Shift-/ and then Tab to see what's bound to Tab.)

default_settings clink.default_bindings = windows

default_inputrc "\t": old-menu-complete

chrisant996 commented 1 month ago

Type f 2

if i press -> will have: 3

but what need press to have: 4

You're confusing Auto-Suggestions and Completions.

They're very (very) different features.

You said you type -> but you must mean that you type the Right arrow key.

The Right arrow key is inserting the auto-suggestion (the gray text). That's not Completion.

You want Completion. Type Tab to invoke completion.

You said you want to type Tab for completion ... but it seems the problem is happening because you're typing Right instead of Tab.

chrisant996 commented 1 month ago

You may want to just turn off the Auto-Suggestion feature. Refer to the Auto-Suggestions documentation.

Mitezuss commented 1 month ago

Type f 2 if i press -> will have: 3 but what need press to have: 4

You're confusing Auto-Suggestions and Completions.

They're very (very) different features.

You said you type -> but you must mean that you type the Right arrow key.

The Right arrow key is inserting the auto-suggestion (the gray text). That's not Completion.

You want Completion. Type Tab to invoke completion.

You said you want to type Tab for completion ... but it seems the problem is happening because you're typing Right instead of Tab.

i said "i press ->" that is a Arrow (right)

You may want to just turn off the Auto-Suggestion feature. Refer to the Auto-Suggestions documentation.

or accept the next full word of the suggestion up to a space with Shift-Right.

That was looking (Shift-Right), thank

chrisant996 commented 1 month ago

Ah, now I understand.

Shfit-Right inserts the next word from the auto-suggestion.

The mention of "complete" and "Tab" made it hard for me to figure out what the question was. Auto-Suggestions and Completion are different features that work differently.

It's common and understandable to mix up the terminology. But when the terminology is mixed up, then it can be very hard to figure out what was the intended meaning. Sorry for not being able to understand. And I recognize that probably trying to read the Clink documentation through a translator or in a second language probably also makes the documentation hard to use.