Tab autocomplete behavior in tables
Paul A. Rubin
parubin73 at gmail.com
Mon Nov 30 22:45:59 UTC 2020
On 11/30/20 5:13 PM, Scott Kostyshak wrote:
> On Mon, Nov 30, 2020 at 04:11:41PM -0500, Maria Gouskova wrote:
>> Hi LyX users,
>>
>> I'm probably missing something obvious in Preferences, but I couldn't
>> figure out how to turn off tab autocompletion for tables. I don't mind it
>> in math mode, so it's checked, but I pretty much never ever want that
>> behavior in a table. When I hit the Tab key in a table, I want to advance
>> to the next cell, and not to see a drop-down menu of random words that
>> start with the same string I just typed.
>>
>> so, how do I make Tab always advance to the next cell in a table?
> I have similar preferences to you. We just had a similar discussion on lyx-devel:
>
> https://www.mail-archive.com/search?l=mid&q=20201120032750.3austjolf7ornvpg%40tallinn
>
> You mention that you "don't mind it in math mode". If you also don't
> mind *not* having it in math, then the solution is simple:
>
> rebind <Tab>. The default binding is the following:
>
> "command-alternatives completion-accept;cell-forward;tab-insert;outline-in;depth-increment"
>
> Just remove the "completion-accept" part in your rebinding.
>
> If you do want to keep autocompletion for math, then things are more
> complicated. I have a simple patch that does this, but you would have to
> compile LyX with the patch. If you by chance use Ubuntu, I can compile a
> .deb for you, but I can't compile for other platforms.
>
> Scott
>
Scott: Perhaps you can alleviate my confusion here. I use the CUA bind
file (with a couple of tweaks) and have the same binding for Tab that
you listed. In the preferences dialog, tab completion is on for math
mode and off for text mode. In a math inset, if I type something like
\right and start playing with the tab key, it does various completion
tasks. If I'm not part way into a LaTeX command (but, say, in an align*
environment), tabbing moves from cell to cell.
In a text table, Tab moves from cell to cell, period. I do *not* under
any circumstances get prompted to do word completion. (If it matters, I
do have continuous spell checking on, using Enchant.) So I can't
reproduce the problem. While I'm not complaining, either I don't
understand the problem or you and Maria both failed to appease some
digital deity with whom I am apparently on good terms.
This is on Linux Mint 20, so behavior should be the same as on Ubuntu Focal.
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201130/817cd422/attachment.html>
More information about the lyx-users
mailing list