Added more links to editor
This commit is contained in:
parent
66bd859993
commit
7f53e5f523
3 changed files with 28 additions and 14 deletions
|
|
@ -11,9 +11,9 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
Commands are actions triggered to operate on buffers primarily. They are
|
Commands are actions triggered to operate on buffers primarily. They are
|
||||||
present in `editor`, `tui`, `mode` and `minimodes`, it's possible to
|
present in [editor](/docs/architecture/editor), `tui`, `mode` and
|
||||||
find commands in other places, which will become evident when the need
|
`minimodes`, it's possible to find commands in other places, which
|
||||||
arises.
|
will become evident when the need arises.
|
||||||
|
|
||||||
## Previous notes[]($section.id('notes'))
|
## Previous notes[]($section.id('notes'))
|
||||||
|
|
||||||
|
|
@ -160,6 +160,11 @@ pub fn select_to_char_left_helix(_: *void, ctx: Ctx) Result {
|
||||||
|
|
||||||
## [Next steps]($section.id('next'))
|
## [Next steps]($section.id('next'))
|
||||||
|
|
||||||
|
[Editor](/docs/architecture/editor) has a walkthrough when working with
|
||||||
|
selections, modifying the contents of the editor and deepens in concepts
|
||||||
|
that allow understand how the internal interactions happen when editing
|
||||||
|
a document.
|
||||||
|
|
||||||
[Minimodes](/docs/architecture/minimode) pass arguments to the editor,
|
[Minimodes](/docs/architecture/minimode) pass arguments to the editor,
|
||||||
if you wonder how to go beyond the current buffer window, when there
|
if you wonder how to go beyond the current buffer window, when there
|
||||||
are actions like going to a specific line or when searching or
|
are actions like going to a specific line or when searching or
|
||||||
|
|
|
||||||
|
|
@ -43,18 +43,27 @@ offers services around the set of projects.
|
||||||
## [Editor commands and modes]($section.id("commands"))
|
## [Editor commands and modes]($section.id("commands"))
|
||||||
|
|
||||||
When a buffer is active, it has an Editor
|
When a buffer is active, it has an Editor
|
||||||
attached to it; an editor might have associated tree-sitter support,
|
attached to it; an [editor](/docs/architecture/editor) might have
|
||||||
given the file type detected, and offers common services that are aimed
|
associated tree-sitter support, given the file type detected, and
|
||||||
to be used by `Commands` to manipulate the contents of a buffer at a
|
offers common services that are aimed to be used by `Commands` to
|
||||||
higher level, the selections, cursors, cursor selections `CurSel` and
|
manipulate the contents of a buffer at a higher level, the
|
||||||
the `View`. [Commands](/docs/architecture/command) are used by `Modes`
|
[selections](/docs/architecture/editor#selection_concept),
|
||||||
|
[cursors](/docs/architecture/editor#cursor_concept),
|
||||||
|
cursor selections
|
||||||
|
([CurSel](/docs/architecture/editor#cursel_concept)),
|
||||||
|
[markers](/docs/architecture/editor#mark_concept) and the
|
||||||
|
[view](/docs/architecture/editor#view_concept).
|
||||||
|
|
||||||
|
[Commands](/docs/architecture/command) are used by `Modes`
|
||||||
with [Keybindings](/docs/architecture/keybind). The main mode is Flow
|
with [Keybindings](/docs/architecture/keybind). The main mode is Flow
|
||||||
and the keybindings can be used to map to a mode built up entirely on
|
and the keybindings can be used to map to a mode built up entirely on
|
||||||
solely calling already created commands. An example of a mode
|
solely calling already created commands.
|
||||||
created by command composition is `Emacs` mode, for instance, it's
|
|
||||||
possible to create a nano mode with just keybindings. In the other hand,
|
An example of a mode created by command composition is `Emacs` mode,
|
||||||
`Vim` and [Helix](/docs/mode/helix) modes have particular definitions
|
for instance, it's possible to create a nano mode with just keybindings.
|
||||||
for commands that interact with the buffers, being modal editors.
|
In the other hand, `Vim` and [Helix](/docs/mode/helix) modes have
|
||||||
|
particular definitions for commands that interact with the buffers,
|
||||||
|
being modal editors.
|
||||||
|
|
||||||
## [Text user interface]($section.id("tui"))
|
## [Text user interface]($section.id("tui"))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="$site.page('docs/contributing').link()">contributing</a></li>
|
<li><a href="$site.page('docs/contributing').link()">contributing</a></li>
|
||||||
<li><a href="$site.page('docs/testing').link()">testing</a></li>
|
<li><a href="$site.page('docs/testing').link()">testing</a></li>
|
||||||
<li><a href="$site.page('docs/architecture').link()">architeture</a></li>
|
<li><a href="$site.page('docs/architecture').link()">architecture</a></li>
|
||||||
<li><ul>
|
<li><ul>
|
||||||
<li><a href="$site.page('docs/architecture/keybind').link()">keybind</a></li>
|
<li><a href="$site.page('docs/architecture/keybind').link()">keybind</a></li>
|
||||||
<li><a href="$site.page('docs/architecture/command').link()">command</a></li>
|
<li><a href="$site.page('docs/architecture/command').link()">command</a></li>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue