Home

Day 6 & 7

Call me Blair, cuz I am about to plagiarize capital with this entry. I was a little busy on the past few days so I only sporadically did some progress on pain(1).

Here's what you missed, in no particular order:

Added a notification bar at the top left of the screen, so you can get more feedback for actions that don't necessarily make the canvas change right away.

pain showing a notification bar at the top that reads

Added a bunch of new hotkeys

- Switch Mode (m by default) Switches from "Canvas Mode" to "Layer Mode"
- Clear (c by default) Clears the current canvas/layer, depending on the mode
- Reset (r by default) Resets the zoom and position of the canvas/layer, depending on the mode. (On layer mode it just moves the layer)
- Save (s by default) Saves the current canvas on a file on /tmp/
- New (n by default) Creates a new layer
- Next (p by default) Moves to the next layer
- Previous (o by default) Moves to the previous layer

Canvas Size is now set to screen size when pain is first opened

So now you can set the default size of the screen using window(1). I will be adding the option to do this from a command line argument (or an image fed from stdin) in the future however.

multiple instances of pain open with different sizes

The input logic still sucks (among many other things), but I'm working on it

I still need to setup a repo for this (I might just push this to codeberg, but I'd like to be able to do it from 9front if possible), but you can get a copy of the code here.