punt

command
v0.0.0-...-5e37444 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 10 Imported by: 0

README

punt - a quick detour from the land of acme

Can't bare to leave your favourite editor behind? Punt your current window contents to it, make your edits and then load it back into acme. Or, alternatively, punt the file you're working on to an external program that can do something with it: updating some HTML? Punt it to the browser to see what it looks like.

How does it work?

punt will copy your current acme window content (not the underlying file!) to a temporary file on your local file system before passing that file path off to the external program that you designate. When the external program closes, the contents of that temporary file will be read back in to acme and overwrite the window that you were in before. Initially I wrote this as a way to quickly open up my current buffer (window, old habits die hard) back to vim if there was something I needed to do that I couldn't wrap my head around in acme. As I'm getting more comfortable with acme, punt is less of a "must have" tool and more of "useful in unexpected situations".

Documentation

Overview

`punt` allows you to edit the contents of an acme window in an external editor.

It creates a new temp file to work with rather than opening the underlying source file again inside the new editor and changes are written to the acme window itself not the underlying file.

File extensions are parsed when creating thetemp file so that things like plugins and syntax highlighting trigger correctly in the spawned editor. At present, the launch of the editor is done via spawning a tilix terminal session first so that terminal based editors (vim, emacs, nano...) can be used. If the editor in question is GUI based then you will see an additional terminal window as well.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL