From 23c90e37ff48707c4aabdb8b1460df382a600d7a Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 24 Nov 2024 04:38:16 +0300 Subject: added special Q-Register ":" for accessing dot * We cannot call it "." since that introduces a local register and we don't want to add an unnecessary syntactic exception. * Allows the idiom [: ... ]: to temporarily move around. Also, you can now write ^E\: without having to store dot in a register first. * In the future we might add an ^E register as well for byte offsets. However, there are much fewer useful applications. * Of course, you can now also write nU: instead of nJ, Q: instead of "." and n%: instead of "nC.". However it's all not really useful. --- TODO | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 468c040..ab7319d 100644 --- a/TODO +++ b/TODO @@ -356,12 +356,8 @@ Features: cmdline.c can then directly operate on the Scintilla document. * A Scintilla view will allow syntax highlighting * command line could highlight dead branches (e.g. gray them out) - * Add special Q-Register for dot: - Would simplify inserting dot with string building and saving/restoring - dot on the QReg stack. - Since [. is currently not valid and [[.] is cumbersome, there should be - a special syntactic workaround to allow [.. or perhaps we'll simply call - it :, so you can write [: + * Perhaps add a ^E register analogous to ":", but working with + byte offsets. This would mainly be useful in ^E\^E. * EL command could also be used to convert all EOLs in the current buffer. * nEL should perhaps dirtify the buffer, at least when automatic -- cgit v1.2.3