Re: #10088: math mode tab-autocomplete sometimes exits math mode

2017-04-23 Thread Scott Kostyshak
On Sat, Apr 22, 2017 at 05:24:16PM -0400, Jack Sankey wrote:
> Thanks for the reply!
> 
> If I do that, I can no longer move from the top of a fraction to the bottom
> with tab, forcing arrow-key action, which is different and bad on some
> keyboards.

Dang, I forgot about that caveat. Similarly, you can't navigate other
math insets with tab (e.g. multi-line equations).

Scott

P.S. if possible let's try to keep the discussion on trac so we have
everything in one place.


signature.asc
Description: PGP signature


Re: #10088: math mode tab-autocomplete sometimes exits math mode

2017-04-22 Thread Jack Sankey
Thanks for the reply!

If I do that, I can no longer move from the top of a fraction to the bottom
with tab, forcing arrow-key action, which is different and bad on some
keyboards.

On Sat, Apr 22, 2017 at 1:12 PM, LyX Ticket Tracker  wrote:

> #10088: math mode tab-autocomplete sometimes exits math mode
> --+
>  Reporter:  jaxankey  |   Owner:  baum
>  Type:  defect|  Status:  new
>  Priority:  low   |   Milestone:
> Component:  mathed| Version:  2.1.4
>  Severity:  normal|  Resolution:
>  Keywords:|
> --+
> Changes (by skostysh):
>
>  * owner:  lasgouttes => baum
>  * component:  general => mathed
>
>
> Comment:
>
>  I can reproduce this on Linux. I must type slow because I have to try very
>  hard to type fast to reproduce the issue. The easiest way for me to
>  reproduce is with \dim.
>
>  I can understand that this would be an annoying issue.
>
>  When you are in math mode, if you would like to quickly get out of math
>  mode and back into text mode, you can type space, tab, right-arrow, or
>  click. Do you use tab for this purpose?
>   (I personally only use space). If you do not rely on tab for this
>  purpose, I believe that I've found a workaround for you:
>
>  1. Go to Tools > Preferences > Editing > Shortcuts.
>  2. In the "Show key-bindings containing" text area, put "tab".
>  3. Select the entry in the search results that contains only "Tab" (e.g.
>  not "Ctrl + Tab").
>  4. Click on Modify.
>  5. In the function, remove "cell-forward;" and press "OK". So the entire
>  function should be something like:
>
>  {{{
>  command-alternatives completion-accept;tab-insert;
> depth-increment;outline-
>  in
>  }}}
>
>  6. Press "Apply".
>
>  Note that this will only change the setting for the current LyX session.
>  If you want to make it permanent, in step 6 instead of "Apply", press
>  "Save".
>
>  Does that work for you?
>
>  Of course, this is just a workaround and I think the bug should be fixed.
>  But hopefully it saves you some frustration until it could be fixed (some
>  LyX bugs take a long time to be fixed).
>
> --
> Ticket URL: <http://www.lyx.org/trac/ticket/10088#comment:2>
> The LyX Project <http://www.lyx.org/>
> LyX -- The Document Processor
>