Planning Analytics

 View Only
Expand all | Collapse all

Tab Key in PAW 92 TI Editor

  • 1.  Tab Key in PAW 92 TI Editor

    Posted Wed December 13, 2023 04:41 PM

    Seems like the tab key has completely lost it's functionality in v92 in the TI editor PAW modeling.

    In v91 and prior you could use tab to autocomplete and also to indent lines. Seems now you have to use the arrows/enter to autocomplete and use Ctrl+I to indent. However, the rule editor behaves the same as it used to.  

    Was this an intended functionality change? 



    ------------------------------
    Matthew Berson
    ------------------------------


  • 2.  RE: Tab Key in PAW 92 TI Editor

    Posted Thu December 14, 2023 02:03 AM

    We are seeing the same thing, hopefully it is not intended but just a bug.

    @Svetlana Pestsova could you help us out? 



    ------------------------------
    Emil Malmberg Fosdal
    Solution Architect
    CogniTech A/S
    ------------------------------



  • 3.  RE: Tab Key in PAW 92 TI Editor

    Posted Thu December 14, 2023 02:21 AM

    Glad this wasn't just me. 

    My finger has hit the tab button many times today, and my mind kept saying "was this working yesterday"? 

    Will the tab button be activated again soon?

    Cheers

    Karl Blackler

    Head of Product Development

    Cortell Australia Pty Limited



    ------------------------------
    Karl Blackler
    ------------------------------



  • 4.  RE: Tab Key in PAW 92 TI Editor

    Posted Thu December 14, 2023 02:31 AM

    I have typically used Ctrl + ] to indent and Ctrl + [ to outdent so thankfully not too much of an issue for me.

    What is nice though that I do not see mentioned in the release notes is that we now have folding on IF/ENDIF and WHILE/END

    Also, the intellisense seems to have been updated and a clearer distinction between variable names and functions when you insert a function.



    ------------------------------
    George Tonkin
    Business Partner
    MCI Consultants
    Johannesburg
    ------------------------------



  • 5.  RE: Tab Key in PAW 92 TI Editor

    Posted Thu December 14, 2023 07:35 AM

    Hi Matthew, Emil,

    We're investigating, I'll post later today.

    The major improvements for TI eritor are on the radar with the rull editor to follow.

    Best regards,



    ------------------------------
    Svetlana Pestsova
    IBM Planning Analytics Product Manager
    ------------------------------



  • 6.  RE: Tab Key in PAW 92 TI Editor

    Posted Thu December 14, 2023 11:12 AM

    Hi everyone posted!

    Tab is used to move focus in Code mirror 6 where we're going for much better performance.

    We hope it is relatively simple to adjust to the new way, "enter" instead of "tab".

    Please, provide your feedback,



    ------------------------------
    Svetlana Pestsova
    IBM Planning Analytics Product Manager
    ------------------------------



  • 7.  RE: Tab Key in PAW 92 TI Editor

    Posted Thu December 14, 2023 10:40 AM

    Hi Everyboy,

    Yes there is a change of behaivour on the tab key,  this is becouse the new version of the editor does not overload the tab key from the browser (it does not fight the browser  to manage the focus). So to autocomple is better to use the enter key. The new editor includes a number of enhancements that i hope make up for this:

    • Auto indent
    • Fold/unfold if/else, and loops
    • Filtering on vairable son the debugger
    • Masive prformance improvements (load a 2k+ script  to check)
    • Navigation panel to go quickly to error and warnings
    • Improvements on syntax checking
    • Highlight on the active section on the section navigation bar


    ------------------------------
    Julian
    ------------------------------



  • 8.  RE: Tab Key in PAW 92 TI Editor

    Posted Thu December 14, 2023 10:57 AM
    Edited by Bilal KACEL Thu December 14, 2023 02:02 PM

    Hi,

    I'm experiencing the same behaviour. Hereunder, a tip of what I understand regarding the new behaviour.

    Some remarks:

    1. Indentation using the Tab key on the keyboard is not possible,

    2. One-time indentation of the entire script (all sections):
      NB: It indents all the code according to the zones to be indented, typically the conditional blocks (IF, ELSE), the loops (WHILE) but also the #Regions nested inside the blocks (IF and WHILE), which represents a saving of time considerable for readability and understanding of other people's codes
       
    3. The button to fold only folds the 4 sections [#Section] (PROLOG, METADATA, DATA and EPILOG), but does not fold the #Regions,

    Regards,
    ------------------------------
    Bilal KACEL
    Tech Lead
    IBM
    ------------------------------



  • 9.  RE: Tab Key in PAW 92 TI Editor
    Best Answer

    Posted Sat December 16, 2023 10:57 AM

    Hi all posted,

    Based on the community feedback the functionality for TAB - to autocomplete and to indent lines, would be supported in the next PAW release,

    Sorry for inconvenience,



    ------------------------------
    Svetlana Pestsova
    IBM Planning Analytics Product Manager
    ------------------------------



  • 10.  RE: Tab Key in PAW 92 TI Editor

    Posted Sat December 16, 2023 12:17 PM

    Thanks for understanding and listening to our needs Svetlana.



    ------------------------------
    George Tonkin
    Business Partner
    MCI Consultants
    Johannesburg
    ------------------------------



  • 11.  RE: Tab Key in PAW 92 TI Editor

    Posted Mon December 18, 2023 03:20 AM

    Thanks Svetlana, really appreciate it



    ------------------------------
    Emil Malmberg Fosdal
    Solution Architect
    CogniTech A/S
    ------------------------------



  • 12.  RE: Tab Key in PAW 92 TI Editor

    Posted Sat February 24, 2024 08:21 AM

    Closing the loop on this one.

    Can confirm that the Tab key in PAW 2.0.93 behaves as it used to pre PAW 2.0.92

    Tab indents, Shift+Tab outdents, Tab on the auto-complete/intellisense selects the proposed items and inserts it into your code.
    This behaviour is consistent in TI and Rules.

    What is inconsistent is the following:

    • Tabs in TI insert the equivalent of 4 spaces whilst in rules this is 2
    • Backspace of an inserted Tab in TI removes the tab (i.e. the 4 spaces) in one keystroke. In rules, you need to backspace twice.

    There will definitely be much less cursing now as hitting tab to insert offered functions and variables will actually do what I expect and not change the focus to the next selectable item on my screen.

    Thanks @Svetlana Pestsova for your help with this one.



    ------------------------------
    George Tonkin
    Business Partner
    MCI Consultants
    Johannesburg
    ------------------------------



  • 13.  RE: Tab Key in PAW 92 TI Editor

    Posted Sat February 24, 2024 08:06 PM

    Thank you for the observations/confirmation George on the cursing amount going down!

    We'd definitely make the Tab behaviour consistant in the Rule editor as it'd next to be updated with CM6.

    • Tabs in Rules would also insert the equivalent of 4 spaces.
    • One backspace in Rules would remove the Tab inserted = 4 spaces.

    Best regards,



    ------------------------------
    Svetlana Pestsova
    IBM Planning Analytics Product Manager
    ------------------------------



  • 14.  RE: Tab Key in PAW 92 TI Editor

    Posted Sun February 25, 2024 11:02 AM

    Thanks for the update on what behaviour to expect in the future.

    One consideration that may need to be given is to existing code and how tabs will be updated from 2 to 4 spaces for example to align existing TI and Rules with the new behaviour.



    ------------------------------
    George Tonkin
    Business Partner
    MCI Consultants
    Johannesburg
    ------------------------------



  • 15.  RE: Tab Key in PAW 92 TI Editor

    Posted Mon February 26, 2024 09:05 AM

    Thank you for the feedback, George!

    Do most of developers prefer indent unit of 4 spaces or 2 spaces? Default for CM is 2, but we set it for 4 in TI editor.

    Best regards,



    ------------------------------
    Svetlana Pestsova
    IBM Planning Analytics Product Manager
    ------------------------------



  • 16.  RE: Tab Key in PAW 92 TI Editor

    Posted Mon February 26, 2024 09:13 AM
    Edited by George Tonkin Mon February 26, 2024 09:14 AM

    HI Svetlana,

     

    Running a poll to see what other TM1 developers think.

     

    The obvious choice is neither 2 or 4 but an actual tab stop Char(9)

    Any reason why it cannot be the standard ASCII Tab character?