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