Hi all,
I've noticed that modifications I make with the "theme" command are
not remembered if I exit offpunk.
Also, the history of commands. They are remembered inside the session
(you can even control+r them), but lost next time
I was wondering if this is normal, or maybe there's something wrong
with my installation. Mostly the theme thing. It looks like something
that could be remembered. The history thing is not really interesting
(I only miss it when I type "sync 36000" :D )
If "theme changes persistence" is not yet implemented (haven't had
time to check the code, thought I could ask first), this could count
as a "feature request", and also my volunteering to take a look into
implementing it (but, when I have some spare time, which I don't know
when will be)
Regards!
--
Saúde,
J. M. Castroagudín
Le 25 mar 12 10:59, José Manuel Castroagudín Silva a écrit :
>Hi all,
>
>I've noticed that modifications I make with the "theme" command are
>not remembered if I exit offpunk.
>Also, the history of commands. They are remembered inside the session
>(you can even control+r them), but lost next time
That’s by design. On startup, offpunk will run commands that are in the
file ~/.config/offpunk/offpunkrc
If you want persistence, you need to add commands in that file.
The concept is: everything is done with a command so the config file
should be a simple list of commands.
(I was thinking of providing a command to edit that file directly from
offpunk, could not come up with a good name ;-) )
>
>I was wondering if this is normal, or maybe there's something wrong
>with my installation. Mostly the theme thing. It looks like something
>that could be remembered. The history thing is not really interesting
>(I only miss it when I type "sync 36000" :D )
History of commands is not handled by offpunk but by the python.cmd
module (which itself uses readline). I don’t know if there’s a way to
remember it.
>
>If "theme changes persistence" is not yet implemented (haven't had
>time to check the code, thought I could ask first), this could count
>as a "feature request", and also my volunteering to take a look into
>implementing it (but, when I have some spare time, which I don't know
>when will be)
I hope this answers your question.
I’m happy to know that the theme feature is used and I would be curious
to know what are your tweak.
If you think your theme might be of interest for others, don’t hesitate
to contribute it. Look at the offthemes.py file. There’s currently only
one theme called offpunk1 but I’m open to add others so I can check if
it works to have multiple bundled themes ;-)
Ploum
O mér., 12 de mar. de 2025 ás 23:08, Ploum (<sourcehut24@ploum.eu>) escribiu:
>
> Le 25 mar 12 10:59, José Manuel Castroagudín Silva a écrit :
> >Hi all,
> >
> >I've noticed that modifications I make with the "theme" command are
> >not remembered if I exit offpunk.
> >Also, the history of commands. They are remembered inside the session
> >(you can even control+r them), but lost next time
>
> That’s by design. On startup, offpunk will run commands that are in the
> file ~/.config/offpunk/offpunkrc
>
> If you want persistence, you need to add commands in that file.
>
> The concept is: everything is done with a command so the config file
> should be a simple list of commands.
You know, this makes a lot of sense, I should have thought of this, it
simplifies everything, much more convenient than the "
~/.config/offpunk/theme" file, probably json or so, that I was
imagining.
>
> (I was thinking of providing a command to edit that file directly from
> offpunk, could not come up with a good name ;-) )
meh, maybe too niche for a dedicated command, not sure it's worth the
work to implement (and the "mental space" to have to learn /read about
another command) . But if you want to go for it, the command "initrc"
just came to mind while I was typing that it was not worth it :D.
"initrc init/edit/reload" (init for "initialize", creating it,
basically, and printing where it is, for the user to take note?)
>
> >
> >I was wondering if this is normal, or maybe there's something wrong
> >with my installation. Mostly the theme thing. It looks like something
> >that could be remembered. The history thing is not really interesting
> >(I only miss it when I type "sync 36000" :D )
>
> History of commands is not handled by offpunk but by the python.cmd
> module (which itself uses readline). I don’t know if there’s a way to
> remember it.
> >
> >If "theme changes persistence" is not yet implemented (haven't had
> >time to check the code, thought I could ask first), this could count
> >as a "feature request", and also my volunteering to take a look into
> >implementing it (but, when I have some spare time, which I don't know
> >when will be)
>
> I hope this answers your question.
>
> I’m happy to know that the theme feature is used and I would be curious
> to know what are your tweak.
Basically, I'm quickly becoming an old fart and my eyes sometimes
struggle to read things that are "faint", so I tend to change:
theme link blue
theme subsubtitle blue
and
theme oneline_link yellow
This last one is weird, but some of the gemini pages I visit
(bbs.geminispace.org, station.martinrue.com...) have a lot of
alternating link/normal text, and I've found the yellow links very
easy to read. I might even test making all links yellow and see how it
feels :) (some of this difficulty reading might come from the fact
that I sometimes ssh from a windows terminal, it might have to do with
this terminal default colors. But being allowed to change it on the
fly helps)
>
> If you think your theme might be of interest for others, don’t hesitate
> to contribute it. Look at the offthemes.py file. There’s currently only
> one theme called offpunk1 but I’m open to add others so I can check if
> it works to have multiple bundled themes ;-)
I'm terrible with color combinations. So bad, that I might as well be
colorblind :D
>
> Ploum
>
>
--
Saúde,
J. M. Castroagudín