The BEST QL Editor

A place to discuss general QL issues.
User avatar
dilwyn
Mr QL
Posts: 3183
Joined: Wed Dec 01, 2010 10:39 pm

Re: The BEST QL Editor

Post by dilwyn »

tofro wrote: Mon Sep 15, 2025 8:50 am
t0nyt wrote: Mon Sep 15, 2025 8:09 am
tofro wrote: Mon Sep 15, 2025 7:54 am Even today, most of the vi commands have left their traces in muscle memory.
I’m using QED on the QL and I still keep trying to use vi keystrokes even though I haven’t really used it since the early 00’s
I used to have a colleague whose text files sporadically had an arbitrary "ZZ" at the end for no apparent reason :)
When writing in Welsh, I suffer from Double Consonant-itis - I can never remember where there are double n's and double r's in words like "torri" or "annwyl".

A work colleague used to tell me off for getting it wrong. So I shut him up by adding a few extra r's and n's to the bottom of emails, with the message in Welsh "a few spare rrrrr and nnnnn for you to copy and paste to where I got it wrong."

He soon stopped correcting me.


User avatar
dilwyn
Mr QL
Posts: 3183
Joined: Wed Dec 01, 2010 10:39 pm

Re: The BEST QL Editor

Post by dilwyn »

NormanDunbar wrote: Mon Sep 15, 2025 7:29 am EMACS?
Micro_EMACS?

Cheers,
Norm. (Posting from outside the supermarket until we get broadband!)
Grab a couple of Gold Cards while you're there!


User avatar
Derek_Stewart
Font of All Knowledge
Posts: 4864
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: The BEST QL Editor

Post by Derek_Stewart »

NormanDunbar wrote: Mon Sep 15, 2025 7:29 am EMACS?
Micro_EMACS?

I feel the urge to port Vi/Vim to the QL! :D :D :D

I remember using Micro_EMACS on a QL with Trump Card and floppies way back in the very early 1990s, maybe late 1980s, and it was an evil bugger to get to grips with. I stopped using it shortly afterwards. It just didn't work for me. Years later, at work, I had to use Vi, so that's the side of that religious argument that I'm on.

However, the best editor for the QL is whichever one helps you get the task done most efficiently and without getting in your way. My own editor these days is VSCode or Sublime Text (paid for!) On Linux, then uploaded to QPC2. Works for everything except QL non standard characters like copyright, Euro and arrow key characters.

Cheers,
Norm. (Posting from outside the supermarket until we get broadband!)
Hi Norm,

Dave Walker has ported over Elvis v1.6

https://dilwyn.theqlforum.com/editview/elvis.zip

Which is supposed to be a nicer VI(M)

But also use DPs TheEditorSE turbo compiled basic with source.


Regards, Derek
User avatar
Pr0f
QL Wafer Drive
Posts: 1624
Joined: Thu Oct 12, 2017 9:54 am

Re: The BEST QL Editor

Post by Pr0f »

NormanDunbar wrote: Mon Sep 15, 2025 7:29 am EMACS?
Micro_EMACS?

I feel the urge to port Vi/Vim to the QL! :D :D :D

...

Cheers,
Norm. (Posting from outside the supermarket until we get broadband!)
NOOO!

I have to use vi a fair bit at work - and I have to say I hate it. It's similar enough to Xedit which I used to use on IBM Mainframes - but annoyingly different in the places that matter.

Now if someone would port Xedit... (We already have REXX apparently)

:geek:


User avatar
Derek_Stewart
Font of All Knowledge
Posts: 4864
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: The BEST QL Editor

Post by Derek_Stewart »

Pr0f wrote: Mon Sep 15, 2025 5:14 pm
NormanDunbar wrote: Mon Sep 15, 2025 7:29 am EMACS?
Micro_EMACS?

I feel the urge to port Vi/Vim to the QL! :D :D :D

...

Cheers,
Norm. (Posting from outside the supermarket until we get broadband!)
NOOO!

I have to use vi a fair bit at work - and I have to say I hate it. It's similar enough to Xedit which I used to use on IBM Mainframes - but annoyingly different in the places that matter.

Now if someone would port Xedit... (We already have REXX apparently)

:geek:
REXX was ported by Jim Gilmour in the 1990s, which is available on the QL Homepage.

I have never used REXX, but it looks fully featured, is Xedit source code available?


Regards, Derek
User avatar
Pr0f
QL Wafer Drive
Posts: 1624
Joined: Thu Oct 12, 2017 9:54 am

Re: The BEST QL Editor

Post by Pr0f »

Rexx did make an appearance on the Amiga too - Arexx - and was quite a fully featured version of it.

I think Xedit was ported to Windows / Linux under the name Sedit - but not sure the source code ever got released, and it was, what processor that would have been for.


User avatar
ql_freak
Super Gold Card
Posts: 611
Joined: Sun Jan 18, 2015 1:29 am

Re: The BEST QL Editor

Post by ql_freak »

swensont wrote: Sun Sep 14, 2025 6:20 am I've not use Emacs, but I don't think it and MicroEmacs are very similar. MicroEmacs does not use Lisp as a scripting language (luckily).
Do you know the name of the scripting language MicroEMACS is using? At least it seems to me very similar to LISP. E.g. Polish Notation (NOT Reverse PN!), lot of braces necessary...


http://peter-sulzer.bplaced.net
GERMAN! QL-Download page also available in English: GETLINE$() function, UNIX-like "ls" command, improved DIY-Toolkit function EDLINE$ - All with source. AND a good Python 3 Tutorial (German) for Win/UNIX :-)
User avatar
Dave
SandySuperQDave
Posts: 2877
Joined: Sat Jan 22, 2011 6:52 am
Location: Austin, TX
Contact:

Re: The BEST QL Editor

Post by Dave »

The best QL editor/IDE might have the following features:

Doesn't need line numbers
Automatic indent, configurable. 2, 3, 4 spaces. 240x75 that'll be useful
Allows context colouring of keywords
Highlights indents
CTRL=> on DEF PROC or FN calls jumps you there, on RETurn jumps you back
Same with PROC and FN names directly
Opening a proc/fun it adds the close automatically. Same with loops or condition lists
Trace shows list of variables and their values, types, unset etc.
Log variable/const creation, changes as a CSV log file during execution for analysis
Tracking of all memory allocation requests and releases
Memory leak finder (incl. gas detector for van peebles)
Variable/constant highlight screen. Shows everywhere it appears, jumps you there quickly
Undo / history
F1 thru F10 show ten BASIC shells. Easy child processes.
Creating child process, "CREATE CHILD JOB" drops in template code at cursor & entry point code in next free shell for child job
Monitors Proc/Fn usage and reorders definitions to quickest order by frequency of calls
Monitors BASIC keyword usage and reorders linked list by frequency of calls
Automatic dist packaging: creates distribution image
AI code optimisation assistant (that is actually Tim S fixing your code at night)
Github or similar integration


User avatar
Derek_Stewart
Font of All Knowledge
Posts: 4864
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: The BEST QL Editor

Post by Derek_Stewart »

Hi,

MicroEmacs has a simple cut down macro language, the user manual can be found here:

http://www.aquest.com/emacs.pdf


I do not think it is the same as EMACS, but is gives good functionality.

I would of liked more integration with the Extended Environment, but QD does all that, I use both to write programmes.


Regards, Derek
User avatar
tofro
Font of All Knowledge
Posts: 3211
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: The BEST QL Editor

Post by tofro »

Derek_Stewart wrote: Wed Sep 17, 2025 7:28 am
I would of liked more integration with the Extended Environment, but QD does all that, I use both to write programmes.
The most annoying thing IMHO is that uEmacs warps the pointer to some unexpected place if you select a menu item. I keep searching my mouse pointer in that program.


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Post Reply