Skip to content

Ludwiggle/wolfram-geany

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 

Repository files navigation

wolfram-geany

A Wolfram Language (WL) plugin for the text editor Geany based on UNIX-like systems (tested on Linux and MacOS)

Features

  1. Autocompletion of WL built-in symbols
  2. Documentation shortcuts (via zenity and Geany Context Action)

Watch a demo here

Prerequisites

  1. Geany
  2. Wolfram Engine

For Linux

Geany Plugins sudo apt-get install geany-plugins

mlocate: sudo apt-get install mlocate

zenity sudo apt-get install zenity

For MacOS

brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

findutils brew install findutils

zenity brew install zenity

Installation

wolframscript -f wolfram-geany.wl

If upgrading to a newer version of wolfram-geany or reinstalling it, clean the ~/.config/geany folder.

Post-Installation

  • Choose a colorscheme like Kugel from here

  • Configure documentation pop-up: go to Edit->Preferences->Keybindings->Editor> Context Action and set a custom keybinding e.g. Ctrl+h. Once the keybinding is configured, press Ctrl+h to display the documentation of the built-in symbol under the cursor.

  • Configure terminal emulator: The installation automatically configures Geany Execute to run a WL script by pressing F5. The script outputs can be displayed within the Geany Virtual Terminal Emulator (VTE). Otherwise, install urxvt, (optionally rice it up) then go to Edit->Preferences->Tools->Terminal and paste urxvt -e /bin/sh %c

BUGS

On MacOS, evoking zenity from the Context Action does not work, even though the very same command works if executed from the terminal. Please contribute! Thanks.

To do

  • A proper syntax highlighting

Releases

No releases published

Packages

No packages published