summaryrefslogtreecommitdiff
path: root/poezio/config.py
AgeCommit message (Collapse)Author
2022-07-11Default to using the CA storeMaxime “pep” Buquet
Depends on slixmpp!209. This prevents us from having to manually add every single ca-certificates paths out there. It does allow users still to use their custom CA. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-04-07config: make the default section dynamic (plugins)mathieui
Having a fixed default section is not practical, so now use a placeholder value to allow fetching it dynamically. Please don’t name sections '__DEFAULT SECTION PLACEHOLDER__' thank you.
2022-04-06Add option to use XEP-0392 for tab names/numbers in the infobarJonas Schäfer
This will autocolour the tabs based on their name (typically the JID) if a new message or highlight occured. If it was a normal new message, the colouring will be subtle (foreground instead of background), otherwise (on a highlight or 1:1 message), the colouring will affect the background and thus stand out much more.
2022-01-30Try to guess CA bundle pathMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-07-02fix: improve typingmathieui
preliminary to more typing added to slixmpp, fix things in advance
2021-04-20fix: do not traceback on invalid jids in config.get_by_servnamemathieui
2021-04-11internal: remove more global state from configmathieui
2021-04-11feature: add a /debug command to change logging level dynamicallymathieui
And changing the path too
2021-04-11refactor: move argument parsing away from config.pymathieui
global state--
2021-04-11feature: add a mam_sync_limit tab optionmathieui
2021-04-11feature: add a mam_sync optionmathieui
2021-04-02fix: restore toggle & get previous behaviormathieui
2021-04-02fix; make python 3.7 happymathieui
………
2021-04-02fix: add back the remove_section() for Configmathieui
2021-04-02fix: config, give up on typing Config.getmathieui
It is not possible to have a dynamic return type based on what would come out of a dict AND an optional parameter.
2021-04-02make pylint happymathieui
(for now)
2021-04-02fix: tons of type errorsmathieui
2021-04-02refactor: rewrite config.get() to getbool, getstr, getint…mathieui
2021-04-02refactor: Make the poezio config not inherit from configparsermathieui
2021-02-17muc: remove non-deterministic nick colorsmathieui
2021-01-29Remove force_remote_bookmarks optionmathieui
It is 2021, servers ought to not be broken that much.
2020-12-12from __future__ import annotationsEmmanuel Gil Peyrot
Now that our baseline is Python 3.7, we can rely on type annotations to be lazily evaluated.
2020-05-24Rename bookmark_on_join to synchronise_open_roomsEmmanuel Gil Peyrot
Also add some more documentation about it.
2020-05-12Add option to show only the unique prefix of tab namesJonas Schäfer
When the set of tabs used fluctuate, the memory of which number belongs to which chat becomes difficult to work with. Non-numbers can be used to navigate tabs with `/win`, however, it is difficult to know which letters are required to select a certain tab. This option introduces a display mode for tab names where only the unique prefix of the tab name is shown, saving space and providing with a minimal string which can be used with `/win`.
2019-10-27Fix syntax warnings (thanks python 3.8)mathieui
2019-10-27Make global objects not Optionalmathieui
This reflects reality, despite the default values of the code. We still need a better solution (singleton?).
2019-08-25Remove code for loading logsmathieui
we MAM now
2019-08-21Fix xml debug logsmathieui
don’t ask, don’t tell
2019-05-07config: ensure tabname is not a JID objectMaxime “pep” Buquet
Tabnames should be treated as opaque strings. This specific fix prevents tabname (JID) to be compared with invalid stringly-typed JIDs. JID's __eq__ method used to (after poezio/slixmpp@47968963) try and convert anything into JIDs. This has been fixed and now properly returns NotImplemented. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-04-17save_order, save: config option is not always a stringMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-18Fixes coding style; Corrected indentation and use of static length when ↵Madhur Garg
displaying hidden value #3426
2019-03-18Hides the value of 'password' field being displayed in the InfoTab. Fixes #3426Madhur Garg
2018-12-16Add configuration for default_muc server to join if no muc available on domainMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-08-15Fix an error introduced in the last commitmathieui
2018-08-15Fix mypy errors, add type annotationsmathieui
2018-08-13Enable the vertical tabs by defaultEmmanuel Gil Peyrot
It looks *modern*!
2018-08-13Switch the default use_log value to trueEmmanuel Gil Peyrot
Since this is a privacy sensitive action, a short message is now displayed on first run.
2018-08-13Revert "Set enable_avatars to false until the colors issue is fixed"mathieui
This reverts commit bde9b31184de3138e649a662843b459fe3c3782a.
2018-07-22config: Default LOG_DIR to the local Path.Emmanuel Gil Peyrot
2018-07-22Add type hints here and theremathieui
2018-07-21yapf -ripmathieui
2018-07-21config: Cast Path to str() before passing it to copy2.Emmanuel Gil Peyrot
2018-07-19config: Try to create the logs directory before setting up error logs.Emmanuel Gil Peyrot
2018-07-08config: Use pathlib.Path.open() instead of open().Emmanuel Gil Peyrot
2018-07-08config: Replace the config file with its new version, rather than copy2/remove.Emmanuel Gil Peyrot
2018-07-08Add some more str() on Paths…Emmanuel Gil Peyrot
2018-07-05Add a bunch of str() to convert pathlib.Path into str.Emmanuel Gil Peyrot
2018-07-05config: Pass a str rather than a Path to RawConfigParser, fixes Python 3.5 ↵Emmanuel Gil Peyrot
support.
2018-07-05config: Stop using os.path to split pathlib.Path objects.Emmanuel Gil Peyrot
2018-07-04config: remove check_create_log_dir().Emmanuel Gil Peyrot