You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Make scalar/list variable body" shortcuts(ctrl+1, ctrl+2) cursor position #1944
enhancementRequest for improvement: either for an existing feature or a new onefixedIssues that have been fixed and can be closed alreadyprio-lowNice to haves, if we have time and aren't working on something else
Grouping several related issues into 1:
Subissiue 1:
in older ride versions when I used ctrl+1/ctrl+2 shortcuts on empty cells, a new variable was created and the cursor(carette) for entering the text (variable name) was already put into the middle between brackets:
${}
but now it's outside the brackets on the right, so I have to manually put it back into the middle between the brackets every time:
${}
Subissiue 2:
When selecting whole cell and trying to envelope (cover) all the text within that cell into a variable I expect it work like this:
cell text -> ${cell text}
but it doesn't work, instead I get the new brackets on the right from text:
cell text -> cell text${}
changed the title [-]Make scalar/list variable body shortcuts(ctrl+1, ctrl+2) don't work as good as they used to[/-][+]"Make scalar/list variable body" shortcuts(ctrl+1, ctrl+2) don't work as good as they used to[/+]on Jun 10, 2019
changed the title [-]"Make scalar/list variable body" shortcuts(ctrl+1, ctrl+2) don't work as good as they used to[/-][+]"Make scalar/list variable body" shortcuts(ctrl+1, ctrl+2) cursor position[/+]on Jun 10, 2019
@povar81 The first case, I cannot reproduce (on Linux with current development version), the cursor is inside the brackets. The second case, has an easy workaround, which is to select all text (for example with Ctrl+a) and then press Ctrl+1, Ctrl+2 or Ctrl+5.
@HelioGuilherme66 I figured out what he means. Here's a comparison between an older RIDE version and the latest one.
old:
new:
It's way less intuitive now.
In old version text was getting wrapped only if cell was selected.
In new version the focus isn't set at all. If I try to type stuff after creating it, the text isn't added unless I click on the cell (but focus is set at the end). Focus should be set inside the brackets when variable is created.
@Nyral Old version is what number? wxPython 2.8.12.1?
The grid has two different modes, the Navigation mode, where you don't type text and arrow keys move the selected cell. The other is Edit mode, you clicked the cell and can type text. In Edit mode, Ctrl+#, would create the variable placeholder with the caret inside brackets, or selected text.
There is room for improvement, if you want to make a PR :).
@Nyral Old version is what number? wxPython 2.8.12.1?
The grid has two different modes, the Navigation mode, where you don't type text and arrow keys move the selected cell. The other is Edit mode, you clicked the cell and can type text. In Edit mode, Ctrl+#, would create the variable placeholder with the caret inside brackets, or selected text.
There is room for improvement, if you want to make a PR :).
Yes, I'm talking about the Edit mode, Ctrl+1 creates variable placeholder, with the caret outside the brackets, that's the problem.
@Nyral Old version is what number? wxPython 2.8.12.1?
The other is Edit mode, you clicked the cell and can type text. In Edit mode, Ctrl+#, would create the variable placeholder with the caret inside brackets, or selected text.
There is room for improvement, if you want to make a PR :).
Sorry, but I don't understand what exactly do you mean.
You're saying that "Ctrl+#, would create the variable placeholder with the caret inside brackets" but it doesn't! The caret is outside, that's the problem.
It's partially fixed in RIDE 1.7.4rc1.dev, however the behaviour is still different (counter-intuitive I'd say):
Subissiue 1: when I double-clik a cell, and hit ctrl+1/ctrl+2 the cursor (focus) IS indeed inside the brackets now, however the both the middle and right bracket are marked (selected), and so when I enter some text the right bracket gets deleted (rewritten with new text). I have to manually hit right or click in the middle again, or manually write the right closing bracket ("}").
Subissue 2 is not fixed :
cell is not covered in brackets at all, neither empty cell, nor filled with text cell, nothing happens when I put cursor on some cell and press ctrl+1, while in older versions it used to cover (envelope) the whole cell between the brackets, as well as all the text in the cell.
enhancementRequest for improvement: either for an existing feature or a new onefixedIssues that have been fixed and can be closed alreadyprio-lowNice to haves, if we have time and aren't working on something else
Activity
[-]Make scalar/list variable body shortcuts(ctrl+1, ctrl+2) don't work as good as they used to[/-][+]"Make scalar/list variable body" shortcuts(ctrl+1, ctrl+2) don't work as good as they used to[/+][-]"Make scalar/list variable body" shortcuts(ctrl+1, ctrl+2) don't work as good as they used to[/-][+]"Make scalar/list variable body" shortcuts(ctrl+1, ctrl+2) cursor position[/+]HelioGuilherme66 commentedon Jun 10, 2019
@povar81 The first case, I cannot reproduce (on Linux with current development version), the cursor is inside the brackets. The second case, has an easy workaround, which is to select all text (for example with Ctrl+a) and then press Ctrl+1, Ctrl+2 or Ctrl+5.
Nyral commentedon Jun 10, 2019
@HelioGuilherme66 I figured out what he means. Here's a comparison between an older RIDE version and the latest one.
old:

new:

It's way less intuitive now.
Tested on Windows 10.
HelioGuilherme66 commentedon Jun 10, 2019
@Nyral Old version is what number? wxPython 2.8.12.1?
The grid has two different modes, the Navigation mode, where you don't type text and arrow keys move the selected cell. The other is Edit mode, you clicked the cell and can type text. In Edit mode, Ctrl+#, would create the variable placeholder with the caret inside brackets, or selected text.
There is room for improvement, if you want to make a PR :).
Nyral commentedon Jun 10, 2019
Something like that :) I'll work on this one.
povar81 commentedon Jun 11, 2019
Ctrl+#?
But it comments out the whole row, it has nothing to do with creating new variables...
HelioGuilherme66 commentedon Jun 11, 2019
Ctrl+# was my abbreviated way to say Ctrl+1, Ctrl+2 and Ctrl+5. @povar81 Sorry for the confusion.
povar81 commentedon Jun 18, 2019
Yes, I'm talking about the Edit mode, Ctrl+1 creates variable placeholder, with the caret outside the brackets, that's the problem.
Nyral commentedon Jun 18, 2019
@povar81 What?
povar81 commentedon Jun 21, 2019
povar81 commentedon Oct 29, 2019
Any plans for fixing this?
Our whole team is using it and it's kind of annoying...
povar81 commentedon Dec 2, 2019
It's partially fixed in RIDE 1.7.4rc1.dev, however the behaviour is still different (counter-intuitive I'd say):
Subissiue 1: when I double-clik a cell, and hit ctrl+1/ctrl+2 the cursor (focus) IS indeed inside the brackets now, however the both the middle and right bracket are marked (selected), and so when I enter some text the right bracket gets deleted (rewritten with new text). I have to manually hit right or click in the middle again, or manually write the right closing bracket ("}").
povar81 commentedon Dec 2, 2019
Subissue 2 is not fixed :
cell is not covered in brackets at all, neither empty cell, nor filled with text cell, nothing happens when I put cursor on some cell and press ctrl+1, while in older versions it used to cover (envelope) the whole cell between the brackets, as well as all the text in the cell.
HelioGuilherme66 commentedon Dec 2, 2019
We did not make any code change related to this issue.
HelioGuilherme66 commentedon Jul 18, 2020
@povar81 This issue should be fixed in current development and soon to be pre-released Beta.