Skip to content

"Make scalar/list variable body" shortcuts(ctrl+1, ctrl+2) cursor position #1944

Closed

Description

@povar81

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${}

Activity

  1. 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
  2. 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
  3. HelioGuilherme66 commented on Jun 10, 2019

    @HelioGuilherme66
    Member

    @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.

  4. Nyral commented on Jun 10, 2019

    @Nyral
    Contributor

    @HelioGuilherme66 I figured out what he means. Here's a comparison between an older RIDE version and the latest one.

    old:
    2019-06-10_22-04-02

    new:
    2019-06-10_22-05-59

    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.

    Tested on Windows 10.

  5. HelioGuilherme66 commented on Jun 10, 2019

    @HelioGuilherme66
    Member

    @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 :).

  6. Nyral commented on Jun 10, 2019

    @Nyral
    Contributor

    Something like that :) I'll work on this one.

  7. added
    bug
    prio-low
    on Jun 10, 2019
  8. added
    enhancement
    and removed
    bug
    on Jun 10, 2019
  9. povar81 commented on Jun 11, 2019

    @povar81
    Author

    Ctrl+#?
    But it comments out the whole row, it has nothing to do with creating new variables...

  10. HelioGuilherme66 commented on Jun 11, 2019

    @HelioGuilherme66
    Member

    Ctrl+# was my abbreviated way to say Ctrl+1, Ctrl+2 and Ctrl+5. @povar81 Sorry for the confusion.

  11. povar81 commented on Jun 18, 2019

    @povar81
    Author

    @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.

  12. Nyral commented on Jun 18, 2019

    @Nyral
    Contributor

    @povar81 What?

  13. povar81 commented on Jun 21, 2019

    @povar81
    Author

    @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.

  14. povar81 commented on Oct 29, 2019

    @povar81
    Author

    Any plans for fixing this?
    Our whole team is using it and it's kind of annoying...

  15. povar81 commented on Dec 2, 2019

    @povar81
    Author

    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 ("}").

  16. povar81 commented on Dec 2, 2019

    @povar81
    Author

    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.

  17. HelioGuilherme66 commented on Dec 2, 2019

    @HelioGuilherme66
    Member

    We did not make any code change related to this issue.

  18. HelioGuilherme66 commented on Jul 18, 2020

    @HelioGuilherme66
    Member

    @povar81 This issue should be fixed in current development and soon to be pre-released Beta.

  19. added this to the v2.0 milestone on Jul 18, 2020
  20. added
    fixed
    on Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementfixedprio-low

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions