Developers Jos Posted February 12, 2005 Developers Share Posted February 12, 2005 (edited) I've been messing around with LUA a bit, after Steve sent me a request, and created a test LUA script that will list all available Func names sorted and will jump to the selected Func.Here's how it works:Dump this http://www.autoitscript.com/fileman/users/jdeb/test/autoit3.lua in your SciTE directory and add these lines to SciteUser.properties:command.name.40.*=List Functionscommand.40.*=List_Functionscommand.subsystem.40.*=3command.mode.40.*=savebefore:nocommand.shortcut.40.*=Alt+ZNow hit Alt+Z and a sorted list of all Func's will be shown....Select one and enter...It will jump to it but first bookmarks the current line to enable you to jump back to it with F2..What do you think ? Edited February 12, 2005 by JdeB 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. Link to comment Share on other sites More sharing options...
MHz Posted February 12, 2005 Share Posted February 12, 2005 (edited) Very nice. It collects the comments as well. Edit: Added picture Edited February 12, 2005 by MHz Link to comment Share on other sites More sharing options...
Developers Jos Posted February 12, 2005 Author Developers Share Posted February 12, 2005 Very nice. It collects the comments as well. Edit: Added picture<{POST_SNAPBACK}>This is actually an issue.... the comments should be behind the function because else when you select the comment, it won't jump to it...Just uploaded a updated http://www.autoitscript.com/fileman/users/jdeb/test/autoit3.lua to show the whole Func line as one entry..... 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. Link to comment Share on other sites More sharing options...
MHz Posted February 12, 2005 Share Posted February 12, 2005 AutoIt3.lua:473: bad argument #1 to `LineFromPosition' (number expected, got nil)Happens on a couple of them.Unsure for reason Link to comment Share on other sites More sharing options...
Developers Jos Posted February 12, 2005 Author Developers Share Posted February 12, 2005 Happens on a couple of them.Unsure for reason <{POST_SNAPBACK}>updated it to just look for "Func xyz(" and remove comment ed from search...Could you try again to see if you can get it to fail ? 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. Link to comment Share on other sites More sharing options...
MHz Posted February 12, 2005 Share Posted February 12, 2005 No errors resulting now. Looking real good. Link to comment Share on other sites More sharing options...
steve8tch Posted February 12, 2005 Share Posted February 12, 2005 Thanks - its going to be really useful. - many many thanks Could I ask for one further 'feature' enhancement. Shortcut keys - shortcut keys can be changed by going to au3.properties - so different people can make little changes to suit their personal requirements - that and the fact that there are so many keyboard shortcuts now that I cannot remember them!! Could you add a section to your Scite Config tool - so that we can map different keyboard short cuts for your tools. eg I have 4 'favorite ' short cut keys - I could then easily choose 4 of your tools to map to these keys - and easily change them if I need to. Thanks Steve Link to comment Share on other sites More sharing options...
Developers Jos Posted February 13, 2005 Author Developers Share Posted February 13, 2005 Could I ask for one further 'feature' enhancement. Shortcut keys - shortcut keys can be changed by going to au3.properties - so different people can make little changes to suit their personal requirements - that and the fact that there are so many keyboard shortcuts now that I cannot remember them!!Could you add a section to your Scite Config tool - so that we can map different keyboard short cuts for your tools. eg I have 4 'favorite ' short cut keys - I could then easily choose 4 of your tools to map to these keys - and easily change them if I need to.ThanksSteve<{POST_SNAPBACK}>Don't think i will be programming this anytime soon but feel free to take the current version and add it to it... Would even add it to the SciTE4AutoIt3 installer to replace the current one.In my mind the easiest thing is to copy the stuff from the AU3.properties to your sciteuser.properties and assign the shorcuts you like so you override the currently defined key combo's..The FuncList LUA script wil be added to the next installer... 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. Link to comment Share on other sites More sharing options...
phillip123adams Posted February 13, 2005 Share Posted February 13, 2005 Now hit Alt+Z and a sorted list of all Func's will be shown....<{POST_SNAPBACK}>Thanks JdeB! I like this very much. Phillip Link to comment Share on other sites More sharing options...
MHz Posted February 13, 2005 Share Posted February 13, 2005 Could I recommend Hotkey Ctrl+L or Alt+L , for "List Functions".Would be nice to see Z reserved for undo functions. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 13, 2005 Author Developers Share Posted February 13, 2005 Updated the TEST version of http://www.autoitscript.com/fileman/users/jdeb/test/autoit3.lua with proposal from FyingBoz to allow adding trace lines for just the selected lines.It will now check if lines are selected and add only the trace ConsoleWrite() statement for them. It will still add tracelines for all when nothing is selected...As far as the ShortCut for the "Func List" LUA.... anything is fine with me:I have currently the following votes:Steve : Alt+ZMhz : Alt+Lmany we need to start a Poll here.. 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. Link to comment Share on other sites More sharing options...
BigDaddyO Posted February 14, 2005 Share Posted February 14, 2005 Awsome Awsome Awsome.... I will be using this a lot... Thanks for making it. I set it for Alt + F Mike Link to comment Share on other sites More sharing options...
Developers Jos Posted February 14, 2005 Author Developers Share Posted February 14, 2005 I set it for Alt + F <{POST_SNAPBACK}>Anybody else with yet another shortcut ????? By the way, did you all also notice the Ctrl+J that was added 2 versions ago. It will bring you right the the Func definition when you have your cursor on the UDF name anywhere in your code.... eg: when your caret (|) is on " _Test(1)" in the first line and you hit Ctrl+J, SciTE will jump right away to the line with "Func Test($inp)" and bookmarks the source to allow you to jump back to it....If _T|est(1) = 0 then ;..... EndIf ;----- Func Test($inp) ; Return $inp endfunc 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now