davidgiven / wordgrinder

A word processor which gets the hell out of your way and lets you get some work done.
http://cowlark.com/wordgrinder
978 stars 61 forks source link

Justify text & mapping keys #230

Open ajrossnz opened 1 year ago

ajrossnz commented 1 year ago

Hi, I would really like the ability to justify text (as in fill the available page rather than left justify which is the global default). This is a fairly standard option in all word processors. Whilst I appreciate wordgrinder is often suggested for use with other 'prettyfiers', I commonly don't have an option to run a GUI when I am on the move, so doing so is not an option on occasion, thus the reason I use Wordgrinder.

Secondly, it would be awesome if there was some way to map keys such as CTRL-; or CTRL-P for example to remap END, PGDN etc as my terminal cannot support PGDN/UP and END etc. When I enter these sequences into WG it just says that these are already bound or in some cases, provides no error at all.

davidgiven commented 1 year ago

WordGrinder should be able to map any key which your terminal provides (which is not itself a printable character). ^P, for example, should work fine. It's a little inconvenient if the mapping is already present elsewhere as you have to manually hunt it down and delete it (e.g. ^P is in Style -> Change Paragraph Style).

Regarding justification: WordGrinder doesn't know anything about the output format. The only thing justification would do is to change the on-screen rendering. Unfortunately given the monospaced font this would look terrible, which is why it's not supported.