• Jens' Script Editor - An on-calc lua editor 5 2
Currently:  

Author Topic: Jens' Script Editor - An on-calc lua editor  (Read 146098 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: Jens' Skript Editor - An on-calc lua editor
« Reply #30 on: July 17, 2013, 05:16:58 pm »
Great features addition. :D

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #31 on: July 19, 2013, 05:48:27 am »
About the save load function, On first load of the document, I found out that the load option was greyed out. Going back to the home menu and coming back to the document worked though, and also showed my previously saved documents, which I couldn't access before.
I like the syntax colouring now, it's much more comprehensive. I tried a few commands (if, end, function) all nice blue font, and stuff in "quotes" was highlighted in purple.
It's really quite good and almost feature complete and I love the import via clipboard option. That makes things much easier for importing stuff from oclua :)
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline imath

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 18
  • Rating: +0/-0
    • View Profile
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #32 on: July 19, 2013, 06:56:55 am »
sounds great!

Offline imath

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 18
  • Rating: +0/-0
    • View Profile
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #33 on: July 19, 2013, 07:00:08 am »
when the code is long,is it flexible?

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #34 on: July 19, 2013, 08:57:01 am »
This editor is really great! I've got suggestions:
* Enable user to select code copy/delete it.
* Enable user to paste code.
* Add a coloration for strings with [[string]].
* Be able to insert faster usefull functions with the menu.
Good job!
« Last Edit: July 19, 2013, 08:58:58 am by mdr1 »



Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #35 on: July 19, 2013, 11:23:03 am »
@imath: I think there are many ways to interprete that question (or my english is not good enough...):
- The number of lines of a code doesn't impact the performance because the code is saved in the RAM as a table with one line per index and only the visible lines get rendered.
- The number of visible characters on the screen does impact the performance because rendering a string/char is relatively slow.
- The number of characters in a visible line does impact the performance because every character of the visible lines does impact the syntax colouring and have to be processed.
- Moving around in large codes is also easy with the clickable scrollbar on the right.(Have anyone notice it yet?!) But i think I'll add a "jump to line..."option.

@mdr1:
- I'm working on copy/paste functions (just finished paste function)

Thanks to everybody for the nice feedback! I think the editor is finished soon! :D
« Last Edit: July 20, 2013, 12:44:04 pm by Jens_K »
Sorry for nonsense.

Projects:



Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: Jens' Skript Editor - An on-calc lua editor
« Reply #36 on: July 19, 2013, 12:26:02 pm »
Yeah I think he meant when our code is long, some other Lua editors ran incredibly slow apparently.

Offline AnToX98

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 107
  • Rating: +10/-0
    • View Profile
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #37 on: July 19, 2013, 03:53:37 pm »
Jens I like so much your work, you're incredible ! I even did a news on TI-planet for this awesome work ! http://tiplanet.org/forum/viewtopic.php?p=145643#p145643
I hope this project will be finished soon because this is the best Lua on-calc Editor ever, congrats !



My Lua projects :

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #38 on: July 19, 2013, 04:16:44 pm »
Welcome to Omnimaga AnToX98, you can introduce yourself here.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #39 on: July 19, 2013, 07:13:05 pm »
@AnToX98: Wow, thanks and congrats to you! My french is very poor but I understood the most, really nice review! Maybe I'll add french translations for the great french community!

PS: Just noticed that "Skript" is actually german... I meant "Script"...  Now I can replace that dang letter everywhere!  :banghead:
« Last Edit: July 23, 2013, 02:03:24 pm by Jens_K »
Sorry for nonsense.

Projects:



Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #40 on: July 20, 2013, 02:18:10 am »
Yeah I meant to ask about that before (the script mispelling) but I kept forgetting. :P I guessed it was due to English not being your native language and script being written with a k in your language. (kinda like how I often say Irak instead of Iraq due to the French word using a K or how I often use connection instead of connexion in French, since I only use that word in English sentences)

Offline imath

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 18
  • Rating: +0/-0
    • View Profile
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #41 on: July 20, 2013, 08:53:20 am »
@imath: I think there are many ways to interprete that question (or my english is not good enough...):
- The number of lines of a code doesn't impact the performance because the code is saved in the RAM as a table with one line per index and only the visible lines get rendered.
- The number of visible characters on the screen does impact the performance because rendering a string/char is relatively slow.
- The number of characters in a visible line does impact the performance because every character of the visible lines does impact the syntax colouring and have to be processed.
- Moving around in large codes is also easy with the clickable scrollbar on the right.(Have anyone notice it yet?!) But i think I'll add a "jump to line..."option.

@mdr1:
- I'm working on copy/pasfe functions (just finished paste function)

Thanks to everybody for the nice feedback! I think the editor is finished soon! :D


I think we can add a "#include " function?

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #42 on: July 20, 2013, 12:58:18 pm »
Perhaps you should add an "Import code from library" feature, and use similar concepts that are used to load strings from documents in the TI-Nspire library.
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Skript Editor - An on-calc lua editor
« Reply #43 on: July 20, 2013, 02:50:11 pm »
@imath: maybe you mean the "require" function? Unfortunately this function was introduced in platform.apiLevel='2.0' (=OS 3.2) but I set platform.apiLevel='1.0' (=OS 3.0) in the editor to make it backward compatible, so you couldn't use those 3.2 functions. (There are only 2 not thaat useful modules anyways)

@jwalker: I think this is not possible as long as TI blocked all functions to use the file system. Also user-defined libraries are not supported.

PS: Expect Version 0.3 later today!
« Last Edit: July 20, 2013, 04:35:15 pm by Jens_K »
Sorry for nonsense.

Projects:



Offline Jens_K

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 187
  • Rating: +52/-0
    • View Profile
Re: Jens' Script Editor - An on-calc lua editor
« Reply #44 on: July 20, 2013, 04:18:13 pm »
UPDATE!!
Version 0.3 is now attached to the first post!

New features:
- Select code to copy, cut, etc.
- "Insert" menu added to insert useful functions
- Various bugfixes and improvements:
  - [[Strings]] are now marked correctly
  - Nau wis inglisch taitel (Skcript)
  - on.create()/on.construction and on.activate() are now fired right after running the main program
  - editor wont crash now if on.charIn is not defined and user presses a button
  - (hopefully) fixed the issue that the "Load" menu won't load correctly right after launch
Sorry for nonsense.

Projects: