vonshednob / pter

Manage your todo.txt in a commandline user interface (TUI)
https://vonshednob.cc/pter/
MIT License
102 stars 6 forks source link

some queries regarding manual #23

Closed goyalyashpal closed 1 year ago

goyalyashpal commented 1 year ago

image

vonshednob commented 1 year ago

The default values are listed in an example configuration file that should have been installed on the side if memory serves :thinking:

At any rate, an example configuration file can be seen in the source code at codeberg (which reminds me to update the link at todotxt.org).

You can find the online both at codeberg and on the project’s website.

goyalyashpal commented 1 year ago

You can find the online both at codeberg and on the project’s website.

thanks for the links

The default values are listed in an example configuration file that should have been installed on the side if memory serves 🤔

There should have been an example configuration file, example.conf distributed with your copy of pter that can give you an idea on how that works. In this documentation you will find the full explanation. - %appdata%/../Local/Programs/Python/Python310/Lib/site-packages/pter/docs/pter.html#files - https://vonshednob.cc/pter/documentation.html#files

yes, the manuals mentions about example configuration file too, but where is that?

trying for other such directory variables in windows `%%` where `` is: `` dependent: - `userprofile` - `C:\Users\` - `appdata` - `C:\Users\\AppData\Roaming` - `localappdata` - `C:\Users\\AppData\Local` other: - `programdata` - `C:\ProgramData` - `programfiles` - `C:\Program Files`
goyalyashpal commented 1 year ago

an example configuration file can be seen in the source code at codeberg

https://codeberg.org/vonshednob/pter/src/commit/583d07a4555f063f3063df4d44d08a5a575d12ec/extras/example.conf#L265-L271

also, that doesn't contain value for default font-size, is that not hardcoded?

vonshednob commented 1 year ago

Indeed, both font and font-size are not hard-coded, because that’ll cause the system default to be taken over.

vonshednob commented 1 year ago

yes, the manuals mentions about example configuration file too, but where is that?

I suspect it should be in %userprofile%/.local/share/doc/pter/

goyalyashpal commented 1 year ago

%userprofile%/.local/share/doc/pter/

~/doc/pter/ is not present there, worked only upto share~

share doesn't contain any subfolder named doc

vonshednob commented 1 year ago

Hm. Not sure where that’s installed into on Windows.

vonshednob commented 1 year ago

I found it. It’s in the folder of your python installation (e.g. C:\Python or C:\User\<username>\AppData\Local\Programs\Python\Python<version>) in share\doc\pter\.

It’s possible that the location is actually different when Python is installed directly on C:\ due to writing permissions.

goyalyashpal commented 1 year ago

It’s in the folder of your python installation (e.g. C:\Python or C:\User\<username>\AppData\Local\Programs\Python\Python<version>) in share\doc\pter\.

yep, replicated. and as per recorded at https://github.com/vonshednob/pter/issues/23#issuecomment-1333911643, the location using variables (in caps for distinction) becomes:

%LOCALAPPDATA%/Programs/Python / Python<version> / share/doc/pter/

goyalyashpal commented 1 year ago

P.S.:

vonshednob commented 1 year ago
* 'cz those long locations (incurred frequently for ALL SORTS of softwares) always make me go "ahh, not again"

Right. That's a bit iffy; it's works nicely on Linux, but it's not greatly supported on Windows.

* oh, and excuse my `/` fwd slashes in locations of files in windows  sweat_smile, i always liked these as universal as they are long before i even knew anything about linux, and hey, it works :)

haha, no worries, I just try to not confuse the future people that might stumble upon this and think "but on Windows it's \, not /! This bug is not resolved at all!" ;)