03:44:57
##forth
<vms14>
I'm trying to implement forth's editor words
03:45:34
##forth
<vms14>
I have the find and insert buffers, I t and f
03:45:39
##forth
<vms14>
I have to add the rest
03:46:01
##forth
<vms14>
they work with files instead though
03:49:26
##forth
<vms14>
I could make it so if you give it a number as a file name it works with blocks which would be some random file anyways
03:55:59
##forth
<xentrac>
congratulations
03:56:15
##forth
<vms14>
it was easy since I cheat with perl xd
03:56:51
##forth
<vms14>
but I always wanted to try the forth editor and didn't find an implementation that had the words
03:57:18
##forth
<vms14>
also I have to create vocabularies so I does not conflict with the loop one
03:58:08
##forth
<vms14>
I always thought the block editor of forth is a cool idea
09:54:53
##forth
<veltas>
vms14: gforth's source .tar.gz has a block editor
09:55:17
##forth
<veltas>
Also I have one on my github, can't post link right now but you can try github.com/veltas
09:55:25
##forth
<veltas>
Mine is sort of half-baked and not good
09:55:31
##forth
<veltas>
gforth's one is alright
09:55:42
##forth
<veltas>
crc has a good editor that's very minimal
15:09:43
##forth
* crc likes block editors
15:11:07
##forth
<veltas>
I had an exercise at one point to write a block editor without an editor, using blocks and standard forth stuff
15:11:23
##forth
<veltas>
And I got there because I took some inspiration from what you did
15:11:31
##forth
<veltas>
With konilo(?) I think
23:38:54
##forth
<vms14>
mine worked taking a file as lines instead
23:39:18
##forth
<vms14>
perl has a core module that converts a file into an array
23:39:35
##forth
<vms14>
not reading the whole file, but using seek and caching access
23:40:06
##forth
<vms14>
0 t
23:40:46
##forth
<vms14>
that sets the current line to 0
23:40:58
##forth
<vms14>
and the cursor to 0 since it points to the current char
23:42:15
##forth
<vms14>
but I did not add the rest of the words and changed I to ins so it does not clash with do's i
23:42:27
##forth
<vms14>
so I can use ins inside a loop
23:43:20
##forth
<vms14>
you can : oh ins some random text\n ;
23:43:44
##forth
<vms14>
you need a real newline though xd
23:45:36
##forth
<vms14>
I guess it would be cool to have them in loops