0

With fish commandline command I can get current process part of commandline and current cursor position in entire buffer, but not in current process, e.g for commandline buffer

> echo test; echo $flounder

(with the cursor on the 'o' of 'flounder')

> commandline -

going to return

echo $flounder

and

> commandline -Cp
19

Could I somehow obtain cursor position in current process (8 for this example)?

> commandline -Cp

returns error.

UPD: I think

> string length (commandline -cp)

would return exactly what I want

1 Answer 1

1
> string length (commandline -cp)

works fine

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .