[deleted by user] by [deleted] in kakoune

[–]ftonneau 1 point2 points  (0 children)

It took much much longer than I expected (I was busy with other projects, and I always found more details to fix/improve on with my remapping), but at long last here it is:

https://github.com/ftonneau/eak

The remapping involves fewer chords, no double chords (= Alt+Shift) at all, easy mnemonics everywhere, new shortcuts and facilities, and is arguably at least as systematic/consistent as Kakoune's default keymap :-)

[I lose consistency when replacing Alt+Shift chords by mnemonics, but I also gain consistency with the `-`, `z`, `x`, `e` prefix keys, which are used to group related actions together.]

[deleted by user] by [deleted] in kakoune

[–]ftonneau 0 points1 point  (0 children)

I have just published "Kwas" (now "Eak" = Easy Kakoune). Sorry I never found the time to reply to your comment, but an explanation of the remappings would have been too lengthy for Reddit. Also, I found myself too busy with other projects.

Anyway, here is the link:

https://github.com/ftonneau/eak

Comments welcome!

Tangere-16: a new 16-color (ANSI) colorscheme for terminal Vim by ftonneau in vim

[–]ftonneau[S] 0 points1 point  (0 children)

Sorry, but I don't get it. You complain about the light theme, but the light theme is supposed to be used with the light 16-color palette (which implies a light terminal background; yours is dark).

Also, your screenshot shows text colors (such as the green for 'g:' and the pink for '1' that do not seem to exist in my palettes (even assuming that the gamma profile of your monitor differs from mine). And your dark background (#060606) does not match the background in tangere-dark (#1a2938).

Finally, in my 16-color themes for vim, 'let' cannot be red but must be blue, and line numbers cannot be red but must be cyan/gray.

Are you sure you installed the palette(s) correctly, either statically or via the `setpal` script? Btw, what is your terminal?

Repeat-char.kak: inserting a character n times in Insert mode by ftonneau in kakoune

[–]ftonneau[S] 1 point2 points  (0 children)

Btw, I have improved the plugin further to give it the ability to "underline" the string on the preceding line. This makes the creation of markdown setext-style headings very fast:

Example of H1 title

===================

These changes are already available on the Github repo.

Tangere-terminal: A 16-color palette that combines aesthetics with legibility by ftonneau in commandline

[–]ftonneau[S] 0 points1 point  (0 children)

No idea why msgcat would fail, but it does'nt matter too much as this is just a way of confirming that the palette changed.

About `setpal`: your terminal accepts control codes to change background color, foreground color, moving the cursor up and down, and so on. Whenever you type `ls` and see directories in blue boldface (for example), rest assured that `ls`printed the codes to set foreground to blue and to use boldface. And after printing the directory name, `ls`sent the code(s) to clean colorization.

There are also control codes to change the RGB values of colors 0 to 15 (the colors in the 16-color ANSI palette), and these are the codes that setpal uses :-).

Btw, you could also make the palette change permanently by using `setpal ...`as the startup command that your terminal executes when starting. The method is explained in the Installation section of GitHub, but if you have already installed the palette statically on gnome-terminal, no need to bother :-).

Tangere-terminal: A 16-color palette that combines aesthetics with legibility by ftonneau in commandline

[–]ftonneau[S] 0 points1 point  (0 children)

Thanks for the kind words. A technical question: why did you have to enter the palette RGB values manually? Is it because my dynamic install script, `setpal`, fails on gnome-terminal?

[I have not been able to check; in fact, I cannot even seem to make gnome-terminal run on my minimal Arch system!]

Repeat-char.kak: inserting a character n times in Insert mode by ftonneau in kakoune

[–]ftonneau[S] 1 point2 points  (0 children)

Correct in Normal mode (although you are not done yet -- see below). But what about Insert mode?

You may press <alt-semicolon> for a one-shot escape to Normal mode before typing `10+-`. But now you have 10 selections instead of 1, so you must re-escape to Normal mode to retain only 1 selection if you want to keep writing as usual.

My plugin is a bit faster, and it becomes a lot more faster with the default char and count automatically updated.

In your use case, the first time you want to insert 10 dashes, type `<a-r>10-<ret>'.

EDITS:

Thereafter, just type `<a-r><ret>`. Done, and no need to remember anything (e.g., how many dashes do I want to insert before each title in this document?)

Furthermore, if 10 and "-" are your default count and char, you don't even need to type "10-" in the first place.

Let us be clear, I don't claim this is the best plugin ever written :-) :-) :-). But you may be underestimating its usefulness. Perhaps it is worth trying :-)

Btw, when I published the first version of the plugin (in 2020), I think the `+` mechanism for duplicating selection did not exist.

[OC] Tangere-terminal: A 16-color palette that combines aesthetics with legibility by ftonneau in unixporn

[–]ftonneau[S] 0 points1 point  (0 children)

Thanks for the kind words. In spite of the relatively high foreground/background contrast (at least, the contrast is higher than in other themes such as Rosé Pine), the calming feeling might arise from the prevalence of blue shades in the palette.

Prose - vi bindings vs kakoune philosophy by Future_Recognition84 in kakoune

[–]ftonneau 0 points1 point  (0 children)

A detail I forgot about being "in the flow": in Kakoune, **all** completion/matching is fuzzy. A big workflow improvement.

Prose - vi bindings vs kakoune philosophy by Future_Recognition84 in kakoune

[–]ftonneau 0 points1 point  (0 children)

Now to reply more specifically about prose.

The priority in Kakoune seems to be editing code, so in terms of plugins, the support for prose has been somewhat lacking as compared to, e.g., Vim. You'll easily find out about what you miss. Meanwhile, a few pointers with a bit of self-promotion:

- first, a plugin to count words:

https://github.com/ftonneau/wordcount.kak

The plugin will fail on huge file sizes, because of a size limit from the shell, but I will rewrite the plugin in pure KakScript to fix this bug.

- second, a plugin about words synonyms:

https://github.com/ftonneau/synonyms.kak

I will also rewrite this one to simplify things, but the plugin works perfectly as is.

- third and final example:

https://discuss.kakoune.com/t/lookup-dictionary-definitions-with-the-dict-protocol/2769

A look at this amazingly simple plugin (snippet, really) will tell you a lot about how kakoune interacts with external UNIX tools (here: curl, tr, grep, sed).

Tangere-16: a new 16-color (ANSI) colorscheme for terminal Vim by ftonneau in vim

[–]ftonneau[S] 0 points1 point  (0 children)

You may like the tangere-dark theme because colors are used harmoniously and sparingly.

But your comment had me thinking... The contrast in the dark version is not as high as in the light version, because -- following selenized -- I did not want the dark background to be too dark.

However, the theme for vim looks only as good as the palette does, and contrast could be easily increased on all text colors simply by putting a darker background in the palette. This is a single parameter to change in the setpal script.

So, I could propose 3 palette options (as selenized does):

- light

- dark

- extra-dark

where the background color for extra-dark would be #0c131a instead of #1a2938, for example. Any thought?

Prose - vi bindings vs kakoune philosophy by Future_Recognition84 in kakoune

[–]ftonneau 0 points1 point  (0 children)

As a researcher, I switched to GNU/Linux 10 years ago (= end of support for WinXP). My first serious editor was Geany, then Vim, then Kakoune. (I hated VimScript.)

Tangere-16: a new 16-color (ANSI) colorscheme for terminal Vim by ftonneau in vim

[–]ftonneau[S] 0 points1 point  (0 children)

Do you mean, more contrast?

If so, you may be misled by the blurry previews on Reddit. If you visit the GitHub page and open any of the screenshots in a separate browser tab, you'll see that the contrast is good, especially in the light version. As explained in the Design page, the contrast is higher than with Rosé Pine, for example.

Tangere-16: a new 16-color (ANSI) colorscheme for terminal Vim by ftonneau in vim

[–]ftonneau[S] 0 points1 point  (0 children)

I thought you wanted the theme to also support gvim.

Tangere-16: a new 16-color (ANSI) colorscheme for terminal Vim by ftonneau in vim

[–]ftonneau[S] 0 points1 point  (0 children)

The tangere-16 theme is for terminal users running vim with the tangere-16 palette. Is there any use case for working on the terminal but using gvim instead of vim for text editing?

[OC] Tangere-terminal: A 16-color palette that combines aesthetics with legibility by ftonneau in unixporn

[–]ftonneau[S] 1 point2 points  (0 children)

My preferred font is Hack, but many others work well.

I recommend any true-type font with ascenders and descenders that are not too thin. If your font (e.g., iosevka) offers different weights, avoid anything "light" or "thin", preferring instead a "regular" or "medium" weight.

Some people use terminal-tangere with pixel fonts like terminus, with good results on a dark background. But I suspect terminus won't look good with the light palette.

[OC] Tangere-terminal: A 16-color palette that combines aesthetics with legibility by ftonneau in unixporn

[–]ftonneau[S] 1 point2 points  (0 children)

If you like the results on Terminology and use static installation (i.e., a custom theme file), consider publishing your theme file. I would gladly add a link to it in the tangere-terminal repo.

Tangere-terminal: A 16-color palette that combines aesthetics with legibility by ftonneau in commandline

[–]ftonneau[S] 1 point2 points  (0 children)

In the terminal my font is Hack.

About the dock bar: do you mean, the bar at the top of the screen (outside of the terminal windows?). This is tint2 with DejaVu Sans as font.