Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some queries regarding manual #23

Closed
goyalyashpal opened this issue Dec 1, 2022 · 11 comments
Closed

some queries regarding manual #23

goyalyashpal opened this issue Dec 1, 2022 · 11 comments

Comments

@goyalyashpal
Copy link

  • show default values of config in manual
  • is the offline manual available online?

image

@vonshednob
Copy link
Owner

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

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
Copy link
Author

goyalyashpal commented Dec 1, 2022

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

%<variable>% where <variable> is:

<user> dependent:

  • userprofile - C:\Users\<user>
  • appdata - C:\Users\<user>\AppData\Roaming
  • localappdata - C:\Users\<user>\AppData\Local

other:

  • programdata - C:\ProgramData
  • programfiles - C:\Program Files

@goyalyashpal
Copy link
Author

goyalyashpal commented Dec 1, 2022

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
Copy link
Owner

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

@vonshednob
Copy link
Owner

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
Copy link
Author

goyalyashpal commented Dec 1, 2022

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

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

share doesn't contain any subfolder named doc

@vonshednob
Copy link
Owner

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

@vonshednob
Copy link
Owner

vonshednob commented Dec 3, 2022

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
Copy link
Author

goyalyashpal commented Dec 5, 2022

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 #23 (comment), the location using variables (in caps for distinction) becomes:

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

@goyalyashpal
Copy link
Author

P.S.:

  • tbh, it's really nice that i raised that variable thing here, and experimented further, it's a nice documentation
  • i'll keep that comment saved somewhere lol
  • 'cz those long locations (incurred frequently for ALL SORTS of softwares) always make me go "ahh, not again"
  • ... hopefully not anymore :)
  • oh, and excuse my / fwd slashes in locations of files in windows 😅, i always liked these as universal as they are long before i even knew anything about linux, and hey, it works :)

@vonshednob
Copy link
Owner

* '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!" ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants