36 Commits

Author SHA1 Message Date
Clément Joly
77986a7dcf
doc: add installation instructions
This was requested in #5
2024-03-19 23:25:35 +00:00
Clément Joly
801b6f556a style: rename macro to improve formatting with fnlfmt 2023-12-20 22:12:43 +00:00
Clément Joly
babf417ed5 doc: add instructions to reproduce bugs 2023-12-16 14:32:10 +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
3cd47862c7 chore: add gitattributes for GitHub stats & diff 2022-10-23 19:30:29 +01:00
Clément Joly
aedb275b57 Misc doc fixes 2022-09-02 07:56:51 +02:00
Clément Joly
1385f1500e docs: fix miscaligned tables by checking for UTF-8 2022-08-23 06:58:52 +01:00
Clément Joly
21f1296a05 refactor: rework Makefile and helper scripts 2022-08-23 06:43:22 +01:00
Clément Joly
834f806d3c docs: improve the Readme and generate homepage v0.1.0 2022-08-22 00:24:50 +01:00
Clément Joly
a5c73fd9f7 fix: properly name the help file so that nvim finds it 2022-08-21 23:57:50 +01:00
Clément Joly
07c301068a docs: tweak the script generating the docs
Makes it support comments in the middle of the body
2022-08-21 23:48:42 +01: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
3d84a9acf5 style: add .editorconfig 2022-06-04 12:04:03 +00:00
Clément Joly
e0a4455569 doc: clarify free keys 2022-06-04 12:04:03 +00:00
Clément Joly
5df24240ce
Update Readme.md 2022-05-13 20:32:30 +01:00
Clément Joly
262c921df5 feat: add « in visual mode with automatic reselection 2022-05-07 21:12:41 +00:00
Clément Joly
218072b427 doc: clarify setup 2022-05-07 21:07:50 +00:00
Clément Joly
1f1c6cd850 feat: add support for some plugin
Same as upstream
2022-05-07 21:05:09 +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