kas/jedstate
1
0
Fork
You've already forked jedstate
0
Hooks for the JED editor to remember its cursor position across invocations
  • Slash 81%
  • Shell 19%
2024年06月11日 15:41:14 +02:00
aur Typo correction et al. 2024年01月29日 17:39:57 +01:00
bin Initial commit 2024年01月29日 16:48:47 +01:00
img Initial commit 2024年01月28日 12:48:09 +01:00
src Increase verbosity 2024年06月11日 15:41:14 +02:00
LICENSE Initial commit 2024年01月28日 10:57:03 +00:00
README.md Move SPDX stanza to a separate line 2024年01月31日 15:16:02 +01:00

JedState

Hooks for the JED editor to remember its cursor position across invocations.

Installation

ArchLinux

ArchLinux user can install AUR/jedstate-git using an AUR helper, and follow the on-screen instructions.

Manual installation

  1. Put the jedstate.sl file in a place where jed can find it, e.g. $JED_ROOT/lib/ (/usr/lib/jed/lib/). If you do not have write access to $JED_ROOT, simply append jedstate.sl to your ~/.jedrc.
  2. Append the jedstate-hooks.sl file to your existing ~/.jedrc file. If you are already using startup_hook() and/or exit_hook() you may have to edit these to something that resembles the sample hooks.

JedState stores its state files in the directory pointed to by $JED_STATE_HOME, creating it if necessary. JedState will try these locations:

  1. $JED_STATE_HOME
  2. $XDG_STATE_HOME/jed
  3. $HOME/.local/state/jed

You can use something like /dev/shm/$USER/jed if you do not wish to keep the state files across reboots.

Requirements

  • jed/xjed

License

JedState is released under the GNU Affero Public License v3 or later.

SPDX-License Identifier: AGPL-3.0-or-later

Bugs

Should you wish to report a bug or file an enhancement request, please visit https://codeberg.org/kas/jedstate/issues

Notes

JedState was conceived in 1996 and originally implemented in C. A later incarnation was implemented in Python. The current implementation is using jed's builtin scripting language, S-Lang, and has no external dependencies.

JedState has only been tested on Linux probably require a unix-like environment.