-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any document? #3
Comments
I fixed .zile-on-guile issue by copying zile.scm to site dir. It seems that zile-on-guile doesn't do it for me. |
Hi @NalaGinrut it doesn't look like there will be any tutorials on how to write syntax highlighting extensions any time soon. I am just finding this project today, but I have been wanting to get started doing something similar to this project for some time now. Finding some work that builds already means less boiler plate 😄 I see you say
If you like Guile and wish Emacs used Scheme instead of Elisp, then this is a neat opportunity for us to try building up a text editor mostly from scratch. If that sounds like too much hassle, then I understand. In all likelihood I will have to abandon any effort I try putting into this when I start a new job next month. If you think are still interested in what is happening in this project, then please stick around 😄 Maybe we can make our own dreams come true! |
There is minimal editor at https://github.com/a-guile-mind/azul.scm. I am also interested in this adventure. Please, let me know. |
@amirouche cool. I will check out your project! |
Yeah, I do love the idea of making a console text editor is scheme. I actually wrote a fair number of the parts. I wrote guile-ncurses for TUI, guile-aspell for spell check, and I then wrote half of a text editor in an abandoned project called Gano that is still on sourceforge.net, and I did to a fair bit of the unicode upgrade to core Guile itself back in the 2.0 days. But as much as I love the idea, I'll probably never finish it. Anyway, for this project, which uses the GNU Zile codebase and attaches Guile to the backend, syntax colorization isn't well supported by the Zile codebase, so this project isn't a good starting point. You'd want a front end with more features. I actually wrote a Gtk/Cairo-based console widget in C that had a Guile API that did colors, bold and blink. It got incorporated in to an interactive fiction project called Project Burro, but, it isn't a standalone project. Unless you love poking around with low level things like I do, a better starting point would be to use Gtk's GtkTextBuffer and GtkTextView widgets. To get to that from Guile, we have a project called guile-gi that generates Gtk3 bindings. |
Thanks for chiming in 😄 I'll take a look at the resources and directions you mentioned. Also, would that In the absense of a full |
@spk121 I expect a lightweight ncurses editor based on Guile, just like nano. Is it in your plan? ;-) |
@guygastineau Off topic, but, guile-gi can only autogenerate guile bindings for libraries that provide typelib files, which usually means libraries in the GNOME ecosystem. Your best bet to autogenerate bindings based on plain C headers is to use NYACC. @NalaGinrut Trying to write one 10 years ago is how I first started to learn Scheme, and how I ended up writing guile-ncurses and guile-aspell. You can still see the chaotic remains of my editor code at https://sourceforge.net/projects/gano/ but I don't think I'll be finishing it. |
@spk121 Thanks for the reply! I downloaded it but it seems guile-ncurses, not the gano editor. Maybe I did it wrong? |
@NalaGinrut Yeah, you'd have to clone the repo at But it doesn't build or work. It is just a tangle of half-baked ideas. |
@spk121 Thanks! Do you still think guile-on-zile is the way for no-X lightweight editor? Or maybe we don't have to waste much time on zile? |
Hello all! well, i think i will try to gather all info i've found into a markdown page and post it at https://man.sr.ht/~whereiseveryone/guixrus ,as i'm familiar with that community |
I've been down this road a couple of times. I mentioned the gano project, that I quit. I once wrote Your easiest road forward would be to either get a text editing widget (Gtk, Qt) and do a thin wrapper around it, or to take an existing extensible editor and swap out the interpreter (guile-emacs, rxi/lite, and many more). You'll need to decide if the top level language is Guile, or if you are using Guile as an extension language. If top level is Guile, your toolkit options are SDL or Gtk (via g-golf or guile-gi). If you're doing character based, guile-ncurses works, but, the way curses works is very old-school and odd. Julian did some cool things with libruin, but, I don't think it is the way to go, IMHO. Another existing work is emacsy, which is worth checking out. I think libfive has an editor widget as well, though I've never used it. I wish you luck. It is not hard, but, it is probably harder that you imagine it to be. Honestly, maybe the best thing to do is to create the community of interest first and let the effort flow from there. Because (as the meme says) the real text-editor-written-in-Guile is the friends we make along the way. |
(Agreeing with the last comment about community accretion, here's my foot in the door, so that GitHub can maintain this connection for me, even if I forget... :) Enjoying the nice, insightful discussion, thanks!) |
I can build and run guile-on-zile successfully.
I think the extension script should be loaded from $HOME/.zile-on-guile, however, it seems useless after I add some code into this file.
I want to write a small editor with highlighted syntax, how should I do that?
Any tutorial or document would be better. Thanks!
The text was updated successfully, but these errors were encountered: