[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: underscore blocks full word completion
From: |
Liu Hao |
Subject: |
Re: underscore blocks full word completion |
Date: |
Wed, 20 Nov 2019 22:31:49 +0800 (CST) |
在 2019/11/20 18:46, "Fabien Hénon" 写道:
> Hi,
>
> I chosen and customized nano to fit my needs and it works great. Thanks
> a lot.
>
> There is just one nag :
> In Python, I use a lot of underscore to name my variables.
> I use word completion, but the underscore does not find full name with
> underscore
>
> For the variable name Trade_History,
> when I type 'Tr' then <word completion key> nano just shows Trade, not
> Trade_History.
>
> I have to type 'Tr' <word completion key> then '_H' then <word
> completion key>
>
> Is it a feature or a bug ?
>
> Thanks per advance,
>
> Fabien
>
>
You may have a look at your .nanorc, where you will find
```
## The characters (besides alphanumeric ones) that should be considered
## as parts of words. This option does not have a default value. When
## set, it overrides option 'set wordbounds'.
# set wordchars "<_>."
```
, which suggests default 'wordchars' are alphanumeric ones. So this will
probably work for you:
```
set wordchars "_"
```
--
Best regards,
LH_Mouse