Jump to content

BETA: SciTE v5x & lua Dynamic_include and "Smart" AutoComplete for Vars/UDFs/Abbrevs


Recommended Posts

Posted (edited)
  On 8/24/2022 at 6:28 AM, jpm said:

I just whant to see the order change so that keyword appear abbrev 

not sure partial match should be in the list or a least after the others

Expand  

@Jos here you have example:

image.png.6288a124bdf3ee762822fac61189d610.png

 

As you can see there are:

  • abbreviations 
  • constants
  • abbreviations 

I think that @jpm want to propose to have all abbraviations grouped and should stay together for example at top like:

  • all matched abbreviations
  • all matched constants
  • all matched functions

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 9/23/2022 at 8:43 AM, mLipok said:
  • all matched abbreviations
  • all matched constants
  • all matched functions
Expand  

btw.
Is it possible to change the way how this information are displayed to this order:

  • all matched abbreviations
  • all matched constants
  • all matched STANDARD UDF functions
  • all matched USER UDF functions
  • all matched LOCAL functions

??

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted (edited)
  On 9/23/2022 at 8:45 AM, mLipok said:
  On 9/23/2022 at 8:43 AM, mLipok said:
  • all matched abbreviations
  • all matched constants
  • all matched functions
Expand  

btw.
is it possible to change this to:

Expand  

Please think about this a little longer but this time taking into account my explanation about how it works! I am open to suggestion, but I need logic for that , not just wishes how people would like to see it. That is why each time I asked for logic and I haven't seen any as yet.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)
  On 9/23/2022 at 8:50 AM, Jos said:

Isn't it up-to-date already?

Expand  

no

I compare with alpha

So I'm not sure if we works on the same version as you can have further changes on your site.

Edited by Jos

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

After using underscore I get $1 on the list.
Why ?

image.png.bf11a4cc5701f650af416d8534d243b8.png

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Moderators
Posted

Jos,

Just to offer another point of view: I have been using the latest version for the past week and I am very satisfied with the way the autocomplete list is currently working.

Steve  G

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Developers
Posted
  On 9/23/2022 at 10:15 AM, mLipok said:

So I'm not sure if we works on the same version as you can have further changes on your site.

Expand  

Ok... just made sure the whole content is up-to-date with the latest LUA scripts and SciTE.exe + DLLs....  so give those a try. :) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted
  On 9/23/2022 at 10:44 AM, mLipok said:

After using underscore I get $1 on the list.
Why ?

Expand  

Will have  look at that as I thought I changed something there before my vacation.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Why some of postions on the list have icons and other not ?

image.png.c8b8c59ce66a852ad8c6b1322871cd31.png

 

image.thumb.png.ed82c65405b49db146c3af6287195878.png

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 9/23/2022 at 12:40 PM, mLipok said:

Why some of postions on the list have icons and other not ?

 

Expand  

No idea...   as you can see in the LUA scripts: I am using a standard command to show the userlist:

editor:UserListShow(12, table.concat(tStartKeywords, ";"))

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

I had some issue on one of my project, temporary fixed manually. (edit: related to calltips)

But please do not use stripped scirpt files for creating dynamic calltips:

image.png.d13be877b37447cc0a2778c5f4d4f746.png

 

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 9/23/2022 at 12:45 PM, mLipok said:

But please do not use stripped scirpt files for creating dynamic calltips:

Expand  

No idea what you mean.....  an script is a filename.au3 and then it will do autocomplete unless you add the directive not to? 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

Sometimes you can have produced ***_stripped.au3 file in include directory.
Yes I know it is user issue and should not happen, but it happend.

So ... Can you add extra check to omit skip all *_stripped.au3 to the engine which creates dynamic calltips ?

EDIT: re-worded:
Can please consider to add (in the engine which creates dynamic calltips) extra check to skip processing for all *_stripped.au3 files ?

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 9/23/2022 at 11:46 AM, Jos said:

Will have  look at that as I thought I changed something there before my vacation.

Expand  

The thing I had changed was for $ as start character and I have made an other change when _ is typed the shown list need to actually contain an _ character.
Update is par of the pre-mentioned zip file.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted
  On 9/23/2022 at 12:52 PM, mLipok said:

Can please consider to add (in the engine which creates dynamic calltips) extra check to skip processing for all *_stripped.au3 files ?

Expand  

I still do no know why we would need this at all? So why should I exclude any filename at all?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
  On 9/24/2022 at 7:46 AM, Jos said:

I still do no know why we would need this at all? So why should I exclude any filename at all?

Expand  

I cannot explain it other than I have already explained.
Maybe some better arguments for this feature will arise in the future.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted (edited)

Let me ask differently: Do you get problems with the AutoComplete feature when you open an *stripped.au3 script?

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

With autocomplete ? No.
Wondering which UDF will be added to the #include statement. Will test it.


 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

call tips contains 3 lines, but only 2 are displayed:

image.png.d9baf6bca50018eba0e76ed75a7c3ff3.png

To display third line there is a need to click DOWN ARROW BUTTON

image.png.45a77343eb048cfc6bdadc73bb07f11d.png

The third line comes from: au3.user.calltips.api

I have 2 things to consider here:

1. Optimalization to display only one file localization.

2. show full path accordingly to predefined: #SciTE4AutoIt3_Dynamic_Include_Path

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...