Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Convert old hints.c to the webkit2 era
Lots of it is still disabled, but the basic hint showing happening when
pressing 'f' works.
  • Loading branch information
Virgil Dupras authored and fanglingsu committed May 6, 2017
1 parent d01d8b5 commit ee115b3
Show file tree
Hide file tree
Showing 7 changed files with 423 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/config.def.h
Expand Up @@ -51,6 +51,8 @@
#define SETTING_GUI_FONT_EMPH "bold 10pt monospace"
#define SETTING_HOME_PAGE "about:blank"

#define MAXIMUM_HINTS 500

/* CSS style use on creating hints. This might also be averrules by css out of
* $XDG_CONFIG_HOME/vimb/style.css file. */
#define HINT_CSS "#_hintContainer{\
Expand Down
7 changes: 3 additions & 4 deletions src/ex.c
Expand Up @@ -33,6 +33,7 @@
#include "config.h"
#include "ex.h"
#include "handler.h"
#include "hints.h"
#include "history.h"
#include "main.h"
#include "map.h"
Expand Down Expand Up @@ -225,9 +226,7 @@ void ex_enter(Client *c)
void ex_leave(Client *c)
{
completion_clean(c);
#if 0
hints_clear();
#endif
hints_clear(c);
}

/**
Expand Down Expand Up @@ -397,7 +396,7 @@ void ex_input_changed(Client *c, const char *text)
switch (*text) {
case ';': /* fall through - the modes are handled by hints_create */
case 'g':
/* TODO create hints */
hints_create(c, text);
break;
case '/': /* fall through */
case '?':
Expand Down

0 comments on commit ee115b3

Please sign in to comment.