Skip to content

jacob-sauve/umple-offline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

umple-offline

Umple visualisation plugin for Neovim; allows for keybound compilation of .ump files into tmpfile diagrams for instantaneous visualisation in a vertical split-pane, all within Neovim!

  • No files are saved (only temporary ones)
  • No Internet connection required! (unlike Umple Online)

Dependencies

  • image.nvim and its dependencies for image visualisation within nvim.
    • Note: this script works well when kitty is used as a backend, so consider installing kitty and setting it as backend default in image.nvim (this works even when using iterm2 or other terminals!)
  • umple
  • graphviz
  • Not necessary, but pairs nicely with umple.nvim

The program assumes that these (except umple.nvim) have been installed/configured.

Installation

Navigate into your ~/.config/nvim/ directory and clone this repo:

cd ~/.config/nvim/
git clone https://github.com/jacob-sauve/umple-offline/

Move umple.lua into your ~/.config/nvim/ftplugin folder:

mkdir -p ~/.config/nvim/ftplugin
mv -i ~/.config/nvim/umple-offline/ftplugin/umple.lua ~/.config/nvim/ftplugin/umple.lua
rm -r ~/.config/nvim/umple-offline/

You should be all set!

Use

If you have not already, be sure to set a <leader> key somewhere within your nvim config to be able to use the hotkeys; for instance mine is the space bar:

vim.g.mapleader = " "

Hotkeys

  • <leader>ucd --> generates and opens an Umple Class Diagram of the active file (the one in the buffer when the command is called)
  • <leader>usm --> generates and opens an Umple State Machine of the active file
  • <leader>ugj --> generates Java code corresponding to the active file into current directory

Full Commands

In their unabridged form, i.e. without the keybinds from ftplugin/umple.lua:

  • :UmpleClassDiagram --> same as <leader>ucd above
  • :UmpleStateMachine --> same as <leader>usm above
  • :GenerateJava --> same sa <leader>ugj above

About

NVim Umple keybinds to allow intantaneous visualisation without lag or storing files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages