https://github.com/01mu/jump-to-a-word
Move the cursor to a word in Geany
https://github.com/01mu/jump-to-a-word
c geany glib gtk motion plugin scintilla
Last synced: 6 months ago
JSON representation
Move the cursor to a word in Geany
- Host: GitHub
- URL: https://github.com/01mu/jump-to-a-word
- Owner: 01mu
- Created: 2025-03-05T12:25:20.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-04-03T12:36:11.000Z (6 months ago)
- Last Synced: 2025-04-03T13:38:16.539Z (6 months ago)
- Topics: c, geany, glib, gtk, motion, plugin, scintilla
- Language: C
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jump to a Word
## Introduction
**Jump to a Word** is a plugin for [Geany](https://github.com/geany/geany) that lets the user instantly move their cursor to a visible word, character, substring, or line. It also provides features for more precise text selection and transformation. The development of this plugin was influenced by the GNU Emacs package [avy](https://github.com/abo-abo/avy) and specifically [this demonstration of it](https://www.youtube.com/watch?v=EsAkPl3On3E&t=1333s).## Overview
The plugin allows the user to:
- Use shortcuts to jump to a word, character, or line
- Use a search term to jump to a word or substring
- Edit all occurances of a selected word, character, or substring
- Perform an action or selection after jumping to a word, character, substring, or line
These actions can be triggered from the menu, the command panel, or a keybinding.
### Jumping to a word using a shortcut
Places a shortcut on every word on the screen and moves the cursor to that word when pressed.

### Jumping to a character using a shortcut
Places a shortcut on every character on the screen that matches the provided query.

### Jumping to a line using a shortcut
Places a shortcut on every line on the screen.

### Jumping to a word using a search term
Highlights every word on the screen that matches the provided search term. The words can be cycled through using the left and right arrow keys.

### Jumping to a substring using a search term
Highlights every substring on the screen that matches the provided search term.

### Editing all occurances of a selected word, character, or substring
You can replace the selected text by using the "Replace selected text" function during a character shortcut jump, a word search, or a substring search. All occurances of a selected character, the word under the cursor, or a selected substring will be instantly tagged if you are not in shortcut or search mode.
### Performing an action after jumping to a word, character, substring, or line
You can either select the text or select to the position of the text after jumping to a word, character, or substring. You may also select the text contained in the range between two positions. The action that occurs can be changed in the plugin preferences.
### Jumping or searching within a selection
If a range of text is selected, the text within that selection will be used for jumping or searching. This can be disabled in the plugin preferences.
### Jumping to the previous cursor position
You can move the cursor back to its previous position after a jump.
## Building
Make sure you have [Geany](https://github.com/geany/geany) installed:
`apt-get install libgtk-3-dev autoconf automake autopoint gettext`
`cd jump-to-a-word && make`
Then move `jump-to-a-word.so` to your plugin path.