#figures #cli-tool #cli #inkscape

app inkscape-figures-manager

A tool to manage figures in Inkscape, and create technical figures fast with shortcuts

1 unstable release

0.1.0 Feb 26, 2024

#1332 in Command line utilities

MIT license

23KB
449 lines

Inkscape Figures Manager

A simple CLI tool to manage figures in created with Inkscape. It also provides shortcuts for common operations when creating technical figures that have the style of TikZ figures. This crate is heavily inspired by Gilles Castel's Inkscape figures manager and Inkscape shortcut manager. The reason for creating this crate is that his tools only support Linux. This crate is written to be used in macOS (but could easily be extended to work for other operating systems).

Installation

cargo install inkscape-figures-manager

Then, create a template SVG file $HOME/.config/ifm/template.svg. This file will be used as a template when creating new figures.

To make opening figures fast, you can use a picker tool like choose or telescope if you use NeoVim. See my dotfiles for the extension I made for telescope (copy the lua/telescope/ and lua/telescope_inkscape_figures/ directories).

Usage

TODO

Keyboard shortcuts

TODO

Creating Figures

For an example of the figures that can be created, see my university notes repository. Alternatively, see Gilles Castel's master thesis, which contains over 100 figures.

For colors, you can use one of the qualitative color sets defined by colorbrewer.

For advice on how to create good figures, see the TikZ guidelines.

Operating System Support

At the moment, this crate only supports macOS. It can easily be extended to support other operating systems by providing a clipboard implementation for the specific operating system (see src/clipboard). If this is something you are interested in, open an issue or create a pull request.

Alternatively, if you want to use a crate like this one on Linux, see Gilles Castel's Inkscape figures manager.

Dependencies

~7–42MB
~644K SLoC