• nTxt - Nspire Text Editor 5 1
Currently:  

Author Topic: nTxt - Nspire Text Editor  (Read 139512 times)

0 Members and 1 Guest are viewing this topic.

Offline SpiroH

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +153/-23
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #150 on: October 09, 2014, 09:21:58 am »
...
If nTxt is not developped anymore, maybe I or someone else could modify it to allow these features (I didn't see any license, but the sources are given...) Just asking...
I'd say, go ahead and do it (unless you've already done it...  :/ ). Probably lkj is just busy ATM, but given that the sources are available i don't see any problem in appending some functionality. Just saying...
Btw, good luck with your Python teaching efforts. I hope you'll show the students the way to Omnimaga pretty soon. There are a few teachers around the place (me too i'm one of them) so welcome to the band.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #151 on: October 09, 2014, 02:43:40 pm »
Nice to hear this is useful to people learning programming in python  :)
The features suggested would be very useful indeed.

Thanks in advance to consider these feature requests... hoping this program is still in development...
I haven't quit developing this, but don't have any time to do programming stuff right now (I just started studying at a university and am very busy... maybe for a whole year too busy to really work on this).  So if you (or anyone else) wants to modify this or add features, just go ahead and do it. It would be nice if you shared your improvements ;)

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: nTxt - Nspire Text Editor
« Reply #152 on: October 09, 2014, 03:43:28 pm »
Quote from: DJ O
unless you mean making nTxt so that it lets people write Python code inside it instead of just plain text files, which would definitively be very great.
That's exactly what I meant. Sorry for being unclear.

In fact, it already works. Just type your Python code in nTxt, save it as "anything.py.tns" and MicroPython will launch it.
My feature requests were only to simplify some routines many times repeated when testing a new program...

With the actual version of nTxt, if you want to modify a previously saved "anything.py.tns", you have to :
- launch nTxt
- ask to open an existing document
- close the current (empty) one
- search for your document in tree hierarchy and finally open it

Then you add the ":" that you forgot, save and close for testing it again.

And you have to do it again if you want to change anything.
It can get very annoying, especially for students leaning the language and making many syntax errors.

It would be a real big plus if this could be simplified.


If nTxt is not developped anymore, maybe I or someone else could modify it to allow these features (I didn't see any license, but the sources are given...) Just asking...
With the source, anything is possible :) (well, almost)

Offline bisam

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #153 on: October 09, 2014, 04:24:08 pm »
I tried to have a look at the source... and happened what I thought it would happen : didn't understand !
Sadly, I think my knowledge of C programming is way too small to try anything.

So, if anyone is interested too by these propositions, feel free to do it. I promise to be very grateful  :love:

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #154 on: October 10, 2014, 02:30:42 pm »
Here is a version that asks if you want to open the last opened file or create a new one at program launch.
Opening MicroPython directly from nTxt shouldn't be hard to implement, but MicroPython crashes the emulator with "Invalid new processor mode" when it exits (OS 3.6, Ndless r1011, MicroPython taken from here), so I haven't really looked into it.

Also this was a quick hack, so I might have broken something :P

Offline bisam

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #155 on: October 10, 2014, 04:35:06 pm »
 :w00t: That's nice, compu.
I didn't try it yet, but thanks for beeing the first to shoot...

Also, one of my students noticed that there is no key combination for the % character in nTxt. As it symbolizes "modulo" in Python, it is clearly needed, so it should be added to the priority list.

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #156 on: October 10, 2014, 05:24:30 pm »
Oh, you're right. I've mapped % to the flag key for now, because I didn't really know where else to put it :P
You can look at all the key combos in input.c, so if someone has a better idea we can still change it.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: nTxt - Nspire Text Editor
« Reply #157 on: October 10, 2014, 07:25:11 pm »
Nice.

Also, could someone host it on a github repo (preferably lkj ?) and could add several contributors so that it'd be easier for anyone to help out :)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #158 on: October 11, 2014, 04:51:14 pm »
Also, one of my students noticed that there is no key combination for the % character in nTxt. As it symbolizes "modulo" in Python, it is clearly needed, so it should be added to the priority list.
The other characters which aren't possible to input right now are #, $, @. They also may be needed sometimes, so we should choose key combinations to input them. Any suggestions?
Also, could someone host it on a github repo (preferably lkj ?) and could add several contributors so that it'd be easier for anyone to help out :)
I created a github repo at https://github.com/lkjcalc/nTxt.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: nTxt - Nspire Text Editor
« Reply #159 on: October 11, 2014, 10:19:01 pm »
Great, thanks !

I've forked the repo and made some changes - not feature wise, though, but code reformatting, include Compu's changes, added the changelog, eliminate some warnings etc.
https://github.com/adriweb/nTxt/commits/master

I'll make a pull request.
Edit : there, https://github.com/lkjcalc/nTxt/pull/1
« Last Edit: October 11, 2014, 10:25:15 pm by Adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #160 on: October 12, 2014, 01:18:07 pm »
Nice, thanks.

I merged the pull request and removed some of the things with a comment "unused ?". Some others of them aren't really unused, though.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: nTxt - Nspire Text Editor
« Reply #161 on: October 12, 2014, 02:15:48 pm »
Yeah, some of them I wasn't sure - it was noted by the IDE as unused but ... yeah.

Also some imports were unused (or redundant rather) so I removed them
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline matteob92

  • LV3 Member (Next: 100)
  • ***
  • Posts: 40
  • Rating: +0/-0
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #162 on: November 03, 2015, 09:35:48 am »
Nice, thanks.

I merged the pull request and removed some of the things with a comment "unused ?". Some others of them aren't really unused, though.
Hi lkj, is passed more than a year till today : have you some news, I hope positively? :)

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #163 on: November 05, 2015, 04:51:35 am »
Hi matteob92. I actually haven't worked on nTxt during this year, for multiple reasons. Firstly, studying at university left me with almost no time for programming. Secondly, I didn't know what to do next with nTxt: all the features I had suggested back then are almost useless without unicode support, and implementing that would require too much work. Also, pdfs or the built-in documents are better suited for most usage cases of those things.
If you want something added, you cann suggest it and maybe I'll do it, or implement it yourself, the code is on github ;)

Offline matteob92

  • LV3 Member (Next: 100)
  • ***
  • Posts: 40
  • Rating: +0/-0
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #164 on: November 05, 2015, 11:27:33 am »


Hi matteob92. I actually haven't worked on nTxt during this year, for multiple reasons. Firstly, studying at university left me with almost no time for programming. Secondly, I didn't know what to do next with nTxt: all the features I had suggested back then are almost useless without unicode support, and implementing that would require too much work. Also, pdfs or the built-in documents are better suited for most usage cases of those things.
If you want something added, you cann suggest it and maybe I'll do it, or implement it yourself, the code is on github ;)

Unfortunately I could suspect it reading your post #152, fortunately you're still there after a year!
I understood your reasons, probably you're right about pdfs (but I don't know what you mean for 'built-in documents')
Honestly I would receive my first TI-nspire CX CAS probably tomorrow : is used, give me the time to downgrade OS and install Ndless 3.6 and I'll report to you suggestions/idea if I something of interesting ;)
About github, you have a private message :(