Hello Qian,
Le dim. 25 août 2024 à 03:17, Qian Yun <
oldk...@gmail.com> a écrit :
>
> The "-b, --break-chars" option of "rlwrap" can help.
>
> Default list (){}[],’+-=&ˆ%$#@";|\
>
> If you modify target/x86_64-linux-gnu/bin/fricas-readline
> to include "-b :", then you can get tab completion.
Many thanks! That works nicely if I add ':' What is surprising is that
you have ’ (not ‘) in the default list whereas in my man page of
rlwrap it is '. In fact to obtain this character I need a visual
keyboard or cut and paste this character from this mail. So if I use:
exec $RLWRAP -b '(){}[],’+-=&ˆ%$#@";|\:' -f $CFILE "$@"
in src/etc/fricas-readline all seems good and ' is not affected
apparently i.e. no completion after it. So, even with:
fl:DoubleFloat:=12.0
DoubleFloat is correctly tab-completed.
Waldek, what do you think about this addition to
src/etc/fricas-readline? I don't know if you use the -rl option but it
is very handy, very informative from my point of view. For example, in
my settings:
(1) -> hyper<TAB><TAB>
hyperFactorial hypergeometric0F1Regularized hypergeometricF
hyperelliptic hypergeometric1F1 hypergeometricU
hypergeometric0F1 hypergeometric1F1Regularized
(1) -> hyper
gives you an informative list of functions. After, users just have to
use ')display operations' or their abbreviated forms to know
parameters and origins. I don't know if this is mentioned somewhere in
the FriCAS documentation but it could be I think.
- Greg
PS: The modified list of characters can also be "improved" of course.