Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: lkj on October 10, 2012, 01:37:13 pm

Title: nTxt - Nspire Text Editor
Post by: lkj on October 10, 2012, 01:37:13 pm
nTxt is a text editor for the Nspire. It requires Ndless to be installed on your calculator.

Some of its features:
- open/save files anywhere in the file system
- cut, copy & paste
- search
- various navigation commands (page up/down etc)
See the readme for a more detailed description.

Tell me what you think and if you have suggestions for improvement  :)

The code is on github: https://github.com/lkjcalc/nTxt (https://github.com/lkjcalc/nTxt)
 
Latest download also on github: https://github.com/lkjcalc/nTxt/releases (https://github.com/lkjcalc/nTxt/releases)


Spoiler For original 1st post:
I'm working on a new text editor for the Nspire because I never really understood how to use the existing one (http://ourl.ca/8679) and it isn't being worked on anymore.

It's already working on both cx and b/w, and you can
- write almost all characters
- delete characters
- navigate with the left/right arrow keys
- save your file anywhere in the filesystem

I will surely add
- opening files
- navigating with up/down arrows
- menus
Title: Re: nTxt - Nspire Text Editor
Post by: Hayleia on October 10, 2012, 03:00:28 pm
Tell me what you think and if you have suggestions for improvement  :)
Well, first feature request, of course, opening files. I don't see the point of saving them if we can't open them :P
Secondly, I didn't try, but are those txt real txt ? I mean that if I open it with Notepad on my PC, will it display fine ?
Thirdly, the interface is lacking. Could you add on the left a column with the number of the line for example ?
And the last thing, I didn't manage to save properly using Ctrl+S. Quitting and saving poduced a noname file but when I tried to save with Ctrl+S, I wrote /documents/nTxt/test and there was no test file ???

Other than this, it seems great already, good job :D
Title: Re: nTxt - Nspire Text Editor
Post by: CompSystems on October 10, 2012, 03:04:55 pm
Please may also develop a version for PC.

The existing program many years ago that no improvement

http://www.ti-bank.fr/index.php?mod=archives&ac=voir&id=397
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 10, 2012, 03:24:39 pm
Tell me what you think and if you have suggestions for improvement  :)
Well, first feature request, of course, opening files. I don't see the point of saving them if we can't open them :P
I'm working on this right now :P

Quote
Secondly, I didn't try, but are those txt real txt ? I mean that if I open it with Notepad on my PC, will it display fine ?
They're normal txt, but notepad won't display newlines correctly because they are unix style.
Quote
Thirdly, the interface is lacking. Could you add on the left a column with the number of the line for example ?
I think other things are more important right now, so this will take a while.
Quote
And the last thing, I didn't manage to save properly using Ctrl+S. Quitting and saving poduced a noname file but when I tried to save with Ctrl+S, I wrote /documents/nTxt/test and there was no test file ???
You probably just couldn't see it because the documents screen isn't refreshed. This doesn't work with ndless currently, sorry. After a reboot it should be there.
Quote
Other than this, it seems great already, good job :D
Thanks for testing ;)


Please may also develop a version for PC.

The existing program many years ago that no improvement

http://www.ti-bank.fr/index.php?mod=archives&ac=voir&id=397
This program doesn't have anything to do with my program, it's just the same name.
Title: Re: nTxt - Nspire Text Editor
Post by: compu on October 10, 2012, 03:46:48 pm
You probably just couldn't see it because the documents screen isn't refreshed. This doesn't work with ndless currently, sorry. After a reboot it should be there.
You can refresh the documents screen by using refresh_osscr() ;)

And the last thing, I didn't manage to save properly using Ctrl+S. Quitting and saving poduced a noname file but when I tried to save with Ctrl+S, I wrote /documents/nTxt/test and there was no test file ???
You probably have to add the .tns ending.

And it's always nice to see new Nspire projects :)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 10, 2012, 04:21:16 pm
You probably just couldn't see it because the documents screen isn't refreshed. This doesn't work with ndless currently, sorry. After a reboot it should be there.
You can refresh the documents screen by using refresh_osscr() ;)
I thought it crashed the classic nspires, but I can't reproduce it ??? I'll re-add it to my code.

And the last thing, I didn't manage to save properly using Ctrl+S. Quitting and saving poduced a noname file but when I tried to save with Ctrl+S, I wrote /documents/nTxt/test and there was no test file ???
You probably have to add the .tns ending.[/quote]
You're right, I forgot to say that you'll only see your documents if you add the .tns ending. Should I modify nTxt to add it automatically?
Quote
And it's always nice to see new Nspire projects :)
I have the feeling that Nspire development is getting a bit more active again lately :)
Title: Re: nTxt - Nspire Text Editor
Post by: Hayleia on October 11, 2012, 01:09:22 am
Tell me what you think and if you have suggestions for improvement  :)
Well, first feature request, of course, opening files. I don't see the point of saving them if we can't open them :P
I'm working on this right now :P
If you are lazy (and I won't blame you for this :P), you can first make your program work with file association so you don't have to code a file browser ;)

And the last thing, I didn't manage to save properly using Ctrl+S. Quitting and saving poduced a noname file but when I tried to save with Ctrl+S, I wrote /documents/nTxt/test and there was no test file ???
You probably have to add the .tns ending.
Lol, that's true XD

You're right, I forgot to say that you'll only see your documents if you add the .tns ending. Should I modify nTxt to add it automatically?
That would be a good idea. Because now I have a file in my calc that I don't even know how to remove since I don't see it :-\
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 11, 2012, 04:55:11 pm
That would be a good idea. Because now I have a file in my calc that I don't even know how to remove since I don't see it :-\

You can always delete a file in the student software or computer link, maybe also tilp, even files which don't show up on the calculator (they still have to be in the Documents folder, though).

I completely forgot about file association, thanks for mentioning it :)

Today only opening with ctrl+o if you know the path, no file browser. Maybe file association tomorrow ;D
Title: Re: nTxt - Nspire Text Editor
Post by: cyanophycean314 on October 11, 2012, 05:28:07 pm
I'll try this soon, and good job!! :D

And yeah, this will probably take a while, but you can try adding syntax highlighting like nwriter.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 12, 2012, 06:21:49 pm
Thanks :)

And yeah, this will probably take a while, but you can try adding syntax highlighting like nwriter.
As soon as it has all basic editor features, I'll start implementing such programming features :)


New release: file association support, some bug fixes.
Title: Re: nTxt - Nspire Text Editor
Post by: Hayleia on October 15, 2012, 12:29:17 pm
New release: file association support, some bug fixes.
I somehow missed that release but that is great :D
Does it automatically add the entry in the ndless.cfg if it is missing or do we have to add it manually ?

edit Bug reports and feature requests
- I don't manage to "save as" with Ctrl+Shift+S. When I do Ctrl+Shift+S, nothing happens ???
- Adding the down/up keys to go to the next/previous line would be great :D
Title: Re: nTxt - Nspire Text Editor
Post by: aeTIos on October 15, 2012, 01:20:10 pm
So what I get from this is that this is a raw text file editor?
Can you for example also make .cht.tns files with this? (would be awesome since then we can change cheats on calc)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 15, 2012, 05:26:37 pm
I've been working on a menu but didn't finish yet because of too much homework :(

I somehow missed that release but that is great :D
Does it automatically add the entry in the ndless.cfg if it is missing or do we have to add it manually ?

edit Bug reports and feature requests
- I don't manage to "save as" with Ctrl+Shift+S. When I do Ctrl+Shift+S, nothing happens ???
- Adding the down/up keys to go to the next/previous line would be great :D

It doesn't add itself to ndless.cfg.tns because I was unsure if this was good style. Do other programs do it?
You can always open the file with nTxt and add the line (though it's a pita without up/down arrow navigation).

Yeah I've also noticed the bug with "save as". I'm unsure why it doesn't work, but once there's a menu it isn't a problem anymore.

Adding the down/up keys will be top priority after the menu works  ;)

So what I get from this is that this is a raw text file editor?
Can you for example also make .cht.tns files with this? (would be awesome since then we can change cheats on calc)
Sure, it's normal ascii raw text files.
Title: Re: nTxt - Nspire Text Editor
Post by: ExtendeD on October 16, 2012, 07:34:05 am
I'm considering making the auto-update of ndless.cfg standard with new functions in libndls.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 16, 2012, 12:20:01 pm
That would be great, for coders and for users.

Edit: Update

Now there's a menu for opening, saving and save as (additionally to the shortcuts) :)
Title: Re: nTxt - Nspire Text Editor
Post by: Hayleia on October 16, 2012, 01:41:45 pm
Edit: Update

Now there's a menu for opening, saving and save as (additionally to the shortcuts) :)
O.O
/me clicks on +1 then on download :P
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 16, 2012, 01:43:49 pm
If you have ideas how to make it look better, please tell me ;)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 26, 2012, 04:22:46 pm
Up and down arrow keys are finally implemented! But lines longer than what fits on the screen are still interpreted as one line.
And there's now a third button when pressing esc, so that you can cancel closing and keep the document open.

I've many ideas for new features, but I'm not sure which are important. What should I implement next?
Title: Re: nTxt - Nspire Text Editor
Post by: Hayleia on October 30, 2012, 02:52:22 am
As always, great work :thumbsup:

I've many ideas for new features, but I'm not sure which are important. What should I implement next?
I think that a great addition would be text selection, then copy/cut and paste :D

About text enrichment (write in bold, etc), wouldn't that break compatibility with the PC txt format ?
If that doesn't, then you can add it too. If it does, according to me it is not a great loss to not have it ;)
Title: Re: nTxt - Nspire Text Editor
Post by: aeTIos on October 30, 2012, 03:04:37 am
I don't care for text enrichment. If I want to emphasize something in a txt, I put it between /slashes/ or _underscores_.
What I would like is line numbers and a differently-colored entry line (like gedit) :)
Title: Re: nTxt - Nspire Text Editor
Post by: Lionel Debroux on October 30, 2012, 03:14:52 am
nTxt already allows typing raw markup text in txtrider/Hib-View/uView/WordRider rich text format, which is extremely more lightweight than TI's XML brain-damaged bloat.
What we would need is a reader for that format - effectively, a Nspire equivalent of Hib-View / uView.
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on October 30, 2012, 10:44:25 am
It's really a good program ! But you may improve those points :
- it is impossible to scroll, we can just go on the right or the left, and so to see a following page, we have tu click 2000 times on the right touch
- when  open your readme.txt with nTxt, a weird character appears on each new line
Good luck !
Title: Re: nTxt - Nspire Text Editor
Post by: Hayleia on October 30, 2012, 11:14:21 am
- it is impossible to scroll, we can just go on the right or the left, and so to see a following page, we have tu click 2000 times on the right touch
This has already been implemented in the latest version with the support for the up and down keys :)

- when  open your readme.txt with nTxt, a weird character appears on each new line
This is because newlines are Unix style and you are probably opening a Windows readme ;)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 30, 2012, 11:19:02 am
Thanks for your comments and suggestions :)

As always, great work ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)

I've many ideas for new features, but I'm not sure which are important. What should I implement next?
I think that a great addition would be text selection, then copy/cut and paste :D

About text enrichment (write in bold, etc), wouldn't that break compatibility with the PC txt format ?
If that doesn't, then you can add it too. If it does, according to me it is not a great loss to not have it ;)

I'll try text selection ;)

Yeah, text enrichment would need another format than txt. I don't know what txtrider and the others which Lionel mentioned are, I'll have to read up on it.

I don't care for text enrichment. If I want to emphasize something in a txt, I put it between /slashes/ or _underscores_.
What I would like is line numbers and a differently-colored entry line (like gedit) :)
So you think horizontal scrolling would be better than wrapping lines?

It's really a good program ! But you may improve those points :
- it is impossible to scroll, we can just go on the right or the left, and so to see a following page, we have tu click 2000 times on the right touch
- when  open your readme.txt with nTxt, a weird character appears on each new line
Good luck !
In the latest update you can also use the up/down arrows, is that still too inconvenient?

I know about the weird character, it's the carriage return which I didn't implement yet.


Should I use a different and smaller font?
Title: Re: nTxt - Nspire Text Editor
Post by: Lionel Debroux on October 30, 2012, 11:30:43 am
The format initiated by the old and buggy txtrider, and IIRC slightly expanded by the newer and less unstable Hib-View and uView, is the de-facto standard rich text format on the TI-68k series :)
Years before TI came up with an ultra-heavyweight XML brain damage for the Nspire (made much worse in OS 3.2), the TI-68k series had formatted text (simple #-based markup that can be edited by humans with the standard text editor of the calculator) with bold, underline, multiple font sizes, image support, thanks to its programmability and the work of third-party programmers.
Title: Re: nTxt - Nspire Text Editor
Post by: aeTIos on October 30, 2012, 11:33:02 am
I would say text wrapping or horizontal scrolling should be optional to not break stuff. I actually never have it on, but whatever.

By the way, I just tested 08 and it crashes my calc on trying to save.
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on October 30, 2012, 12:10:46 pm
So you think horizontal scrolling would be better than wrapping lines?
Mmh, with horizontal scrolling, it would be harder to see the whole text. But 2 touches for vertical scroll would be usefull.

Should I use a different and smaller font?
A smaller font would enable to see more text so I think it would be a great idea. But you can also give the choice with the menu.

Could you also add the possibility of opening several texts ? And the possiblity of copying/pasting would be great !
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 30, 2012, 03:19:39 pm
The format initiated by the old and buggy txtrider, and IIRC slightly expanded by the newer and less unstable Hib-View and uView, is the de-facto standard rich text format on the TI-68k series :)
Years before TI came up with an ultra-heavyweight XML brain damage for the Nspire (made much worse in OS 3.2), the TI-68k series had formatted text (simple #-based markup that can be edited by humans with the standard text editor of the calculator) with bold, underline, multiple font sizes, image support, thanks to its programmability and the work of third-party programmers.
Ah ok. So it's not necessary that I do something about it, because it would need a viewer and not new editor features.

I would say text wrapping or horizontal scrolling should be optional to not break stuff. I actually never have it on, but whatever.

By the way, I just tested 08 and it crashes my calc on trying to save.
Ok, that's not high priority then.

I can't reproduce this crash. How did you save (from the menu, save, save as or with ctrl+s)? And what filename/path did you enter?


So you think horizontal scrolling would be better than wrapping lines?
Mmh, with horizontal scrolling, it would be harder to see the whole text. But 2 touches for vertical scroll would be usefull.

Should I use a different and smaller font?
A smaller font would enable to see more text so I think it would be a great idea. But you can also give the choice with the menu.

Could you also add the possibility of opening several texts ? And the possiblity of copying/pasting would be great !

What do you mean by "2 touches for vertical scroll"? Multitouch on the touchpad? I believe that's not possible hardware wise.

Do you mean opening several texts simultaneously in tabs?
Title: Re: nTxt - Nspire Text Editor
Post by: Lionel Debroux on October 30, 2012, 03:31:08 pm
Quote
Quote
The format initiated by the old and buggy txtrider, and IIRC slightly expanded by the newer and less unstable Hib-View and uView, is the de-facto standard rich text format on the TI-68k series :)
Years before TI came up with an ultra-heavyweight XML brain damage for the Nspire (made much worse in OS 3.2), the TI-68k series had formatted text (simple #-based markup that can be edited by humans with the standard text editor of the calculator) with bold, underline, multiple font sizes, image support, thanks to its programmability and the work of third-party programmers.
Ah ok. So it's not necessary that I do something about it, because it would need a viewer and not new editor features.
Yup, that's what I meant in http://ourl.ca/17190;msg=267239 by "nTxt already allows typing raw markup text" :)
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on October 30, 2012, 03:49:52 pm
What do you mean by "2 touches for vertical scroll"? Multitouch on the touchpad? I believe that's not possible hardware wise.
2 touches for scrollling page per page, so faster than line per line.

Do you mean opening several texts simultaneously in tabs?
Yes, I do.
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on November 01, 2012, 06:49:04 pm
Some other ideas came to my mind :
- add characters (square ², grec, french letters as é, è, ç ...)
- be able to connect a real keybord with USB :P
Title: Re: nTxt - Nspire Text Editor
Post by: Adriweb on November 02, 2012, 04:49:09 am
Well, full support of UTF-8 ? :P
Title: Re: nTxt - Nspire Text Editor
Post by: Jim Bauwens on November 02, 2012, 02:49:02 pm
Well, full support of UTF-8 ? :P

(I haven't been following this thread, so maybe this was mentioned before)
It would be smart to use TI's font and functions for this, as they support UTF-16. You could ask Levak for the syscalls et all, as he has done some work in this area.
Title: Re: nTxt - Nspire Text Editor
Post by: Rhombicuboctahedron on November 03, 2012, 01:21:10 pm
If you are going to use a keyboard, I think the best way would be to make a text editor for linux (yeah, it has nano, but if you don’t press enter, you get one long ugly line) and try to make it so that you can save your files
Title: Re: nTxt - Nspire Text Editor
Post by: DJ Omnimaga on November 03, 2012, 01:26:40 pm
Glad to see a new text editor. I didn't follow the other one progress much but I didn't realize that it wasn't being maintained anymore.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on November 03, 2012, 09:37:42 pm
Sorry for not replying, but I wanted an update first  :P

Update:
-select text
-delete selected text
-cut, copy and paste

What do you mean by "2 touches for vertical scroll"? Multitouch on the touchpad? I believe that's not possible hardware wise.
2 touches for scrollling page per page, so faster than line per line.
Do you mean opening several texts simultaneously in tabs?
Yes, I do.
I'll keep the idea with multiple texts in mind, but it won't come soon.
As for the scrolling, which keys would you suggest for page up/down?

Some other ideas came to my mind :
- add characters (square ², grec, french letters as é, è, ç ...)
- be able to connect a real keybord with USB :P
The french letters are already there, you just can't enter them :P
I'll look into utf-8 or 16 and provide some way to enter special characters similar to TI's OS.

If Ndless provides some USB routines I will look into it, but as of today it's too difficult for me.

Well, full support of UTF-8 ? :P
(I haven't been following this thread, so maybe this was mentioned before)
It would be smart to use TI's font and functions for this, as they support UTF-16. You could ask Levak for the syscalls et all, as he has done some work in this area.
I'll ask Levak, if he has syscalls to use TI's fonts and string manipulation and disp functions that would save me some work ;)

If you are going to use a keyboard, I think the best way would be to make a text editor for linux (yeah, it has nano, but if you don’t press enter, you get one long ugly line) and try to make it so that you can save your files
I have never done any linux dev and there surely is a better editor which could be ported, and besides I have a non-CX and can't use linux. Someone else will have to do this :)

Glad to see a new text editor. I didn't follow the other one progress much but I didn't realize that it wasn't being maintained anymore.
IIRC the maintainer said he would come back to Omni and continue development in the summer holidays, but he didn't log in for five months and the last project update was almost one year ago :(
Title: Re: nTxt - Nspire Text Editor
Post by: ExtendeD on November 04, 2012, 03:11:44 am
Nice :)

If Ndless provides some USB routines I will look into it, but as of today it's too difficult for me.

I have worked again yesterday on USB support. The *BSD USBDI functions (http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/usb/usbdi.h?rev=1.35;content-type=text%2Fplain) have been pushed to the Ndless trunk (altough most are untested at the moment).
It still need to be stabilized. I'll try to hook into the OS event management. Ndless programs such as nTxt will then just need to use the event read function to pop key events, whether they come from the pad or a USB keyboard.
Title: Re: nTxt - Nspire Text Editor
Post by: Lionel Debroux on November 04, 2012, 03:40:36 am
Pretty good ;)

But don't forget to work on integrating the bFLT loader as well - it's very important :)
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on November 05, 2012, 04:04:27 am
The selection of text works well ! Good job. But when I try to open a document with CTRL+O, my caltos restarts.

I'll keep the idea with multiple texts in mind, but it won't come soon.
As for the scrolling, which keys would you suggest for page up/down?
CTRL 9 : page up
CTRL 3 : page down
CTRL 7 : go to the start of the document
CTRL 1 : go to the end

The french letters are already there, you just can't enter them :P
I'll look into utf-8 or 16 and provide some way to enter special characters similar to TI's OS.

If Ndless provides some USB routines I will look into it, but as of today it's too difficult for me.
Well, you could enable us to enter a letter by its hexadecimal code, and do so that we can choose our shortcut for the letters.
You could for that use the "var" key as the "alt" key on a computer.
As new keys for new characters, I suggest :
- the [²] key for "²"
- CTRL + [²] (√) for "√"
- the flag key for changing a letter (e=>é=>è=>ê=>ë, a=>à, e=>€, c=>ç ...)
- a list of characters when we press on the book key

Other suggestions :
- select all : CTRL A
- previous action : CTRL Z
- a faster cursor
- be able to choose a smaller font-size
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on November 05, 2012, 02:20:38 pm
Nice :)

If Ndless provides some USB routines I will look into it, but as of today it's too difficult for me.

I have worked again yesterday on USB support. The *BSD USBDI functions (http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/usb/usbdi.h?rev=1.35;content-type=text%2Fplain) have been pushed to the Ndless trunk (altough most are untested at the moment).
It still need to be stabilized. I'll try to hook into the OS event management. Ndless programs such as nTxt will then just need to use the event read function to pop key events, whether they come from the pad or a USB keyboard.
Very nice, keep up the good work  :)


The selection of text works well ! Good job. But when I try to open a document with CTRL+O, my caltos restarts.
It works for me. Try updating ndless. If this doesn't fix it, could you send me the file that causes a crash?

Quote
I'll keep the idea with multiple texts in mind, but it won't come soon.
As for the scrolling, which keys would you suggest for page up/down?
CTRL 9 : page up
CTRL 3 : page down
CTRL 7 : go to the start of the document
CTRL 1 : go to the end
Ok, I'll do that in the next update.

Quote
The french letters are already there, you just can't enter them :P
I'll look into utf-8 or 16 and provide some way to enter special characters similar to TI's OS.

If Ndless provides some USB routines I will look into it, but as of today it's too difficult for me.
Well, you could enable us to enter a letter by its hexadecimal code, and do so that we can choose our shortcut for the letters.
You could for that use the "var" key as the "alt" key on a computer.
As new keys for new characters, I suggest :
- the [²] key for "²"
- CTRL + [²] (√) for "√"
- the flag key for changing a letter (e=>é=>è=>ê=>ë, a=>à, e=>€, c=>ç ...)
- a list of characters when we press on the book key
I'm currently using CTRL like the alt key on the computer, but VAR may indeed be better.
Yeah, the flag key and the character list are on my todo list. But it may take some time.

Quote
Other suggestions :
- select all : CTRL A
- previous action : CTRL Z
- a faster cursor
- be able to choose a smaller font-size
CTRL A is a good idea and easy to do.
CTRL Z is too difficult (at least just now)
I've had an idea for a faster cursor, I'll look when I have time for it.
I'll look what I can do about fonts.
Title: Re: nTxt - Nspire Text Editor
Post by: TheNlightenedOne on November 15, 2012, 06:35:30 pm
Any updates?
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on November 16, 2012, 05:32:19 pm
I've too much to do for school and the utf-16 thing is rather time consuming (I have to write the disp part myself or finish Levak's work to use syscalls because he didn't have time yet to complete it and make it stable).
I'll possibly make an update with some small things like ctrl+a and pg up/dn next week.
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on December 02, 2012, 11:28:43 am
Any update ?
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 02, 2012, 03:32:13 pm
I decided to rewrite much more than I initially wanted and therefore haven't completed everything I wanted in the next release (no page up/down, no home/end), but some things are already here:
- ctrl + a
- go to start and end of document (with ctrl+7 and ctrl+1 respectively)
- there should be less glitches with lines longer than what fits on one line on the screen, up/down arrow navigation works with them now
- fixed some bugs


What keys should I use for home and end? I couldn't find any key combo in TI's apps which does that.
The next update shouldn't take too long, "only" some bug fixing with page up and down.

mdr1: BTW, do you have any details on which files made it crash for you?
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 05, 2012, 05:48:41 pm
Update: page up and down implemented as ctrl+9 and ctrl+3  :)
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on December 08, 2012, 01:12:32 pm
Very nice !

mdr1: BTW, do you have any details on which files made it crash for you?
There is a crash when I try to open/save/save as on the menu. I've got a CX CAS.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 15, 2012, 12:55:16 pm
Ok, try this one. It should tell you to update if your ndless is too old.
Title: Re: nTxt - Nspire Text Editor
Post by: Vogtinator on December 15, 2012, 01:57:16 pm
Nope, still crashes. Im using the most recent OS and ndless.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 17, 2012, 02:27:06 pm
Does it instantly crash when you press MENU or does it show something first? I don't have a physical CX and on the emulator it never crashes :(
Title: Re: nTxt - Nspire Text Editor
Post by: Vogtinator on December 17, 2012, 02:42:22 pm
I can type whatever I want and it shows up, if I press Ctrl+O it asks whether I want to save it. Yes->Crash No->Crash
So it seems to be a problem with the file choose dialog (or whatever comes next)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 17, 2012, 03:03:04 pm
Ah, we're talking about those menus. Does the "test" msgbox in this build show up or does it crash before?
Title: Re: nTxt - Nspire Text Editor
Post by: Vogtinator on December 17, 2012, 03:05:58 pm
Crashes after the message.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 17, 2012, 03:07:57 pm
And before the next one?
Title: Re: nTxt - Nspire Text Editor
Post by: Vogtinator on December 17, 2012, 03:09:09 pm
Same as nTxtTest.tns.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 17, 2012, 03:19:08 pm
Then the problem is with the libndls function show_msg_user_input, if you're really sure that your ndless installation is the latest beta release (http://www.unsads.com/projects/nsptools/downloader/download/release/1 (http://www.unsads.com/projects/nsptools/downloader/download/release/1)).

Code: [Select]
int inputlen;
show_msgbox("test", "test");
inputlen = show_msg_user_input("Open File", "", path, &tmp);
show_msgbox("test2", "test2");
Title: Re: nTxt - Nspire Text Editor
Post by: Vogtinator on December 17, 2012, 03:39:25 pm
Tried to compile that, doesn't work, too.
Checked the version you linked to, wow 685 > 643.
At the time I downloaded it (1 month ago) it was listed as most recent version O.o
I try updating Ndless...

Edit: Works *facepalm*
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 17, 2012, 03:47:00 pm
So updating ndless has fixed the crashes?

Quote
Checked the version you linked to, wow 685 > 643.
At the time I downloaded it (1 month ago) it was listed as most recent version O.o
The SVN trunk is already at 730 ;)
Title: Re: nTxt - Nspire Text Editor
Post by: Vogtinator on December 17, 2012, 03:52:40 pm
Quote
So updating ndless has fixed the crashes?
Yes.. (still facepalming myself)
Quote
The SVN trunk is already at 730 ;)
For OS 3.3 already? ;)

Bug report: It doesn't want to react to Ctrl+O before you release Ctrl.
Feature request: File selector dialog: I can't remember how my files are called..
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 17, 2012, 04:44:55 pm
Very well :)

Quote
For OS 3.3 already? ;)
No, "only" USB syscalls and some fixes :)

Quote
Bug report: It doesn't want to react to Ctrl+O before you release Ctrl.
Changed that. But I can't do anything about Ctrl+S not reacting until all keys are released.

I intend to make a filebrowser, but I remember hearing that it isn't too easy. And the rest of my code isn't perfectly stable yet, but I don't know where to look for bugs.

I have to write a paper for a final project at school, which I have to finish in the next four weeks, so I shouldn't work on nTxt too much...
Title: Re: nTxt - Nspire Text Editor
Post by: MasterGeek on December 21, 2012, 06:28:32 pm
For the file browser how about talking to hoffa about somehow integrating either Ndless Commander into nTxt or nTxt into Ndless Commander? There is source code so you could play around with it for a bit.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 24, 2012, 07:37:13 pm
You can now search your text for a string :)
Find string: Ctrl+F, find next: Ctrl+G, find previous: Ctrl+Shift+G

There are also some fixes to the selection of text and if the installed ndless is too old, it tells you to update instead of crashing.


For the file browser how about talking to hoffa about somehow integrating either Ndless Commander into nTxt or nTxt into Ndless Commander? There is source code so you could play around with it for a bit.
There are at least three file browsers I could look at, but I would still need some time.
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on December 27, 2012, 06:30:40 pm
Really good ! Thank you !
I updated ndless and now it works perfectly.
But there's a weird thing : it became impossible to enter the "<" character.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 27, 2012, 06:48:02 pm
Thanks :)

But there's a weird thing : it became impossible to enter the "<" character.
Oops, I've broken all characters for which you have to press the ctrl key :(
But it's easy to fix, will be fixed in the next release.

Btw, do you have a suggestion for keys for an equivalent of HOME and END on the pc keyboard?
Title: Re: nTxt - Nspire Text Editor
Post by: Nick on December 27, 2012, 06:50:03 pm
Can you take ctrl-left and ctrl-right? then you could make these home and end, and ctrl-shift-right/left to select them, just like normal pc's
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on December 27, 2012, 06:53:35 pm
Oops, I've broken all characters for which you have to press the ctrl key :(
But it's easy to fix, will be fixed in the next release.
Well, it disables me to program on BrainFuck which requires lots of "<". :P
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 27, 2012, 08:56:12 pm
Fixed your problem and added a filebrowser. It's still ugly, though. DON'T open themes.csv or files outside of /documents/, it will make your calc hang or crash as soon as you exit nTxt. And it doesn't display them correctly. I don't know exactly why, will look into this.

Can you take ctrl-left and ctrl-right? then you could make these home and end, and ctrl-shift-right/left to select them, just like normal pc's
Ok, I'll do that.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 28, 2012, 06:08:15 pm
Home and end added as ctrl+left and ctrl+right, but I just noticed that the cursor can't be placed after the last letter on a line longer than what fits on the screen the way I currently handle the cursor, as it's at the start of the next line then. Would you mind if I let it that way? Because else I'd have to do a hacky solution :S
Title: Re: nTxt - Nspire Text Editor
Post by: Vogtinator on December 28, 2012, 06:19:43 pm
Can't you do it like nano?
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 28, 2012, 06:21:58 pm
How does nano do it? I only know Windows programs
Title: Re: nTxt - Nspire Text Editor
Post by: Vogtinator on December 28, 2012, 06:32:47 pm
Hmm, don't know how to describe..
It does like PgUp/PgDown on that line if you go too far and displays a "$" at the beginning.

Code: [Select]
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaac$         ->   $aaaaccccccccbbbbbbbbbbbbbbbbbba
                              ^Cursor              ^Cursor
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 28, 2012, 06:34:34 pm
You mean it has horizontal scrolling and end scrolls one screen width to the left?
Title: Re: nTxt - Nspire Text Editor
Post by: Vogtinator on December 28, 2012, 06:40:53 pm
Yes *facepalm myself*...
It does also indicate with a "$" at the end of a line it's longer than the screen.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 28, 2012, 06:43:45 pm
I initially didn't want to support that type of linewrapping (as I don't particularly like it in TI's OS), but everyone answer here who would also like that, so I can see if many people request it. Edit: found out how to add a poll. Vote!
Title: Re: nTxt - Nspire Text Editor
Post by: Vogtinator on December 28, 2012, 06:53:10 pm
Im getting some Ideas..
How about implementing touchpad mouse support?
If you hold down CTRL while using the touchpad you can use the cursor like a mouse?
And if you're moving the cursor while pressing the touchpad/holding down SHIFT, you'd be able to scoll?
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 28, 2012, 06:57:37 pm
Added a poll about the horizontal scrolling thing.
I don't know about the mouse cursor (as I think it would be rather difficult to program), but scrolling with the touchpad is definitely something I want to add. I don't know yet how I'll do it exactly, though, as I haven't started implementing it.
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on December 29, 2012, 05:01:25 am
Are you thinking about opening several files ?
I voted yes for the horizontal scrolling, but we should be able to activate or no this option in a menu.

EDIT : I hope you don't forget the possibility of having a smaller font. :)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on January 01, 2013, 06:47:17 pm
Small update: (hopefully) the file browser doesn't crash anymore. I really hope it's fixed now. Report if it still crashes for you.
Apart from that I've only added a warning if you try to overwrite an existing file.


Are you thinking about opening several files ?
I voted yes for the horizontal scrolling, but we should be able to activate or no this option in a menu.

EDIT : I hope you don't forget the possibility of having a smaller font. :)
I'm thinking about opening several files, but there are some things which I think are more important.

If you all want horizontal scrolling, I'll add it, shouldn't be too difficult. It surely will be optional ;)

I still hope I can get a syscall for displaying text to work, that would solve the problem with the font.
Title: Re: nTxt - Nspire Text Editor
Post by: InspiredByCas on January 15, 2013, 12:01:21 pm
nTxt crashes when the file which is opened in nTxt, is changed via computer.
Then you have to do a hard reset.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on January 15, 2013, 04:50:01 pm
Did you make sure that you have the latest ndless revision installed?
If this doesn't solve the problem, can you send me the file or if you don't want to send it, tell me some details (size, what did you change via the computer, is it a normal text file and such things)?
Title: Re: nTxt - Nspire Text Editor
Post by: ExtendeD on January 15, 2013, 05:22:22 pm
lkj, maybe assert_ndless_rev() (http://hackspire.unsads.com/wiki/index.php/Libndls#Platform) would help getting rid of those "not latest Ndless revision" issues?
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on January 15, 2013, 06:21:01 pm
Actually it's already it in the code for a long time, but at first I put a too old revision. That should be fixed in the latest nTxt, though, and the issue gone.
Title: Re: nTxt - Nspire Text Editor
Post by: InspiredByCas on January 16, 2013, 08:11:36 am
I will test that crash on file change further, yesterday I haven't had much time.

Another good feature would be, if you open a file and do NOT modify it, it should not ask if the file should be saved.

Title: Re: nTxt - Nspire Text Editor
Post by: aeTIos on January 16, 2013, 10:41:15 am
Please don't post anything related to cheating here <_<
Quote from: critor
Remember that cheating is bad and not to be taken lightly!
That's the view on cheating here, please don't risk a topic lock only because of this.
Title: Re: nTxt - Nspire Text Editor
Post by: InspiredByCas on January 16, 2013, 02:35:51 pm
Please don't post anything related to cheating here <_<
Quote from: critor
Remember that cheating is bad and not to be taken lightly!
That's the view on cheating here, please don't risk a topic lock only because of this.

Sorry.
I deleted that part of post.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on May 10, 2013, 06:18:26 pm
So I didn't have much time for calculator programming because of school (and actually still don't have, the exams are in three weeks), but today, after four months of waiting, I have an update  ;D


As always, if you encounter any bugs, report them please, if possible with some details on what exactly you did.
Title: Re: nTxt - Nspire Text Editor
Post by: AlexisVieira on May 11, 2013, 09:11:29 am
Seems good to me :) good job :) i don't encoutered any bugs yet
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on May 11, 2013, 10:14:02 am
Thanks :)
That's good
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on May 12, 2013, 05:29:21 am
Great, I thought the project was abandoned !

god job :)
Well, aren't you exaggerating a bit ? :p
Title: Re: nTxt - Nspire Text Editor
Post by: AlexisVieira on May 12, 2013, 11:52:31 am
Great, I thought the project was abandoned !

god job :)
Well, aren't you exaggerating a bit ? :p
l
lol, my mistake xD.
Title: Re: nTxt - Nspire Text Editor
Post by: sibr on May 19, 2013, 07:28:16 pm
hi, when i try to open a txt.tns file with ntxt i get all strange letters and symbols
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on May 20, 2013, 04:31:38 pm
What should the file you're trying to open contain? And is it a plain text file, i.e is it displayed normally if you open it with notepad on your computer?
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on June 20, 2013, 07:50:49 am
I found the bug which was probably causing all reported crashes. It was there since the beginning and caused by a very silly mistake: I reallocated a local copy of a pointer instead of the pointer itself, and it did only rarely crash because the address normally stayed the same. I hope I've fixed all bugs causing a crash now :)

Other than the bugfix there's only one small change: nTxt now registers itself for all files with the file extension ".txt", you don't have to do it by hand anymore.

To use the new nTxt, you have to update your Ndless to a newer revision than r797. Just install the latest public release ;)
Title: Re: Re: nTxt - Nspire Text Editor
Post by: DJ Omnimaga on June 20, 2013, 11:50:18 am
Nice, does it means that we can now run txt files directly from the documents menu now? I think mViewer did that with images and doing this with txt files would be cool, since sometimes you might want to quickly access your favorite game readme or school notes
Title: Re: nTxt - Nspire Text Editor
Post by: Legimet on June 20, 2013, 01:18:30 pm
Does it use the cfg_register_fileext() function recently added to Ndless in r797?
Title: Re: nTxt - Nspire Text Editor
Post by: Lionel Debroux on June 20, 2013, 01:20:44 pm
Certainly.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on June 20, 2013, 03:38:57 pm
DJ: Yes, you can open a document by just selecting it and pressing enter. You have to run the program once so it can register itself before this works, though.

Legimet: Yes, that's why you need r797 or above.
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on June 20, 2013, 03:57:27 pm
Nice, does it means that we can now run txt files directly from the documents menu now? I think mViewer did that with images and doing this with txt files would be cool, since sometimes you might want to quickly access your favorite game readme or school notes
We already were able to do so. The new thing is that the .cfg file is now automatically modified by the program.
Title: Re: Re: nTxt - Nspire Text Editor
Post by: DJ Omnimaga on June 20, 2013, 09:14:31 pm
Ok thanks for the info. :)
Title: Re: nTxt - Nspire Text Editor
Post by: Mr. Nick on July 31, 2013, 02:23:30 am
I just discovered this website and DJ, I have to say, you are the man. Great program. I saw you haven't posted in a month so hopefully your are still updating your program.

If I were to give any suggestion I'd say consider making the search feature not case-sensitive. Not a big deal at all but might be a nice addition
Title: Re: nTxt - Nspire Text Editor
Post by: Jonius7 on July 31, 2013, 06:30:08 am
Hello Mr. Nick, welcome to Omnimaga! You can introduce yourself here and start a new topic: http://www.omnimaga.org/index.php?board=10.0

Also this program isn't DJ Omnimaga's, the creator is lkj, as said on the first post.
Enjoy Omnimaga!
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on July 31, 2013, 08:54:54 pm
I just discovered this website and DJ, I have to say, you are the man. Great program. I saw you haven't posted in a month so hopefully your are still updating your program.
Yeah you're confusing me with DJ ;)
Thanks, though.
I'm still working on it, but I wasn't sure what to add next and therefore didn't make much progress. Thanks for the suggestion, should be easy to do.
Title: Re: Re: nTxt - Nspire Text Editor
Post by: DJ Omnimaga on August 01, 2013, 12:17:28 pm
Yeah I'm actually a different person lol. I am not involved in this program (nor Nspire development), although I created the site and ran it until 2011. Welcome here though! :)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on August 04, 2013, 01:07:14 pm
Minor update with case-insensitive search. Any other small requests?
Title: Re: nTxt - Nspire Text Editor
Post by: blauemauritius on August 04, 2013, 03:49:25 pm
Sounds good... Is it possible to get an update of the zip-file? This would be very nice.

Thanks in advance.

blauemauritius
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on August 05, 2013, 06:59:19 pm
Again an update  :)
- reworked the filebrowser, now you can also enter a filename (press the tab key to place the cursor in the filename input box or back)
- save now also uses the filebrowser (you don't have to type the full path where you want to save to anymore)


Sounds good... Is it possible to get an update of the zip-file? This would be very nice.

Thanks in advance.

blauemauritius
Sure, I just didn't attach it yesterday because there were almost no changes. And because I was already working on today's bigger update.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on August 06, 2013, 09:26:36 pm
The next update's already here!

If you keep a key pressed, the time it takes till it's accepted again gets much shorter after the second read now. (If you don't understand what I mean, just keep a key on your computer keyboard pressed. It will take some time till the keypress results in a 2nd input, but then it gets much faster)
I wouldn't have thought how much this helps with inputting things and moving the cursor ;)
Title: Re: nTxt - Nspire Text Editor
Post by: binly on August 07, 2013, 02:53:37 am
Wow, fast updates! Will try it out with a keyboard attached later (as long as this is in Lua?)
Title: Re: nTxt - Nspire Text Editor
Post by: Streetwalrus on August 07, 2013, 06:31:52 am
Nope that's an Ndless program. :P It will require extra coding for keyboard support.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on August 07, 2013, 10:00:51 am
Yeah, it's not Lua and doesn't support external keyboards (at the moment).
I think ExtendeD was planing on making it easier to add keyboard support to Ndless programs, but I don't know if/when that will happen.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on August 19, 2013, 02:03:15 pm
No new features this time, but I fixed some annoying "jumps" of the displayed part of the text and made other small improvements.
Title: Re: nTxt - Nspire Text Editor
Post by: Mixdata on September 06, 2013, 09:16:45 am
does ntxt work on a nspire cx cas?

i only get errors on my calc...
Title: Re: nTxt - Nspire Text Editor
Post by: Lionel Debroux on September 06, 2013, 09:29:46 am
Please provide basic information such as Nspire OS version, Ndless version and nTxt version, so that we can help you :)
Title: Re: nTxt - Nspire Text Editor
Post by: Mixdata on September 06, 2013, 09:34:34 am
ok sorry

TI nspire cx cas
v. 3.1.092
ndless-v3.1-beta-r643
ntxt18

if i start ntxt on the calc it says the file extension isnt supported
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on September 06, 2013, 09:37:53 am
That means ndless isn't correctly installed. You should update your ndless anyway, it's a very old version.
Title: Re: nTxt - Nspire Text Editor
Post by: Mixdata on September 06, 2013, 09:40:35 am
is ndless-​v3.​1-​beta-​r903 fine?
Title: Re: nTxt - Nspire Text Editor
Post by: Lionel Debroux on September 06, 2013, 09:46:50 am
Yes, it's the latest packaged version at the time of this writing.
Title: Re: nTxt - Nspire Text Editor
Post by: Mixdata on September 06, 2013, 10:10:48 am
i started ntxt for the first time and the esc/on button didnt work so i didnt have the chance to quit the programm. then i pressed the reset button.

now all works fine!

thx guys for helping ;D
Title: Re: Re: nTxt - Nspire Text Editor
Post by: DJ Omnimaga on September 06, 2013, 09:53:10 pm
Good to hear. Sometimes in some softwares it can be annoying to accidentally move a cursor twice due to quick key repeat or lack of delay after starting holding down a key.
Title: Re: nTxt - Nspire Text Editor
Post by: LowRule on October 25, 2013, 10:55:09 pm
Hey guys. I'm new to this and I'm not sure if I am doing any of this correctly. I installed the os 3.1.0.392 and ndless and copied the nTxt file onto my ti nspire cx cas. When I open it and attempt to open a file it says *TIMLP0501. I don't think I am doing something right lol.
Title: Re: nTxt - Nspire Text Editor
Post by: Legimet on October 25, 2013, 11:20:46 pm
You're trying to open a TI Nspire document, which is in an obfuscated binary format. nTxt is for plain text files.
Title: Re: nTxt - Nspire Text Editor
Post by: LowRule on October 26, 2013, 08:18:02 am
Okay thank you. How do I put plain text on it lol. Sorry I'm trying to put games and strategy guides on my calculator for when I have down time at work
Title: Re: nTxt - Nspire Text Editor
Post by: DJ Omnimaga on October 26, 2013, 11:21:49 am
I sadly didn't try this text editor in particular, but I wonder if just taking a computer txt file then renaming it from readme.txt to readme.txt.tns would work? I know this is how Mviewer works with images, but I could be wrong about text.
Title: Re: nTxt - Nspire Text Editor
Post by: aeTIos on October 26, 2013, 11:23:18 am
That should work. Sadly, my nspire didn't want to cooperate with ntxt, constantly crashing when I tried to save/load a file.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 26, 2013, 11:58:25 am
I sadly didn't try this text editor in particular, but I wonder if just taking a computer txt file then renaming it from readme.txt to readme.txt.tns would work? I know this is how Mviewer works with images, but I could be wrong about text.
Yes, that's exactly how it works.

That should work. Sadly, my nspire didn't want to cooperate with ntxt, constantly crashing when I tried to save/load a file.
Unfortunately, it wasn't very stable some time ago. But I didn't see or hear of any crashes with the latest about two versions.
Title: Re: nTxt - Nspire Text Editor
Post by: Lionel Debroux on October 26, 2013, 12:01:10 pm
aeTIos: also, make sure you're using an up to date version of Ndless (but if nTxt uses the facility to request a minimum Ndless revision, it should refuse to run if yours is too old, anyway) :)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 26, 2013, 12:38:23 pm
nTxt tells you to update if your version of Ndless is too old ;)
But yeah, back when it didn't, that was the cause of most reported crashes. Even I as its developper sometimes ran into that problem...
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on October 31, 2013, 12:48:11 pm
Good to hear that the project keeps being improved.  :thumbsup: I have two suggestions:

PS: Here's a translation of the readme.txt:
Spoiler For lisezmoi.txt:
nTxt - Éditeur de texte pour TI-Nspire
======================================

nTxt est un éditeur de texte pour les calculatrices de la série Nspire.
Il est compatible ndless3.1 r872 ou plus, pour TI-Nspire clickpad, touchpad et CX.

Avec association de fichier automatiquement ajoutée dans le ndless.cfg lors de la première exécution.

Contrôles :

Touches directionnelles      déplacer le curseur
Shift + touche directionnelle   sélectionner du texte
Esc/On            fermer le menu ou quitter
Menu/Doc         ouvrir le menu

Ctrl+S            enregistrer
Ctrl+O            ouvrir un fichier

Ctrl+C            copier
Ctrl+V            couper
Ctrl+A            tout sélectionner

Ctrl+F            chercher une occurence dans le fichier
Ctrl+G            chercher l'occurence suivante
Ctrl+Shift+G         chercher l'occurence précédente

Ctrl+7            aller tout en haut
Ctrl+1            aller tout en bas
Ctrl+9            remonter d'une page
Ctrl+3            descendre d'une page

Ctrl+gauche         aller en début de ligne
Ctrl+droite         aller en fin de ligne

Pour changer le mode de retour à la ligne (mode automatique en fin de ligne, ou bien défilement horizontal), choisir "Change Text Wrapping Mode" dans le menu.



Avertissement :

Je ne suis en aucun cas responsable des éventuels dégâts que ce programme pourrait infliger à votre calculatrice.


lkj, 19 Août 3013
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on October 31, 2013, 07:26:37 pm
Thanks for the translation of the readme ;)

Very hard (I think): synchonize the clipboard with the OS one's.
I actually am working on this. It should be much easier than the features in the poll. I already know how to paste from the OS clipboard, figuring out how to copy to it is all that's left.

Just a small note: don't expect fast progress. I'm in the army right now, so I only have a bit more than one day at home per week.
Title: Re: nTxt - Nspire Text Editor
Post by: SpiroH on November 01, 2013, 03:51:54 am
Just a small note: don't expect fast progress. I'm in the army right now, so I only have a bit more than one day at home per week.
Hope you spend a nice (:-\) and quick time in the army. No computers there? ???
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on November 03, 2013, 05:46:31 pm
Thanks. I hope it's quick, too ;)
No, computers aren't allowed and last week I wouldn't have had any time anyway. Maybe the rules get less strict after some weeks, we'll see.
Title: Re: nTxt - Nspire Text Editor
Post by: Legimet on November 06, 2013, 09:30:14 pm
One suggestion: integrate the file browser from Critor's applications (like mySpire, mViewer, etc.)
This should be very easy to do. :)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 24, 2013, 12:39:52 pm
Christmas update!

Very hard (I think): synchonize the clipboard with the OS one's.
I looked for the functions in the OS and added this feature to nTxt  :)

Apart from that, I only made a small improvement to typing. The last change I had made to the input system had an annoying side-effect for selecting text which should be removed now.
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on December 25, 2013, 10:28:17 am
Great ! :D
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on March 09, 2014, 01:30:25 pm
Again an update, this time with the most requested feature in the poll: undo and redo. I was quite surprised that it took only about the same amount of development time as some "small" updates :)
Ctrl+Z = undo
Ctrl+Y = redo
I hope (and believe) that the new features are stable. As always, if you find a bug, please report it here. Also if you have ideas how to improve it, tell me.
Title: Re: nTxt - Nspire Text Editor
Post by: The_King on March 09, 2014, 07:07:02 pm
hi i am working on a project and apparently copying doesn’t work to storing it to the actual nspire clipboard, if possible do try to do that thanks
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on March 16, 2014, 11:30:11 am
Sorry for the late reply, I couldn't test it on my own calc sooner. For me it works. What calculator model do you have? And have you checked if you really have the newest version of nTxt on your calc? And unlike in the OS you have to press Ctrl and C or V at the same time.
 
Title: Re: nTxt - Nspire Text Editor
Post by: mdr1 on March 16, 2014, 11:54:20 am
It works for some texts and doesn't for some other ones. Some special characters may corrupt the clipboard...
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on March 16, 2014, 12:30:41 pm
Yeah, that's an encoding problem. nTxt uses ASCII, but the clipboard uses UTF-8, so most special characters won't work. Making nTxt use UTF-8 is very much work, as it would mean rewriting most of the code. I'm not sure if or when I'll work on that, as I personally don't really need it and I also want to concentrate more on other projects after about 220 hours of work on nTxt.
What are you using nTxt for when this is a problem?

On an unrelated note, nTxt should work with Ndless3.6 (untested), but it will certainly crash when you cut/copy/paste.
Title: Re: nTxt - Nspire Text Editor
Post by: ExtendeD on March 17, 2014, 02:18:15 pm
lkj: the integration of the syscalls is on the todo list, sorry for the delay.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on March 22, 2014, 09:53:29 am
lkj: the integration of the syscalls is on the todo list, sorry for the delay.
No problem, the release of Ndless3.6 was much more important.
Title: Re: nTxt - Nspire Text Editor
Post by: joeym on March 24, 2014, 05:11:14 pm
Forgive me for asking this but what do you guys use a text editor for on the calculator? I am just curious.
Title: Re: nTxt - Nspire Text Editor
Post by: Streetwalrus on March 24, 2014, 05:58:58 pm
Editing configs. That's about it.
Title: Re: nTxt - Nspire Text Editor
Post by: joeym on March 24, 2014, 06:04:05 pm
Oh OK...I was also thinking you could use it for reading text files like an eBook reader. The file would be in plain text. But since this has trouble with special characters it would not work. The Lua based eBook reader that someone made has the same issue. If I have a pretty big file I would have to go through it and get rid of the special characters which would be very time consuming.
Title: Re: nTxt - Nspire Text Editor
Post by: Streetwalrus on March 24, 2014, 06:11:39 pm
Yeah, that is right.
Title: Re: nTxt - Nspire Text Editor
Post by: joeym on March 24, 2014, 07:56:47 pm
If you have a text file that contains UTF-8 try opening the file up using Notepad++. Notepad++ gives the option to convert to ANSI. See if that works.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on March 30, 2014, 11:37:58 am
Oh OK...I was also thinking you could use it for reading text files like an eBook reader. The file would be in plain text. But since this has trouble with special characters it would not work. The Lua based eBook reader that someone made has the same issue. If I have a pretty big file I would have to go through it and get rid of the special characters which would be very time consuming.
It wouldn't display the special characters correctly, but it's not necessary to remove them to be able to open the file.

If you have a text file that contains UTF-8 try opening the file up using Notepad++. Notepad++ gives the option to convert to ANSI. See if that works.
That's the best option for now.

Forgive me for asking this but what do you guys use a text editor for on the calculator? I am just curious.
When I started coding nTxt I wanted to be able to write programs on my calculator even when I don't have a computer with me, but without an on-calc assembler or compiler it's not very useful. And for Lua you can use the Notes app just as well... So I end up not using it often :P
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on April 18, 2014, 09:16:58 am
The attached nTxt fully works on 3.1 and 3.6.
Title: Re: nTxt - Nspire Text Editor
Post by: bisam on October 08, 2014, 06:36:21 pm
Hi.
With the progress of MicroPython on Nspire, nTxt may now be much more useful than it has been.
It can be a true editor for Python.

I'm a math and computer science teacher and 107 of my students just received their new Nspire CX CAS and I told them to use both MicroPython and nTxt (they were lucky to receive them with OS 3.6... so they could install Ndless).

But I noticed a few features that could enhance their use of nTxt :
- open last opened document instead of a new one when launching nTxt (or ask)
- keep in memory the position of last opened document in tree hierarchy
- better organize this hierarchy (some folders are not with the others, and there's no alphabetical order...)
- if possible, allow the launch of another Ndless program from nTxt (e.g. launch MicroPython that would read current opened file)

All this would be very useful for a programming point of view.

Thanks in advance to consider these feature requests... hoping this program is still in development...
Title: Re: nTxt - Nspire Text Editor
Post by: DJ Omnimaga on October 09, 2014, 02:54:41 am
Good to hear that your students got the OS 3.6 Nspires :)

As for the nTxt program, I am unsure if it's still being developed, but rewriting it in python instead of C would definitively be a lot of work, so it could take a while. That's 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. Some people prefer coding on-calc. :)
Title: Re: nTxt - Nspire Text Editor
Post by: bisam on October 09, 2014, 07:27:11 am
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...
Title: Re: nTxt - Nspire Text Editor
Post by: SpiroH 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.
Title: Re: nTxt - Nspire Text Editor
Post by: lkj 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 ;)
Title: Re: nTxt - Nspire Text Editor
Post by: DJ Omnimaga 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)
Title: Re: nTxt - Nspire Text Editor
Post by: bisam 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:
Title: Re: nTxt - Nspire Text Editor
Post by: compu 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 (http://tiplanet.org/forum/viewtopic.php?f=43&t=15140&lang=en#p169306)), so I haven't really looked into it.

Also this was a quick hack, so I might have broken something :P
Title: Re: nTxt - Nspire Text Editor
Post by: bisam 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.
Title: Re: nTxt - Nspire Text Editor
Post by: compu 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.
Title: Re: nTxt - Nspire Text Editor
Post by: Adriweb 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 :)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj 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 (https://github.com/lkjcalc/nTxt).
Title: Re: nTxt - Nspire Text Editor
Post by: Adriweb 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
Title: Re: nTxt - Nspire Text Editor
Post by: lkj 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.
Title: Re: nTxt - Nspire Text Editor
Post by: Adriweb 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
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 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? :)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj 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 ;)
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 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 :(
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on November 09, 2015, 04:33:16 am
With 'built-in documents' I meant the document editors that are part of the operating system of the Nspire.
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on November 09, 2015, 05:06:17 am
With 'built-in documents' I meant the document editors that are part of the operating system of the Nspire.
Understood, and in which way I could take advantage of them?
Have you a tutorial?
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on November 25, 2015, 09:53:31 am
Yesterday I've updated my CX CAS to OS 3.9.1.38 and ndless-ed it : if I go to [2] Documents -> ndless and open nTXT.tns, after clicking 'menu' and then 'Open Ctrl+0', after opening a file *.txt.tns that could be into the same folder or another creating by me I'm able to view its content, but the problem is that I can't use Ctrl's shortcuts.
For example, if I want to 'go to start of document' as indicated into readme.txt included in nTxt21'zip file, I press Ctrl+7 but I obtain only a '7' written into the document, as you can see here :(http://images.tapatalk-cdn.com/15/11/25/79328d731351fa511701cacfa7e2d3eb.jpg)
Where's my error?
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on November 26, 2015, 02:35:50 am
You need to press 7 and ctrl at the same time, like on a computer. Did you do that?
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on November 26, 2015, 03:03:50 am
You need to press 7 and ctrl at the same time, like on a computer. Did you do that?
No, was that my mystake : yesterday I found myself the solution, I was pressing before ctrl and then the number assigned thinking the calc would have memorized the blue ctrl featured as it does into math mode for 2nd functions on a key, and not at same time as you said.
Now for not make a mistake I before keep ctrl and then I push the key assigned to the option I want, this morning I payed attention to the readme.txt included and I must admit the program is great :)
I nave only a suggestion for when the document has a line enough long : I see tab key introduces much spacing but I think could be more useful to horizontal scrolling (for example, I see that a line could own till 40 characters, we could set it to scroll of 35 characters to the right and in this way we could view the whole content quickly, because the pad that goes on of 1 character/time is very low).
Have you an idea how to remap this key?
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on November 30, 2015, 03:09:50 am
Adding a key for horizontal scrolling is a great idea.
But I don't really want to repurpose the tab key. I guess ctrl+4 to scroll left and ctrl+6 to scroll right would make sense.
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on November 30, 2015, 04:15:25 am
Adding a key for horizontal scrolling is a great idea.
But I don't really want to repurpose the tab key. I guess ctrl+4 to scroll left and ctrl+6 to scroll right would make sense.

These combinations are yet here or you have to implement?
I suggested 'tab' because is used on pc this way, and pressing 1 single key is more quick and 'innocent' than pressing 2 at the same time (such during an exam, understand me)

EDIT : from what I see studying key map, also the 'trig' button that has yet an arrow-shaped could help us..
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on November 30, 2015, 05:50:03 am
I have yet to implement it. Should be easy.
I'm used to tab being used on the PC the way it is used in nTxt. You're right that we could additionally map all this navigation stuff to the unused math keys.
With a bit more work it may also be possible to make controls customizable.
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on November 30, 2015, 06:39:33 am


I have yet to implement it. Should be easy.
I'm used to tab being used on the PC the way it is used in nTxt. You're right that we could additionally map all this navigation stuff to the unused math keys.
With a bit more work it may also be possible to make controls customizable.

I'll live with this setup of tab key, hoping we would have success early what is your actual idea/choice about the key to assign?
I love this purpose, we could make this program still more useful and user-friendly : feel free to asking me for advices/reviews if you need :)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 02, 2015, 02:00:51 pm
I implemented the quick horizontal scrolling: scroll left with ctrl+4, right with ctrl+6.
Also, page up is now additionally mapped to the "Trig" key, page down to the "x^2" key, scroll left to the "e^x" key, scroll right to the "10^x" key.
As alway, code on github.
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on December 05, 2015, 09:24:25 pm

I implemented the quick horizontal scrolling: scroll left with ctrl+4, right with ctrl+6.
Also, page up is now additionally mapped to the "Trig" key, page down to the "x^2" key, scroll left to the "e^x" key, scroll right to the "10^x" key.
As alway, code on github.

I hadn't participated in the last days because I was waiting for downgrading to 3.6 OS, today that I had performed it Omnimaga didn't work : I promise to try the new release tomorrow because I'm looking forward to see how you implemented my request.
If I could make 2 suggestions I think would be useful both inserting direct link to your Github into OP (because is only present into #159 message of Ott 11 2014) and uploading also here almost last release if not possible all the previous ones, because if happens again that we can't login to the forum we would have a mirror where downloading the program :)



Unfortunately I wasn't able to start the new version : I'm on OS 3.6.0.550 Ndless-ed, I've copied your 'nTxt.tns' to 'ndless' folder and also tried creating a new one with name 'nTxt.prg.tns' as shown into the image(http://images.tapatalk-cdn.com/15/12/06/ef02915a237d24fb46be58cdfcb4f1f6.jpg)
But when I try to start the program from the calculator I obtain always the error "This kind of document is not supported.
NAMEFILE.tns" like this (http://images.tapatalk-cdn.com/15/12/06/187e1d2997ac9d6b736dd66f9be0f4fa.jpg)
I've also copied again the 'ndless.cfg.tns' and performed a new Ndless installation but without success, what can I do? What is the problem?

Edit (Eeems): Merged doublepost

Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 07, 2015, 01:33:25 pm
It seems that you need to use the .prg.tns file if your Ndless version is older. If it still doesn't work, try updating your Ndless installation.


Edit:
If I could make 2 suggestions I think would be useful both inserting direct link to your Github into OP (because is only present into #159 message of Ott 11 2014) and uploading also here almost last release if not possible all the previous ones, because if happens again that we can't login to the forum we would have a mirror where downloading the program :)
Thanks for the suggestion. I'll look into it.
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on December 07, 2015, 06:51:51 pm


It seems that you need to use the .prg.tns file if your Ndless version is older. If it still doesn't work, try updating your Ndless installation.


Edit:
If I could make 2 suggestions I think would be useful both inserting direct link to your Github into OP (because is only present into #159 message of Ott 11 2014) and uploading also here almost last release if not possible all the previous ones, because if happens again that we can't login to the forum we would have a mirror where downloading the program :)
Thanks for the suggestion. I'll look into it.

You're right, as written into nPDF's thread also in this case is necessary executing X.prg.tns version of a program when installed Ndless 3.6 (or however a previous version than the last available) :finally I got it :)(http://images.tapatalk-cdn.com/15/12/07/cccd5c4c8711cde37a5f2614ad54359f.jpg)
I love new key implementations because they're intuitive to press, very useful :D
P.s. I saw the line added into OP about Github ;)
Title: Re: nTxt - Nspire Text Editor
Post by: Legimet on December 07, 2015, 08:49:41 pm
As written in the nPDF thread,

Also, you don't need to use the PRG file on OS 3.6. The ndless_resources.tns file from Ndless 3.9 that has Zehn support actually works on 3.1 and 3.6. Just replace your ndless_resources.tns with the one from 3.9, nPDF.tns should run. Unfortunately, this isn't well-documented.

I'll have to try your latest nTxt version, lkj. I think I have version 11 on my calc :P
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on December 08, 2015, 05:31:12 am


As written in the nPDF thread,

Also, you don't need to use the PRG file on OS 3.6. The ndless_resources.tns file from Ndless 3.9 that has Zehn support actually works on 3.1 and 3.6. Just replace your ndless_resources.tns with the one from 3.9, nPDF.tns should run. Unfortunately, this isn't well-documented.

I'll have to try your latest nTxt version, lkj. I think I have version 11 on my calc
In fact I didn't know this workaround, I had always believed is purely a compatibility problem as written into post #58 of that thread by Vogtinator (http://images.tapatalk-cdn.com/15/12/08/ee1dde0d7083aa5bf8ca025fbc20db83.jpg)
Happy to has learnt a new thing, probably I'll make the switch after the exam to avoid the 'kind of document not supported' in the future ;) (I don't know what differ exactly from the 'X.tns' to the 'X.prg.tns')
However update your 11 version, lkj has done an amazing job with 24
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on December 08, 2015, 04:56:13 pm
As written in the nPDF thread,

Also, you don't need to use the PRG file on OS 3.6. The ndless_resources.tns file from Ndless 3.9 that has Zehn support actually works on 3.1 and 3.6. Just replace your ndless_resources.tns with the one from 3.9, nPDF.tns should run. Unfortunately, this isn't well-documented.
Huh, ok. Thanks for the tip.

I'll have to try your latest nTxt version, lkj. I think I have version 11 on my calc :P
Yeah, there were quite a lot of bugfixes since then. Remembering how often it crashed, I'm astonished you could ever do anything useful with version 11 :P

I love new key implementations because they're intuitive to press, very useful :D
P.s. I saw the line added into OP about Github ;)
Nice to hear that :)
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on February 01, 2016, 12:31:19 pm
Small update. No new features, but added custom clipboard syscalls for Ndless 3.9 and Ndless 4 (before it just crashed on those OSes when you used the clipboard).
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on February 01, 2016, 06:13:43 pm
Small update. No new features, but added custom clipboard syscalls for Ndless 3.9 and Ndless 4 (before it just crashed on those OSes when you used the clipboard).
I didn't know was out for OS 4.0, I sold the new model to a friend at December : good news https://github.com/ndless-nspire/Ndless/releases/tag/v4.0 :)
Title: Re: nTxt - Nspire Text Editor
Post by: neuronix on May 31, 2016, 04:07:50 am
It is possibole to add a python color syntax?
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on June 06, 2016, 06:20:37 pm
I won't add any big new features like that myself anymore. If you or anyone else wants to, you can add it yourself, though. The code is on github (https://github.com/lkjcalc/nTxt (https://github.com/lkjcalc/nTxt)).
Title: Re: nTxt - Nspire Text Editor
Post by: Federico Cupellini on January 25, 2017, 03:25:38 pm
Hi, I have a TI-nspire cx CAS 4.2.0.532 with the latest ndless, but I encounter a lot of problems in using your software (eg screen glitches and similar while opening and closing files). Am I doing something wrong?

Also, feature request, make the "scratchpad" work (i don't know if this is a problem with ndless or something else)

Thanks :)
Title: Re: nTxt - Nspire Text Editor
Post by: neuronix on February 02, 2017, 04:07:06 am
The clipboard features don't work on Ndless 4 and compatibel? I have Ndless 4.4 :(
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on February 02, 2017, 07:48:57 am
Hi, I have a TI-nspire cx CAS 4.2.0.532 with the latest ndless, but I encounter a lot of problems in using your software (eg screen glitches and similar while opening and closing files). Am I doing something wrong?

Also, feature request, make the "scratchpad" work (i don't know if this is a problem with ndless or something else)

Thanks :)
The screen glitches are normal, they just look ugly but are not a problem.
I don't think making the scratchpad work is possible the way Ndless programs work at the moment. It would probably require more integration with the OS.

The clipboard features don't work on Ndless 4 and compatibel? I have Ndless 4.4 :(
Yes, it's a custom sycall, that is the binary needs to be updated with new addresses every time a new OS comes out... I'll see when I have time for that.
Title: Re: nTxt - Nspire Text Editor
Post by: neuronix on February 02, 2017, 07:51:30 am
Ok,
thanks lkj, and very good job  :thumbsup:
Title: Re: nTxt - Nspire Text Editor
Post by: Chirlian on March 08, 2017, 07:45:34 pm
nTxt is a text editor for the Nspire. It requires Ndless to be installed on your calculator.
Hi ikj,
am just trying the v. 26 of nTxt. It works good but there seems to be a bug: by selecting one or more signs in a text and using ctrl-c the nspire reboots. Treid it several times, can not find any reason.
My Nspire: cx cas, os 4.4, also ndless. With nTxt v. 25 I get the same reboot.
cu
klaus
Title: Re: nTxt - Nspire Text Editor
Post by: Legimet on March 09, 2017, 03:47:14 pm
This is why:
Yes, it's a custom sycall, that is the binary needs to be updated with new addresses every time a new OS comes out... I'll see when I have time for that.
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on March 10, 2017, 12:28:54 pm
Hi, I have a TI-nspire cx CAS 4.2.0.532 with the latest ndless, but I encounter a lot of problems in using your software (eg screen glitches and similar while opening and closing files). Am I doing something wrong?

Also, feature request, make the "scratchpad" work (i don't know if this is a problem with ndless or something else)

Thanks :)
The screen glitches are normal, they just look ugly but are not a problem.
I don't think making the scratchpad work is possible the way Ndless programs work at the moment. It would probably require more integration with the OS.

The clipboard features don't work on Ndless 4 and compatibel? I have Ndless 4.4 :(
Yes, it's a custom sycall, that is the binary needs to be updated with new addresses every time a new OS comes out... I'll see when I have time for that.
Some days ago a notification into Tapatalk app remembered me I have a TI-Nspire CX CAS calculator, now I want to update it both for OS and Ndless  :)
From what I can understand the last nTxt 26 doesn't work on OS 4.4.0, but have you or Others tried if it works almost with the 4.2.0 or the 4.0.3?
I want a newer OS because sometimes calc doesn't solve equations systems, compared to the one of a friend updated..
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on March 10, 2017, 12:35:28 pm
nTxt 26 should work on 4.0.3, but on 4.2 and 4.4 using the clipboard features (i.e. copy/cut/paste) crashes the calc.
Title: Re: nTxt - Nspire Text Editor
Post by: matteob92 on March 10, 2017, 01:02:51 pm
nTxt 26 should work on 4.0.3, but on 4.2 and 4.4 using the clipboard features (i.e. copy/cut/paste) crashes the calc.
Apart from that features, the app works flawlessy?
Do you think will be complicated updating the binary to grant compatibility to the last 2 versions of OS?  ::)
Title: Re: nTxt - Nspire Text Editor
Post by: Jonson26 on March 13, 2017, 06:59:39 am
Is there still developement?
And, by the way, I am still curious about the booklet & ctrl+c/v/x/a (compatible with the os, would be awesome for JSE exporting).
 :thumbsup: Goopd job!
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on March 13, 2017, 06:22:42 pm
nTxt 26 should work on 4.0.3, but on 4.2 and 4.4 using the clipboard features (i.e. copy/cut/paste) crashes the calc.
Apart from that features, the app works flawlessy?
Do you think will be complicated updating the binary to grant compatibility to the last 2 versions of OS?  ::)
Yes, everything else works.
I already found the new syscall addresses yesterday, but I still need to find out how to add them correctly to build a new release.

Is there still developement?
And, by the way, I am still curious about the booklet & ctrl+c/v/x/a (compatible with the os, would be awesome for JSE exporting).
 :thumbsup: Goopd job!
No, just small fixes and compatibility updates.

Edit: The release is online on github: https://github.com/lkjcalc/nTxt/releases (https://github.com/lkjcalc/nTxt/releases). I couldn't test it yet. Please report any problems.
Title: Re: nTxt - Nspire Text Editor
Post by: Jonson26 on March 14, 2017, 04:55:13 am
I SERIOUSLY hope, you get the clipboard feature to work. ;)



Still waiting... Hope you didn't abandon the project.
HIDn support would be nice too!

Edit (Eeems): Merged double post
Title: Re: nTxt - Nspire Text Editor
Post by: Legimet on July 12, 2017, 01:57:05 pm
@Jonson26 Try the latest version: https://github.com/lkjcalc/nTxt/releases
Title: Re: nTxt - Nspire Text Editor
Post by: Jonson26 on July 13, 2017, 11:28:31 am
Bug report @ v27:
Weird display bug: Each pixel at the horizontal axe is followed by n blank pixels.
Example:
1111    1000100010001
1001 is 1000000000001
1111    1000100010001
Of course n=3 is just an example value. I just didn't count.
I have a TI-nspire CAS classic with os 3.9 and the latest ndless.
Spoiler For Spoiler:
Please implement HIDn! :P
Title: Re: nTxt - Nspire Text Editor
Post by: neuronix on January 13, 2018, 10:25:25 am
You should update your program, because copy/paste and selection don't work on 4.5 :(
Title: Re: nTxt - Nspire Text Editor
Post by: timedia on February 26, 2018, 05:34:02 pm
I have tried this program on OS 4.5, rev. AB and whenever a dialogue comes up the screen shows random pixels and flickers????

It does say activating compatibility mode
Title: Re: nTxt - Nspire Text Editor
Post by: lkj on February 26, 2018, 06:06:00 pm
I have tried this program on OS 4.5, rev. AB and whenever a dialogue comes up the screen shows random pixels and flickers????

It does say activating compatibility mode
If you mean the random pixels and garbage around the dialogue, that's always been the case. Don't worry about it.

You should update your program, because copy/paste and selection don't work on 4.5 :(
I know. But finding the addresses and recompiling every time there is a new OS is annoying. Maybe I'll just revert to an internal clipboard which isn't shared with the OS for unsupported OSes.
Title: Re: nTxt - Nspire Text Editor
Post by: superloach on February 26, 2018, 06:18:04 pm
Sounds like a good idea to me. In fact, I never even realized that the clipboard synced until reading this thread, so it's obvious it's not very necessary. :P