[hackers][vis][RFC][PATCH 0/2] Suggestion for basic autocomplete functionality

From: Silvan Jegen <s.jegen_AT_gmail.com>
Date: Mon, 16 May 2016 13:00:57 +0200

Heyhey

I have implemented basic autocomplete functionality by sending the text
at cursor position as a context to shell commands and dmenu. The user
then chooses the autocompletion text he wants to use in dmenu which is
then inserted at cursor position.

Ideally the same approach should be used for code completion by sending
some context to a code completion daemon (like gocode[0] for example). The
daemon's output can then be sent to dmenu and selected by the user.

The patches are still rough but I did not want to invest more time
without knowing if such an approach would be considered for inclusion
or not. Let me know what you think.


Cheers,

Silvan


[0] https://github.com/nsf/gocode

Silvan Jegen (2):
  Add autocompletion for current file contents
  Add autocompletion for file names

 config.def.h | 2 +
 main.c | 134 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 vis.c | 6 ++-
 vis.h | 1 +
 4 files changed, 142 insertions(+), 1 deletion(-)

-- 
2.8.2
Received on Mon May 16 2016 - 13:00:57 CEST

This archive was generated by hypermail 2.3.0 : Mon May 16 2016 - 13:12:13 CEST