将文本模型暴露给可编写脚本的环境的 Emacs 替代方案?

发布于 2024-08-22 12:59:22 字数 684 浏览 6 评论 0原文

大家都在外面!

我目前正在寻找一种技术解决方案来创建一个良好的读写编程环境。不幸的是,大多数编辑器的硬编码太多,它们的功能只能满足大多数著名的需求,而不能完全满足特殊需求。

我来到了Emacs(后来又经历了一些其他的),但我也遇到了Emacs的无数麻烦(我不会谈论这些,这不是主题)。

然而,我喜欢 Emacs 的一件事,它确实符合我正在寻找的东西:它向可编写脚本的环境公开了全文模型,并且整体 UI 的设计使其非常适合图形 UI或文本 UI (因为它主要是基于文本的)。最后但并非最不重要的一点是,这是可以使用 LISP 编写脚本的,在文本操作和解释领域,LISP 对我来说确实是一个不错的选择。

我在网上搜索了一个可以将全文模型公开给可编写脚本的环境的文本编辑器,但我没有找到任何东西。我想这不是网络上的日常请求,因此最好向一些人询问,而不是询问机器人。

我是,但简而言之,我正在寻找: 一个公开全文模型 [*] 的编辑器,并将该模型公开给脚本引擎 (最好是 LISP,但我也会喜欢 Python,或者毕竟是其他任何语言)

[*] 谈论文本模型,我的意思是:文本属性(可选字体)、文本可见性、文本读写属性和文本内容迭代,级别低至字符基础。

祝你今天过得愉快! :)

——Yannick

Duchêne

everybody out there!

I'm currently seeking for a technical solution to create a nice literate programming environment. Unfortunately, most editors are too much hard coded, and their functionalities just cover most famous needs, and can't cleanly cover special needs.

I came to Emacs (later after some others), but I also came to numerous troubles with Emacs (I will not talk about these, this is not the topic).

However, there is one thing I like with Emacs and which was indeed matching what I was looking for: it exposes a full text model to a scriptable environment, and the overall UI is designed so it is well suited to either graphical UIs or text UIs (because it is mostly text based). And last but not least, this is scriptable with a kind of LISP, and LISP indeed seems a good choice to me, in the area of text manipulation and interpretation.

I've searched the web for a text editor which would expose a full text model to a scriptable environment, but I have not found anything. I guess this is not an everyday request on the web, so it is probably better to ask some humans about it, better than to ask a robot.

I was, but in short, I'm looking for: an editor which exposes a full text model [*], and which exposes this model to a script engine (preferably LISP, but I would enjoy Python as well, or any others after all).

[*] Talking about text model, I mean: text attributes (optionally font face), text visibility, text read-write property, and text content iteration, at a level as low as the character basis.

Have a nice day! :)

--

Yannick Duchêne

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

蔚蓝源自深海 2024-08-29 12:59:22

JEdit 似乎非常适合使用 Java、BeanShell、Jython 和其他针对 JVM 的语言编写脚本。它的大部分功能是通过 OSGI 插件实现的。如果您真的喜欢 LISP,也许您甚至可以尝试使用 Clojure! :-)

JEdit seems to be very scriptable with Java, BeanShell, Jython and other languages targeting the JVM. Most of its functionality is implemented with OSGI plugins. If you really like LISP, maybe you could even try with Clojure! :-)

断舍离 2024-08-29 12:59:22

Emacs、Climacs便携式 Hemlock (某种程度上 Hemlock)。

我确信还有其他编辑器将全文模型公开给不属于“emacs 系列”的脚本引擎,但我不认识他们。

哦,是的,有VMS编辑器框架,但我不记得它的名字了。

Emacs, Climacs, Portable Hemlock (and to some extent Hemlock).

I am sure there are other editors around that exposes a full text model to a script engine that are NOT in "the emacs family", but I don't know them.

Oh, yes, there's the VMS editor framework, but I cannot recall its name.

感情洁癖 2024-08-29 12:59:22

Vatine 所说的,加上 Fluxus 中内置了一个非常小的Scheme编辑器,我用 Emacs 键扩展了它-绑定(在我的个人副本中),所以我知道它会像一个接近于存根实现的东西一样工作(如果你撕掉所有的OpenGL东西)。

编辑:
看起来我正在使用 Fluxus-0.8,它甚至似乎不再出现在网站上。如果您最终需要从低级别开始,请告诉我,我会将其发送给您。

What Vatine said, plus there's a very minimal Scheme editor built into Fluxus, which I extended with Emacs key-bindings (in my personal copy), so I know it would work as something close to a stubbed implementation (if you rip out all the OpenGL stuff).

Edit:
Looks like I was working with fluxus-0.8, which doesn't even seem to be on the site anymore. If you end up needing to go that low-level to start, let me know and I'll send it over.

雾里花 2024-08-29 12:59:22

不确定这是否有用,但有一长串类似 Emacs 的编辑器: http://www .finseth.com/emacs.html

顺便说一句,Craig A. Finseth 还写了一本关于实现类似 Emacs 的编辑器的书: http://www.finseth.com/craft/

以 PDF 形式预订

Not sure if this is useful, but there is a long list of Emacs-like editors: http://www.finseth.com/emacs.html

Btw., Craig A. Finseth also wrote a book on implementing an Emacs-like editor: http://www.finseth.com/craft/

The Book as PDF.

情仇皆在手 2024-08-29 12:59:22

报告(不成功)结束任务:

虽然我认为可能的技术选择对我不起作用(见下文),但我仍然如果这对运行类 UNIX 的人有用(我正在运行 Windows),请将其指向此处。

背景和“艺术”状态:接近所有(或全部)所谓的 Emacsen 和 Emacs 克隆,与 Emacs 没有任何可比性。它们只是模仿主要模式和次要模式等术语,模仿按键绑定,而且大多数时候还模仿 UI 外观和感觉。但核心不在那里。我了解到这些被称为“Emacs Ersatz”。

免责声明:由于某些原因,我没有测试过 Climax 和 Hemlock,因此后面的评论不适用于这些。

EFuns :我最后遇到的是EFuns,但不幸的是,我无法在 Windows 上编译它(我怀疑源代码有问题,有些存档中缺少目录)。有兴趣的可以在这里获取: EFuns,一个类似 Emacs 的用 OCaml 编写脚本。幸运的是,对于类 UNIX 用户来说,提供了二进制文件(不适用于 Windows)。

实现列表:为了完成 Rainer Joswig 指出的列表,这是另一个,更短,但更最新:[抱歉,我无法发布此链接,看来我不是允许发布多个链接 - 我对感兴趣的各方感到抱歉(悲伤)]

Report of an (unsuccessfully) ending quest :

Although a possible technical choice I could figure will not work for me (see later), I still point it here, if this can ever be useful to someone running UNIX-Like (I'm running Windows).

Context and state of the “ art ” : near to all (or all) so called Emacsen and Emacs clone, has nothing to compare with Emacs. They just mimics terms like major mode an minor mode, mimics key-bindings, and most of time also, the UI look and feel. But the core is not there. I've learned these are called “ Emacs Ersatz ”.

Disclaimer : for some reasons, I have not tested Climax and Hemlock, so the latter comment does not apply to these.

EFuns : the last one I came to, was EFuns, but unfortunately, I could not compile it on Windows (I suspect something is wrong with the sources, some directory are missing in the archive). Interested parties may get it here : EFuns, an Emacs-like scripted in OCaml. Fortunately for UNIX-Like users, binaries are provided (not for Windows).

Implementations List : to complete the list Rainer Joswig pointed to, here is another one, shorter, but more up-to-date : [ Sorry I can't post this link, it seems I'm not allowed to post more than one link - I'm sorry for interested parties (sad) ]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文