Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New IncDec plugin for Geany #1351

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,7 @@ endif
if ENABLE_XMLSNIPPETS
SUBDIRS += xmlsnippets
endif

if ENABLE_INCDEC
SUBDIRS += incdec
endif
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Available plugins are:
* ``geniuspaste`` -- the paste to a pastebin plugin
* ``gitchangebar`` -- the GitChangeBar plugin
* ``gtkspell`` -- GeanyVC's spell-check support
* ``incdec`` -- the Increment/Decrement plugin
* ``latex`` -- the LaTeX plugin
* ``lineoperations`` -- simple line functions that can be applied to an open file
* ``lipsum`` -- the Lipsum plugin
Expand Down
1 change: 1 addition & 0 deletions build/geany-plugins.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ Section Uninstall
Delete "$INSTDIR\lib\geany\geanyvc.dll"
Delete "$INSTDIR\lib\geany\geniuspaste.dll"
Delete "$INSTDIR\lib\geany\git-changebar.dll"
Delete "$INSTDIR\lib\geany\incdec.dll"
Delete "$INSTDIR\lib\geany\keyrecord.dll"
Delete "$INSTDIR\lib\geany\lipsum.dll"
Delete "$INSTDIR\lib\geany\lineoperations.dll"
Expand Down
11 changes: 11 additions & 0 deletions build/incdec.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
AC_DEFUN([GP_CHECK_INCDEC],
[
GP_ARG_DISABLE([IncDec], [auto])

GP_COMMIT_PLUGIN_STATUS([IncDec])

AC_CONFIG_FILES([
incdec/Makefile
incdec/src/Makefile
])
])
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ GP_CHECK_VIMODE
GP_CHECK_WEBHELPER
GP_CHECK_WORKBENCH
GP_CHECK_XMLSNIPPETS
GP_CHECK_INCDEC
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the rest of the list is sorted alphabetically, could you move your plugin after GP_CHECK_GITCHANGEBAR?


GP_COMMIT_UTILSLIB_STATUS

Expand Down
1 change: 1 addition & 0 deletions incdec/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sylvain Cresto <scresto(at)gmail(dot)com>
674 changes: 674 additions & 0 deletions incdec/COPYING

Large diffs are not rendered by default.

Empty file added incdec/ChangeLog
Empty file.
4 changes: 4 additions & 0 deletions incdec/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 = incdec
Empty file added incdec/NEWS
Empty file.
50 changes: 50 additions & 0 deletions incdec/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
=========
IncDec
=========

.. contents::


About
=====

IncDec is a plugin for Geany that provides shortcuts to increment and decrement
number at the cursor, or to the right of the cursor (on the same line).


Usage
=====

By default, typing Shift-+ will increment the next number, and typing Shift--
will decrement the next number.
You can also increment and decrement number many times by typing Shift-*.
The number can be at the cursor, or to the right of the cursor (on the same line).
Numbers can be negative and positive, and can be in decimal or hexadecimal format
(hexadecimal number start with 0x).
You can customize those defaults keys on the preferences, under the Keybindings tab
by setting the *IncDec* keybinding.
An item *Increment or Decrement number* is also added in the Editor Popup Menu, it
can be hidden by changing the Plugins Preferences.


License
=======

This plugin is distributed under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 2 of the
License, or (at your option) any later version. You should have received a copy
of the GNU General Public License along with this plugin. If not, see
<http://www.gnu.org/licenses/>.


Contact
=======

You can email me at <scresto(at)gmail(dot)org>.


Bug reports and feature requests
--------------------------------

To report a bug or ask for a new feature, please use the Geany-Plugins tracker
on GitHub: https://github.com/geany/geany-plugins/issues
16 changes: 16 additions & 0 deletions incdec/src/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
include $(top_srcdir)/build/vars.build.mk
plugin = incdec

geanyplugins_LTLIBRARIES = incdec.la


incdec_la_SOURCES = incdec-plugin.c
incdec_la_CPPFLAGS = $(AM_CPPFLAGS) \
-DG_LOG_DOMAIN=\"IncDec\"
incdec_la_CFLAGS = $(AM_CFLAGS) \
$(INCDEC_CFLAGS)
incdec_la_LIBADD = $(COMMONLIBS) \
$(INCDEC_LIBS)


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