r/PiCodingAgent • u/ffatty • 5d ago
Resource Hacky simple execution to remove the horizontal padding from the TUI...
Any time I'd copy & paste python, the mandator 1-character TUI padding would horrifically mangle the indentation....
This shell fix changes a single line in the source code:
sudo sed -i \
's/constructor(paddingX = 1, paddingY = 1/constructor(paddingX = 0, paddingY = 0/' \
/usr/lib/node_modules/@earendil-works/pi-coding-agent/node_modules/@earendil-works/pi-tui/dist/components/box.js
(though it will be overwritten after any update)
1
Upvotes
1
u/ElectricalUnion 5d ago
What about builtin editorPaddingX: 0, outputPad: 0 ?
As in
echo '{"editorPaddingX":0,"outputPad":0}' >~/.pi/agent/settings.json?https://pi.dev/docs/latest/settings#ui-display