Skip to content

Commit

Permalink
vimode: A Vim Mode for Geany
Browse files Browse the repository at this point in the history
I know what you think - the last thing Geany needed...
  • Loading branch information
techee committed Apr 16, 2018
1 parent b70e860 commit 96058dd
Show file tree
Hide file tree
Showing 47 changed files with 7,737 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@ M: Frank Lanitz <[email protected]>
W: http://plugins.geany.org/updatechecker.html
S: Maintained

vimode
P: Jiří Techet <[email protected]>
g: @techee
M: Jiří Techet <[email protected]>
W: http://plugins.geany.org/vimode.html
S: Maintained

webhelper
P: Colomban Wendling <[email protected]>
g: @b4n
Expand Down
4 changes: 4 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ if ENABLE_UPDATECHECKER
SUBDIRS += updatechecker
endif

if ENABLE_VIMODE
SUBDIRS += vimode
endif

if ENABLE_WEBHELPER
SUBDIRS += webhelper
endif
Expand Down
1 change: 1 addition & 0 deletions build/geany-plugins.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ Section Uninstall
Delete "$INSTDIR\lib\geany\tableconvert.dll"
Delete "$INSTDIR\lib\geany\treebrowser.dll"
Delete "$INSTDIR\lib\geany\updatechecker.dll"
Delete "$INSTDIR\lib\geany\vimode.dll"
Delete "$INSTDIR\lib\geany\webhelper.dll"
Delete "$INSTDIR\lib\geany\workbench.dll"
Delete "$INSTDIR\lib\geany\xmlsnippets.dll"
Expand Down
9 changes: 9 additions & 0 deletions build/vimode.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
AC_DEFUN([GP_CHECK_VIMODE],
[
GP_ARG_DISABLE([Vimode], [auto])
GP_COMMIT_PLUGIN_STATUS([Vimode])
AC_CONFIG_FILES([
vimode/Makefile
vimode/src/Makefile
])
])
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ GP_CHECK_SPELLCHECK
GP_CHECK_TREEBROWSER
GP_CHECK_TABLECONVERT
GP_CHECK_UPDATECHECKER
GP_CHECK_VIMODE
GP_CHECK_WEBHELPER
GP_CHECK_WORKBENCH
GP_CHECK_XMLSNIPPETS
Expand Down
3 changes: 3 additions & 0 deletions po/POTFILES.in
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ treebrowser/src/treebrowser.c
# UpdateChecker
updatechecker/src/updatechecker.c

# ViMode
vimode/src/backends/backend-geany.c

# WebHelper
webhelper/src/gwh-enum-types.c
webhelper/src/gwh-keybindings.c
Expand Down
1 change: 1 addition & 0 deletions vimode/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Jiří Techet <[email protected]>
340 changes: 340 additions & 0 deletions vimode/COPYING

Large diffs are not rendered by default.

Empty file added vimode/ChangeLog
Empty file.
4 changes: 4 additions & 0 deletions vimode/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include $(top_srcdir)/build/vars.auxfiles.mk

SUBDIRS = src
plugin = vimode
Empty file added vimode/NEWS
Empty file.
565 changes: 565 additions & 0 deletions vimode/README

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions vimode/THANKS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Various parts of the plugin code were taken from other Geany plugins, from Geany
code or Scintilla. Thanks to all the authors of the corresponding code.

Thanks to Frank Lanitz for the name of the plugin.

Thanks to Bill Joy and Bram Moolenaar for creating vi and vim, respectively, so
every bloody editor on the planet has to create a compatibility mode with this
crazy editor to make users happy.
1,657 changes: 1,657 additions & 0 deletions vimode/index.txt

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions vimode/src/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
include $(top_srcdir)/build/vars.build.mk
plugin = vimode

geanyplugins_LTLIBRARIES = vimode.la

noinst_PROGRAMS = viw

vi_srcs = \
vi.h \
vi.c \
keypress.h \
keypress.c \
utils.h \
utils.c \
sci.h \
sci.c \
context.h \
cmd-params.h \
cmd-params.c \
cmd-runner.h \
cmd-runner.c \
excmd-params.h \
excmd-runner.h \
excmd-runner.c \
excmd-prompt.h \
excmd-prompt.c \
cmds/motion.h \
cmds/motion.c \
cmds/txtobjs.h \
cmds/txtobjs.c \
cmds/changemode.h \
cmds/changemode.c \
cmds/special.h \
cmds/special.c \
cmds/edit.h \
cmds/edit.c \
excmds/excmds.h \
excmds/excmds.c

vimode_la_SOURCES = \
backends/backend-geany.c \
$(vi_srcs)

viw_SOURCES = \
backends/backend-viw.c \
$(vi_srcs)

vimode_la_CPPFLAGS = $(AM_CPPFLAGS) \
-DG_LOG_DOMAIN=\"Vimode\"
vimode_la_CFLAGS = $(AM_CFLAGS)
vimode_la_LIBADD = $(COMMONLIBS)

viw_CPPFLAGS = $(AM_CPPFLAGS) \
-DG_LOG_DOMAIN=\"Vimode\"
viw_CFLAGS = $(AM_CFLAGS)
viw_LDADD = $(COMMONLIBS)

include $(top_srcdir)/build/cppcheck.mk
Loading

0 comments on commit 96058dd

Please sign in to comment.