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