Clément Joly
801b6f556a
style: rename macro to improve formatting with fnlfmt
2023-12-20 22:12:43 +00:00
Clément Joly
c019760081
refactor: use fennel case
, as it’s a bit safer
2023-06-15 21:57:47 +00:00
Clément Joly
090b4fdb16
doc: make section order actually stable
...
We were already trying to achieve that by sorting the table, but we were
actually sorting by values (i.e. documentation text of a particular
section). To fix this, we now extract the keys, sort them and get back
the items from the initial table, in alphabetical order now.
2023-06-15 21:54:17 +00:00
Clément Joly
5d68c5666b
Revert "feat: add <C-é> mapping for <C-w>"
...
This is not supported widely enough, the <C-é> mapping does not work.
This reverts commit 9491e9efa56f6004bcc19f7a5985e417e4d3c195.
2023-06-15 21:53:48 +00:00
Clément Joly
354a6b5ea5
feat: add <C-é> mapping for <C-w>
...
<C-é> is much more acessible.
2023-06-15 21:53:48 +00:00
Clément Joly
efce15ecd4
fix: Visual & Select mode mappings
...
Currently, Visual mappings are defined using “v”, which according to
`map-table`:
Mode | Norm | Ins | Cmd | Vis | Sel | Opr | Term | Lang |
Command +------+-----+-----+-----+-----+-----+------+------+
[nore]map | yes | - | - | yes | yes | yes | - | - |
n[nore]map | yes | - | - | - | - | - | - | - |
[nore]map! | - | yes | yes | - | - | - | - | - |
i[nore]map | - | yes | - | - | - | - | - | - |
c[nore]map | - | - | yes | - | - | - | - | - |
v[nore]map | - | - | - | yes | yes | - | - | - | <--
x[nore]map | - | - | - | yes | - | - | - | - | <--
s[nore]map | - | - | - | - | yes | - | - | - |
o[nore]map | - | - | - | - | - | yes | - | - |
t[nore]map | - | - | - | - | - | - | yes | - |
l[nore]map | - | yes | yes | - | - | - | - | yes |
This means that we define mappings for both the Visual and the Select
mode. This however pollutes the Select mode and violates the intent
behind the mode. Quoting the documentation:
> Users will expect printable characters to replace the selected area.
> Therefore avoid mapping printable characters in Select mode.
:h Select-mode-mapping
Using “x”, we will only map for Visual mode.
2023-06-15 21:17:20 +00:00
Clément Joly
6580e65ca2
doc: start with a section heading comment
2022-11-13 12:58:54 +00:00
Clément Joly
62d20e3f03
docs: document more of the exported functions
2022-08-21 23:33:42 +01:00
Clément Joly
8fd660aa7a
docs: automatically generate help files from code
...
This takes the fennel code to generate documentation listing the
shortcuts installed.
2022-08-21 23:16:17 +01:00
Clément Joly
2b68d91807
feat: use zT as a “zt”
...
“zT” is easier to reach than “zj”
2022-06-04 12:19:23 +00:00
Clément Joly
e0a4455569
doc: clarify free keys
2022-06-04 12:04:03 +00:00
Clément Joly
262c921df5
feat: add « in visual mode with automatic reselection
2022-05-07 21:12:41 +00:00
Clément Joly
bb12119765
doc: improve free key comments
2022-05-07 21:00:48 +00:00
Clément Joly
ac3392d10d
doc: document group mapping feature
2022-05-07 20:59:01 +00:00
Clément Joly
363d16adcc
feat: expose a few small groups of mapping changes
...
Those can be loaded as required
2022-05-07 20:54:16 +00:00
Clément Joly
8af301bc20
docs: improve comments
2022-05-07 20:38:27 +00:00
Clément Joly
484015a0b5
feat: always perform the mappings
...
I have found no use of not performing a mapping and the user can always
remap after calling setup.
2022-05-07 20:30:52 +00:00
Clément Joly
d7dc868fe4
feat: improve performance by mapping less text objects
...
Mapping things like tab navigation on text object is unnecessary and
even detrimental as these could be used for something else.
2022-05-07 20:24:52 +00:00
Clément Joly
00362b9325
fix: restore R mapping (to L)
2022-05-07 20:11:23 +00:00
Clément Joly
b81af2dace
fix: gé and gB mappings
2022-05-07 20:06:08 +00:00
Clément Joly
5aff414d44
misc cleanup
2022-05-07 19:41:56 +00:00
Clément Joly
f4fde90367
Initial import from michamos/vim-bepo
2022-05-07 19:29:46 +00:00
Clément Joly
72f7645924
Initial commit
2022-05-07 19:01:29 +00:00