# Postfix completion

**URL:** <https://discuss.kakoune.com/t/postfix-completion/761>\
**Category:** Off Topic\
**Tags:** other-editors\
**Created:** [October 17, 2019, 5:52am UTC](https://discuss.kakoune.com/t/postfix-completion/761 "2019-10-17T05:52:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Delapouite](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/delapouite/32/10_2.png) [@Delapouite](https://discuss.kakoune.com/u/Delapouite)\
**Post date:** [October 17, 2019, 5:52am UTC](https://discuss.kakoune.com/t/postfix-completion/761/1 "2019-10-17T05:52:50Z")

</div>

Hi

Nothing really new since this article dates from 2014, but I just stumbled upon it: [https://blog.jetbrains.com/idea/2014/03/postfix-completion/](https://blog.jetbrains.com/idea/2014/03/postfix-completion/)

It presents a feature introduced in IntelliJ, which is about snippets / autocompletion.  
The goal of this “postfix completion” system is to be able to transform the text that has just been typed.  
I let you discover the GIFs embedded in the article which are self explanatory.

This trick would be nice in Kakoune, I think we have everything needed in place (InsertChar hooks, suggestions…)

---

<div class="post-metadata">

**Author:** ![andreyorst](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/andreyorst/32/29_2.png) [@andreyorst](https://discuss.kakoune.com/u/andreyorst)\
**Post date:** [October 17, 2019, 8:37am UTC](https://discuss.kakoune.com/t/postfix-completion/761/2 "2019-10-17T08:37:19Z")

</div>

This is really language dependent feature. It will make language scripts really complex. I feel like this is good candidate for LSP.

---

<div class="post-metadata">

**Author:** ![Screwtapello](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/screwtapello/32/12_2.png) [@Screwtapello](https://discuss.kakoune.com/u/Screwtapello)\
**Post date:** [October 17, 2019, 12:46pm UTC](https://discuss.kakoune.com/t/postfix-completion/761/3 "2019-10-17T12:46:48Z")

</div>

rust-analyzer (an alternative Rust Language Server) has [a few of these](https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/features.md#magic-completions), and it’s written by somebody who works/used to work on IntelliJ, so I’m not surprised that the idea has carried over.

I don’t actually know if it works with kak-lsp, though; rust-analyzer seems to be focussed on IDE-like functionality (refactoring and navigation), whereas I’m more interested in inline compiler errors and warnings, so I generally stick with the official Rust Language Server.
