Re: Tab autocomplete behavior in tables
On Mon, Dec 07, 2020 at 11:34:44AM -0500, Paul A. Rubin wrote: > On 12/7/20 5:51 AM, Pavel Sanda wrote: > > On Mon, Nov 30, 2020 at 08:08:44PM -0500, Paul A. Rubin wrote: > > > An interesting related behavior has to do with the escape key. In other > > > programs (such as programming IDEs), if I get autocompletion hints I don't > > > want, I typically hit the escape key to get rid of them. So, having > > > reproduced the problem with Maria's help, my instinct was to hit Esc and > > > then Tab ... except Esc boots me out of the table. I can understand the > > > logic (sort of), but I wonder if there is a way to repurpose the escape > > > key > > > to just stop hints without moving the cursor? > > Sorry to join the party little bit late. > > The non functional Esc is in your case table+preferebce of automatic menu > > in text, right? > > Does the Esc works correct when you have menu in math mode? (Vaguely I > > remember fixing > > this long time ago, but maybe the text part was missed.) > > > > Pavel > Pavel, > > Yes, in math mode hitting the ESC key while a completion suggestion is > visible removes the suggestion (and the characters that triggered it) but > leaves the cursor in the correct position. For instance, if (in a math > inset) I type "xyz\ta" I get a suggested completion "xyz\tan". If I hit ESC, > the inset contents revert to "xyz" with the cursor after the "z" and inside > the inset. Ok I might have time to look on the non functional Esc in text next week (or next shutdown for that matter ;) Pavel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tab autocomplete behavior in tables
On 12/7/20 5:51 AM, Pavel Sanda wrote: On Mon, Nov 30, 2020 at 08:08:44PM -0500, Paul A. Rubin wrote: An interesting related behavior has to do with the escape key. In other programs (such as programming IDEs), if I get autocompletion hints I don't want, I typically hit the escape key to get rid of them. So, having reproduced the problem with Maria's help, my instinct was to hit Esc and then Tab ... except Esc boots me out of the table. I can understand the logic (sort of), but I wonder if there is a way to repurpose the escape key to just stop hints without moving the cursor? Sorry to join the party little bit late. The non functional Esc is in your case table+preferebce of automatic menu in text, right? Does the Esc works correct when you have menu in math mode? (Vaguely I remember fixing this long time ago, but maybe the text part was missed.) Pavel Pavel, Yes, in math mode hitting the ESC key while a completion suggestion is visible removes the suggestion (and the characters that triggered it) but leaves the cursor in the correct position. For instance, if (in a math inset) I type "xyz\ta" I get a suggested completion "xyz\tan". If I hit ESC, the inset contents revert to "xyz" with the cursor after the "z" and inside the inset. Paul -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tab autocomplete behavior in tables
On Mon, Nov 30, 2020 at 08:08:44PM -0500, Paul A. Rubin wrote: > An interesting related behavior has to do with the escape key. In other > programs (such as programming IDEs), if I get autocompletion hints I don't > want, I typically hit the escape key to get rid of them. So, having > reproduced the problem with Maria's help, my instinct was to hit Esc and > then Tab ... except Esc boots me out of the table. I can understand the > logic (sort of), but I wonder if there is a way to repurpose the escape key > to just stop hints without moving the cursor? Sorry to join the party little bit late. The non functional Esc is in your case table+preferebce of automatic menu in text, right? Does the Esc works correct when you have menu in math mode? (Vaguely I remember fixing this long time ago, but maybe the text part was missed.) Pavel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tab autocomplete behavior in tables
On Mon, Nov 30, 2020 at 08:08:44PM -0500, Paul A. Rubin wrote: > An interesting related behavior has to do with the escape key. In other > programs (such as programming IDEs), if I get autocompletion hints I don't > want, I typically hit the escape key to get rid of them. So, having > reproduced the problem with Maria's help, my instinct was to hit Esc and > then Tab ... except Esc boots me out of the table. I can understand the > logic (sort of), but I wonder if there is a way to repurpose the escape key > to just stop hints without moving the cursor? I have a similar annoyance when I open the layout box (with alt + p, ) in a read-only document. I remember I spent some time trying to figure out where in the code the escape was received and processed (i.e., not processed), but failed to make progress. Scott signature.asc Description: PGP signature -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tab autocomplete behavior in tables
On Mon, Nov 30, 2020 at 8:08 PM Paul A. Rubin wrote: > On 11/30/20 6:02 PM, Scott Kostyshak wrote: > > On Mon, Nov 30, 2020 at 05:45:59PM -0500, Paul A. Rubin wrote: > > On 11/30/20 5:13 PM, Scott Kostyshak wrote: > > Scott: Perhaps you can alleviate my confusion here. > > Thanks for joining the conversation, Paul. It seems we have a mystery. > > > 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. > > Just to be clear, I think you mean *automatic* completion is on for > math mode and off for text mode. It took me a while to understand the > distinction. > > > 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. > > Well shoot, I was hoping it was the opposite---that some deity was doing me a > favor by trying to help with completion, and all I would have to do is piss > them off. Gaining their favor seems much more challenging. > > > This is on Linux Mint 20, so behavior should be the same as on Ubuntu Focal. > > Interesting differences. If in preferences you turn automatic completion on > for text, does that change anything? If not, it might just be that completion > in text mode is (conveniently) broken for you. > > Scott > > > As it turns out, I can reproduce the behavior using Maria's example. > Apparently I just did not have enough surrounding text in previous attempts > ... and apparently I've lived a charmed life using tables so far. > > An interesting related behavior has to do with the escape key. In other > programs (such as programming IDEs), if I get autocompletion hints I don't > want, I typically hit the escape key to get rid of them. So, having > reproduced the problem with Maria's help, my instinct was to hit Esc and > then Tab ... except Esc boots me out of the table. I can understand the > logic (sort of), but I wonder if there is a way to repurpose the escape key > to just stop hints without moving the cursor? > Yes, the way this autocomplete function behaves is very unhelpful and impossible to control, which is why I was looking for ways to turn it off... Even if hitting Esc twice allowed Tab to move on to the next cell, it would be better than what currently happens. > > In any case, perhaps the input completion settings for text should have > one more option that turns off tab completions entirely in the text (but > not in math mode). > I just went to see if a bug report exists on this, and it looks like this is related, and still open: https://www.lyx.org/trac/ticket/9207 I guess we'll wait. > > Paul > > -- > lyx-users mailing list > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users > -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tab autocomplete behavior in tables
On 11/30/20 6:02 PM, Scott Kostyshak wrote: On Mon, Nov 30, 2020 at 05:45:59PM -0500, Paul A. Rubin wrote: On 11/30/20 5:13 PM, Scott Kostyshak wrote: Scott: Perhaps you can alleviate my confusion here. Thanks for joining the conversation, Paul. It seems we have a mystery. 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. Just to be clear, I think you mean *automatic* completion is on for math mode and off for text mode. It took me a while to understand the distinction. 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. Well shoot, I was hoping it was the opposite---that some deity was doing me a favor by trying to help with completion, and all I would have to do is piss them off. Gaining their favor seems much more challenging. This is on Linux Mint 20, so behavior should be the same as on Ubuntu Focal. Interesting differences. If in preferences you turn automatic completion on for text, does that change anything? If not, it might just be that completion in text mode is (conveniently) broken for you. Scott As it turns out, I can reproduce the behavior using Maria's example. Apparently I just did not have enough surrounding text in previous attempts ... and apparently I've lived a charmed life using tables so far. An interesting related behavior has to do with the escape key. In other programs (such as programming IDEs), if I get autocompletion hints I don't want, I typically hit the escape key to get rid of them. So, having reproduced the problem with Maria's help, my instinct was to hit Esc and then Tab ... except Esc boots me out of the table. I can understand the logic (sort of), but I wonder if there is a way to repurpose the escape key to just stop hints without moving the cursor? In any case, perhaps the input completion settings for text should have one more option that turns off tab completions entirely in the text (but not in math mode). Paul -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tab autocomplete behavior in tables
On Mon, Nov 30, 2020 at 05:45:59PM -0500, Paul A. Rubin wrote: > On 11/30/20 5:13 PM, Scott Kostyshak wrote: > Scott: Perhaps you can alleviate my confusion here. Thanks for joining the conversation, Paul. It seems we have a mystery. > 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. Just to be clear, I think you mean *automatic* completion is on for math mode and off for text mode. It took me a while to understand the distinction. > 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. Well shoot, I was hoping it was the opposite---that some deity was doing me a favor by trying to help with completion, and all I would have to do is piss them off. Gaining their favor seems much more challenging. > This is on Linux Mint 20, so behavior should be the same as on Ubuntu Focal. Interesting differences. If in preferences you turn automatic completion on for text, does that change anything? If not, it might just be that completion in text mode is (conveniently) broken for you. Scott signature.asc Description: PGP signature -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tab autocomplete behavior in tables
On Mon, Nov 30, 2020 at 5:46 PM Paul A. Rubin wrote: > 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 . 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 > Paul, I also have cua on Linux Mint. The rest of my LyX is minimally customized, so whatever is on by default is what I usually have. One good way to set this off is to have words in the text around the table that start with the same substring. Try this for a minimal example: "notion, notation, noble, nonsectarian, nondeterministic" then in table: enter "no" in a cell, and hit Tab. (If you hit "yes", it should move you to the next tab, which iis what we want.") After "no", though, I see "nominal" in my minimal example, as well as some of the words from the list I entered above. > > -- > lyx-users mailing list > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users > -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tab autocomplete behavior in tables
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 . 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 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Tab autocomplete behavior in tables
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 . 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 signature.asc Description: PGP signature -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Tab autocomplete behavior in tables
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? Maria -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users