I found the [Fantom language](https://fantom.org) to be very good alternative to BeanShell and suitable as a scripting language to write JEdit macros. Please consider supporting it. JEdit is a very good text editor but it's now inferior to other JavaScripts/Python/Lua based editors because lacking of good plugins. I think part of the problem is using BeanShell as the scripting language. BeanShell is... just Java! It's convenient because it's familiar so Java devs don't have to learn new languages to write scripts, but it's the same plain old wordy Java that discourage new users to write scripts for JEdit. I suggest extend to support other JVM languages like Groovy, Fantom... I myself recommend Fantom. Please consider my suggestion. Thanks.
Submitted | ruanjiaxing - 2020-05-24 14:38:52.050000 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | |
Status | open | Group | none |
Resolution | None |
2020-05-24 20:03:19.579000 daleanson |
What plugins are lacking?
|
---|---|
2020-05-25 03:24:08.713000 ruanjiaxing |
Lua based editor: TextAdept and many, I don't like Lua so I don't use them, but there
are a lot.
|
2020-05-25 03:26:45.323000 ruanjiaxing |
I think you are not used VSCode or Sublime Text. The number of plugins of JEditor could be considered as poor (too few) compared to them. This is not "a lot of" at all. |
2020-05-25 04:45:32.728000 ruanjiaxing |
Sorry. I have confused between plugins and macros.** This ticket I asked about a plugin
allow writing macros in Fantom (or possibly, Groovy)** as there are already plugins
allow writting macros in Java (javamacros) and JavaScript (javascriptshell). When
I wrote the messages above I'm deprived of sleep and very tired so I have confused
between plugin and macros. JEdit definitely needs more plugins, but this is not what
this ticket is about. Sorry for the misleading I have made.
|
2020-05-25 15:57:33.269000 ruanjiaxing |
Fantom is a JVM language but it compiles to fcode, not Java bytecode. When running, the Fantom interpreter convert fcode into bytecode and run it on the JVM. We can't use the plugin JavaMacros because there is no .class file, so a special plugin like what for JavaScriptShell is needed. I checked Groovy also compiles to .class file so I think it should work with JavaMacros plugin, but Fantom needs special treatment to work as a language for JEdit macros. |
2020-05-25 16:51:16.128000 daleanson |
Is there something specific you're looking for a macro to do? There are a lot of macros available on the community site (which doesn't work well), plus there is the MacroManager plugin (which seems to be broken at the moment). |
2020-05-25 22:24:08.467000 mike-y |
I've been looking for the roman numerals macro. I reverse engineered the alternate (3.6Kio) |
2020-05-26 05:32:11.461000 ruanjiaxing |
I can't get an account on the JEdit forum, too. I send them an email as they said but they never reply me. |
2020-05-26 05:57:53.460000 ruanjiaxing |
I learned the old Java and can't keep up with modern Java, so I made a switch to Fantom
and never looked back. BeanShell IMHO is just a stripped down Java. I want to be able
to use my familiar language to write macros to extend JEdit. But as you said on my
other ticket, I think I should learn to write an actual JEdit plugin. So no, I don't
need any specific functions from a macros but only want to write macros in my favorite
language to automate boring job and also extend the editor on the way when using JEdit
as my main text editor. I think I could do more with Fantom than BeanShell because,
IHMO, Fantom is more powerful than BeanShell.
|
2020-05-26 17:24:11.416000 daleanson |
http://community.jedit.org/?q=filestore/download/20
|