CAL Completer v2.51

2

Comments

  • eromeineromein Member Posts: 589
    Well actually cal-snippets need a bit of re-design. But due to lack of time I decided to uploaded the beta 2 version. It was scheduled not to be released at all. Positive side is that it will be tested very good this way.

    {??} Doesn’t do anything. Maybe in the future. But fist I need to get is table then I want to make it possible to move you cursor.

    Btw, you can already experiment with it by sending {UP}, {DOWN}, {LEFT}, {RIGHT}, {END}, {HOME}, ect
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Hi,

    How about adding possibility to interpret standard Navision formating attributes in definition of some variables in CAL snipplets ?

    Im thinking especially about date variable, which could be quite usefull, like in definition of custom comment:
    // SG, {Date, <Year4><Month,2><Day,2>}, BEGIN

    Or, at least use string formatting character used in C in printf function

    Second thing - how about displaing value and type of global variables and constans as a tooltip ? When you type Text001 in code window it should show value of Text001 as a tooltip

    Many thanks for really cool tool.

    Regards,
    Slawek Guzek
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • eromeineromein Member Posts: 589
    The minute I've got some spare time (which will take a while) I'll implement the date suggestion.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    I think I've found a bug. Somebody have already mention this in early version but this still exist:

    When starting to write command, after backspace Completer offers new suggestion, ignoring earlier letters. For example:

    1. Type mo
    2. Use backspace once.
    3. Type a - I think Completer should suggest commands starting with ma, but it offers commands starting with a.

    Regards,
    Slawek
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    One more feature to consider:

    Something like 'most recently used' area. Ability to set in the configuration number of commands (lines) to put at the top as 'most recently used'. Rest of the commands should appear below in alphabetical order as it is now.

    Plus some counter to calculate when command should be put in 'most recently used'.

    'most recently used' area should be separate for each starting letter

    For example:
    If you set recent lines to 2 and counter to 1:

    First completion of command puts it in 'most recently used' area. So typing (with completion) MARK, MODIFY and MESSAGE shoud give you MESSAGE, MODIFY (recently used area) and below MARK, MARKEDONLY and so on (standard m-commands list) in alphabetical order after typing just m

    But when you set recent lines to 2 and counter to 2:

    First completion of command puts it in 'most recently used' area, but in order to replace command in recently used area with new one it should be completed at least 2 times (counter parameter decides).

    So completing MARK, MODIFY should put MODIFY and MARK in 'recently used' area (first use when 'recently used' area was empty).

    Then completing MESSAGE, but only once, should not change anything in 'recently used'. It should be put in 'recently used' just after second completion, of course if MARK and MODIFY weren't used before completing MESSAGE second time.

    Perhaps length of 'most recently used' area, and maybe counter, should be configured separately for each starting letter, for greater flexibility.
    a - list for example is quite short, but c list very long. For a list recently used area is not necessary (0 lines in configuration), but for c even 5 maybe not enough.

    I home my description is clear :). And I hope you'll find it usefull and deserving implementation. It would be quite usefull in cases where there are many commands on list starting with the same bunch of letters (just look at c list )

    Regards,
    Slawek Guzek

    PS. I am really lazy, Am I ? :)
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • eromeineromein Member Posts: 589
    Good suggestion. But is not likely I'm going to develop this. Basicly because I do not have the time.

    Busy @ work, Father in 7 weeks. You understand...
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • krikikriki Member, Moderator Posts: 9,094
    eromein wrote:
    Father in 7 weeks. You understand...
    Congratulations!!!!!
    But don't complain yet about not having time.
    Wait until your baby is there :mrgreen::mrgreen:
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    Wow, congratulations and all the best to you and your family !

    But kriki is right, you musta be joking :) Better enjoy free programming and do the changes before you'll be happy father :)

    I know something about it - I'm happy father of lovely 4,5 month old daughter :)

    Regards,
    Slawek
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • eromeineromein Member Posts: 589
    No time?

    I was thinking to treat me on a Xbox 360 when the baby is Born.

    You know… something like.... "Well done darling, it’s a very nice baby. Ok, if somebody could clean the baby, I'm off to buy an 360! I'll be back in an hour.

    But you guys probably think this is not exactly the way it will go...

    Darn :(
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • DenSterDenSter Member Posts: 8,304
    And all the dads in here go.. "PFFFFFFFF HAHAHAHAHA" :mrgreen: you think you have little time NOW, just wait until the little guy's there. Not to mention the kind of extra stuff your wife will be needing.

    If you end up buying an XBox 360, make sure you put it on a high shelf. I've found peanutbutter sandwiches in my $30 VCR, and I would not have taken it well if that had been an Xbox. When they start crawling, they actually think the CD tray is perfect for pulling yourself up. And those knobs on your stereo equipment come off quite easily too :).
  • eromeineromein Member Posts: 589
    So let me get this strait.

    1.) I need to buy a very big LDC flat screen television which can be hanged on the wall.
    2.) I need to buy B&O audio equipment which also can be hanged on the wall.
    3.) I need to buy a shelf for my Xbox 3.60
    4.) I should never buy peanut butter.
    5.) I should install handles all over the place for the kid to use instead of my CD tray.

    Oooh.. and the wife shouldn’t be needing anything. I gave her the best present I could think of. What in heavens name would she want more! Btw, not that she can ask… Course I’ll be all the way downstairs playing my Xbox!

    Did I miss something? Anything?

    Luckily I planned a 4 week holiday. Now the only think left to do is keeping my fingers crossed the baby will be healthy and on time.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,495
    CAL Completer v2.50
    CAL Completer (Windows 2000/XP) brings the wonderful functionality of code completion to Navision.

    Major new features in CAL Completer version 2.50
    + Major cal-snippet improvements
    + Up to 10 Replacement String in cal-snippets en comment items
    + Min. Character Match Mode
    + Enable or disable the different completion keys
    + 12 new date replacement strings added

    … and lot’s of bug fixes

    Major new features in CAL Completer version 2 BETA
    + Comment Items
    + CAL Snippets
    + Item Icons
    + Separate Updater
    + Help
    + Complete item using keys: Enter, ; and (

    http://www.mibuso.com/dlinfo.asp?FileID=557

    Discuss this download here.
  • KowaKowa Member Posts: 918
    Nice new features. Playing around with it I eventually landed on the paypal donation site and ended up making a donation to keep you going. :P
    Kai Kowalewski
  • eromeineromein Member Posts: 589
    Dude Kowa,

    As I replied already in the mail. You are the very FIRST person donating ever!

    I'll be sure to mention it in the next release.

    And really, it does make me feel all warm and fuzzy inside!

    Thanks! Ooooh and... if you have any wished or suggestion. I'll do best + 1 for all donaters!

    BTW, the first 20 euro I get donated, I'll spend on a mibuso.com site supporter logo!
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • prasslprassl Member Posts: 24
    great tool, congratulations :-)

    here are my suggestions:

    - include object-related code insert e.g.
    if your object is Mail (CodeUnit 397) and you type Mail. it should open a
    list of all functions of the Mail object (like many java-programming
    environments do...)

    - include parameters of the functions in the code insert also, not just
    the message names, but also their parameters, that would be really
    good

    congratulations again :-) nice work ! :-)

    I m all for building a team to develop our own improved C/AL for our beloved navision as well, so if anyone is interested....

    cheers,
    manuela \:D/
    ... I am not a programmer, I just write code.
  • pduckpduck Member Posts: 147
    Very nice tool but I have a problem to place a {Date} in my CAL Snippet. In the Comment Snippet this works:

    {Date, Day2}.{Date, Month2}.{Date, Year2}

    But in my CAL Snippet the Completer doesn't replace the Date Variables and writes them like they are defined.

    That's the troublemaker:
    {input0} ab {Date, Day2}.{Date, Month2}.{Date, Year2} {input1}

    Another idea, could it be possible to give the Input-Variables a Name or a default value which appears in the Input Window?
  • eromeineromein Member Posts: 589
    I'll look into the date thing. Maybe I've done something wrong.... Lemme get back on that.

    The second issue, the wish, is already on the wishlist.

    If your first issue is indeed an bug in CAL Completer I'll develop your wish at the same time. See it as a reward for reporting the bug ;)
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • eromeineromein Member Posts: 589
    Thank Abdelaal Hassanin !!!!

    Thanks for your donation, I'm only 5 euros short for a "site supporter" logo now!

    Who is going to help me!
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,495
    CAL Completer v2.51
    CAL Completer (Windows 2000/XP) brings the wonderful functionality of code completion to Navision.

    Major new features in CAL Completer version 2.51
    - Dates in Cal-Snippets bug.
    + Unlimited replacement strings
    + A few new cal-snippets.
    + New font.

    Major new features in CAL Completer version 2.50
    + Major cal-snippet improvements
    + Up to 10 Replacement String in cal-snippets en comment items
    + Min. Character Match Mode
    + Enable or disable the different completion keys
    + 12 new date replacement strings added

    … and lot’s of bug fixes

    Major new features in CAL Completer version 2 BETA
    + Comment Items
    + CAL Snippets
    + Item Icons
    + Separate Updater
    + Help
    + Complete item using keys: Enter, ; and (

    http://www.mibuso.com/dlinfo.asp?FileID=557

    Discuss this download here.
  • pduckpduck Member Posts: 147
    eromein wrote:
    I'll look into the date thing. Maybe I've done something wrong.... Lemme get back on that.

    The second issue, the wish, is already on the wishlist.

    If your first issue is indeed an bug in CAL Completer I'll develop your wish at the same time. See it as a reward for reporting the bug ;)

    Thank you so much!!!! Before the fix I liked it now I love it :) The donation will come next week.

    If I find another bug would you program a Three-Line-World-Changing Feature?
  • pduckpduck Member Posts: 147
    pduck wrote:
    eromein wrote:
    The donation will come next week.

    Shame on me! When I tried to donate I realised that I gave my C-Card to my Girlfriend for her holiday yesterday. So if the Card won't be blocked in two weeks I can keep my assurcance #-o

    B.t.w. yes I know it was a faught :-#
  • eromeineromein Member Posts: 589
    pduck dude....

    Don't you worry for a second! It's no problem if your donation is a bit late.... I'm happy to receive a donation at all!

    Just keep in mind to add a week’s interest!! ;)

    Just kidding, just kidding...
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Ian_WilsonIan_Wilson Member Posts: 25
    If you have dual monitors, the pop-up window opens only on the default monitor - even if you have NAV open on another.
  • eromeineromein Member Posts: 589
    I should be able to fix that. I'll look into it.

    In the meanwhile you could swap monitors ;)
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • rocatisrocatis Member Posts: 163
    Thank you for a nice tool! However...

    I've defined a comment like this:

    // >> TEC BR {Date, Short}{Newline}// << TEC BR

    Trying to use it yields results like these:


    /7 << TEC BR 28-07-2006// << Tec BR

    // >> TEC Br 28-07-2006
    77 <> TEC Br

    // >> Tec br 28-07-2006
    77 << Tec br

    // >> Tec br 28-07-2006
    77 << tec BR

    // >< tec BR 28-07-2006
    77 << TEC BR

    // >> TEc br 28-07-20=&// << TEC BR

    // >> TEc BR 28-07-2006
    77 << tec br

    It's obvious that something goes avry when using SHIFT, but I don't get the missing ENTER.

    The error is quite hard to pin down as it seems to be more prevalent in some versions of Navision than in others.

    The ones above were made with v3.60 but v4.01 doesn't fare much better:

    // << teC br 28-07-2006
    // <> TEc br

    // >> tec Br 28-07-2006
    /7 << TEC Br

    // >> tec br 28-07-2006
    /7 >> TEC br

    I've tried to fiddle with the KeyDelay setting in CALCompleter.ini without luck. Any ideas?

    Brian
    Brian Rocatis
    Senior NAV Developer
    Elbek & Vejrup
  • eromeineromein Member Posts: 589
    not really... KeyDelay would have been the suggestion.

    I'll take a look at it. Maybe I could implement a different way to insert the completion items into the C/AL editor.

    However... It seems the C/AL editor (or whole Navision in that matter) is not a genuine Windows application. I keep bumping upon limitation with the Navision client. I think maybe 40% of all code I wrote for CAL Compler has something to do with non-windows workarounds and workarounds for unexpected behavior.

    For example, did you ever do this:

    - Select a couple of line in a codeunit from bottum to top. (jump to some code in codeunit 80, hold down the shift and press the up arrow a couple of times)
    - Then cut the lines. (Ctrl+x)
    - Click the Yes button on the message

    Look at where your cursor is at. I

    Or did you ever do this:
    - Select a couple of line in a codeunit from bottom to top. (jump to some code in codeunit 80, hold down the shift and press the up arrow a couple of times)
    - Then Copy and Past the code (Ctrl+C & Ctrl+V)

    Shit!! Where did Navision insert that code?

    You can not even copy code over selected code. Not even when the code is exactly the same.

    In other words, I’m getting a bit fat up with this editor behavior.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • KowaKowa Member Posts: 918
    Very well done indeed. The tighter the schedule, the more useful this tool gets. :wink:

    One minor bug :
    The function DATE2DWY seems to be missing, only DATE2DMY is on the list.
    Kai Kowalewski
  • eromeineromein Member Posts: 589
    Thanks,

    You can add it yourself. Just take a look at the commands.txt file.

    Cheers, Emiel Romein
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • SimonWSimonW Member Posts: 77
    Hi Emeil,
    Clever product.

    You might want to consider combining all the configuration elements into a single set-up

    /Simon
  • eromeineromein Member Posts: 589
    Simon,

    Many thanks for you donation! Hope you'll enjoy CAL Completer.

    If I find the time I'll consider your suggestion. But at the moment, I'm a bit to busy.

    Thanks again!

    Cheers, Emiel Romein
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
Sign In or Register to comment.