From a84e3aeb859641cb8f0fc47261427c7a98a136dd Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Tue, 21 Jul 2020 09:08:35 +0300 Subject: [PATCH] doc faq: Document beam cursors being inconsistent --- doc/pages/faq.asciidoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/pages/faq.asciidoc b/doc/pages/faq.asciidoc index 5dbed3b5..956bec57 100644 --- a/doc/pages/faq.asciidoc +++ b/doc/pages/faq.asciidoc @@ -239,6 +239,19 @@ highlighting hooks is `-highlight`. You can thus disable syntax highlighting using the following command: `set global disabled_hooks '.+-highlight'` +=== Can the cursor be rendered as a beam? + +Rendering the cursor as a beam is a common feature of other modal editors, +it however doesn't fit within Kakoune's selection-first paradigm. + +There is a selection on screen at all times, containing either data selected +by the user, or a newline character when the buffer is empty. + +A selection is bound by an anchor and a cursor. They can overlap, but +ultimately must both be placed *over* a character. A beam cursor placed +*between* two characters doesn't fulfil that requirement, and is thus +not allowed. + == The editing language === Why aren't there other scopes similar to `%sh{}` e.g. python?