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. --- doc/sciteco.7.template | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doc') diff --git a/doc/sciteco.7.template b/doc/sciteco.7.template index 8ded77c..99a9178 100644 --- a/doc/sciteco.7.template +++ b/doc/sciteco.7.template @@ -1431,6 +1431,19 @@ Replacement string register. Its integer part is currently unused. It is initialized automatically on startup. .TP +.B : " (colon)" +The current document's position (dot). +This changes dot when set as with the +.B J +and other movement commands. +This allows you to change dot temporarily with the following idiom: +.SCITECO_TT +.EX +[: ! ...change dot... ! ]: +.SCITECO_TT_END +.EE +The string part of this register is currently unused. +.TP .SCITECO_TOPIC filename .BR * " (asterisk)" File name (string part) and id (numeric part) of current -- cgit v1.2.3