summaryrefslogtreecommitdiff
path: root/alot/settings
Commit message (Collapse)AuthorAge
...
* Replace mutable keyword argumentsDylan Baker2016-12-13
| | | | | | | | | | | | | | | | | | | | | | | There are a number of cases of mutable keyword arguments (list and dict in this case). Mutable keyword arguments are rather dangerous, since any mutation of the default value is persistent, which will inevitably lead to bugs. For example, imagine this code: def func(def=[]): def.append('foo') return def >>> func() ['foo'] >>> func() ['foo', 'foo'] This is almost certainly not what was intended. This code generally uses the idiom of setting the default value to None, and then assigning with or `value = value or []` which will replace value with the empty list (or dict) when value is falsey, like None or another empty list.
* settings/manager.py: Compare addresses using == instead of inDylan Baker2016-12-13
| | | | | | | I don't think this was correct from the start, since "foo@bar.com" would match "bfoo@bar.com", even if there was a "bfoo@bar.com" in the accountmap, depending on the order that they happened to be sorted in accountmap.
* Further minor style fixesLucas Hoffmann2016-12-09
|
* Fix except syntaxLucas Hoffmann2016-12-09
|
* Clean up importsLucas Hoffmann2016-12-09
| | | | | | - use relative imports if possible - group imports into standard library, third party, and alot modules - sort imports alphabetically
* Use logging's native string interpolationLucas Hoffmann2016-12-09
|
* Remove braces after `del` and `return`Lucas Hoffmann2016-12-09
| | | | | `del` and `return` are keywords and not functions so the braces are not needed.
* alot/settings/utils.py: extend error message on IOError exceptionJohannes 'josch' Schauer2016-01-31
|
* config setting: shellcommand_external_filteringPatrick Totzke2015-04-15
| | | | that exposes ExternalAddressbook's new functionality
* refactor MatchSdtoutAddressbookPatrick Totzke2015-04-15
| | | | | | The class is now called ExternalAddressbook and makes it optional to call the external command with the given search string as parameter when looking up addresses
* refactor addressbook codePatrick Totzke2015-04-15
|
* just formating (pep8 etc.)Patrick Totzke2014-08-02
|
* added check to bindings commands; added settings.get_keybindings(self,mode)Cinghio Pinghio2014-08-02
|
* work around new configobj behaviourPatrick Totzke2014-04-03
| | | | | | | | regarding utf8 chars in the config being read as str, not unicode in python v2.7. This pathc introduces an additional `alot.helper.string_decode` around the translated tagname read from the config, and fixes issue #693. In the long run, we expect configobj to be fully backweards compatible.
* pep8&pyflakes fixesPatrick Totzke2013-07-07
| | | | mostly automatically fixed
* doc: clean up docstring for SettingsManagerPatrick Totzke2013-05-12
|
* pep8/pyflakes fixesPatrick Totzke2013-03-16
|
* introduce new themable thread.body_focus for focussed body text linesPatrick Totzke2013-03-03
|
* postpone binding if candidates with same prefix existPatrick Totzke2013-03-03
| | | | | | | | | | This ensures that commandlines that are bound to a key are not fired right away but wait a little (config option 'input_timeout') in case there are other bindings with this key as prefix. This allows to bind for instance 'g g' to move up while at the same time one can bind 'g' to global replies. Without this change, the 'g' binding would be fired right away.
* correcting error message for themeLukas Zapletal2013-02-26
| | | | | | | When there was a theme parse error, alot was producing incorrect exception: in read_config raise ConfigError((err_msg % str(themestring)) + e.message) TypeError: cannot concatenate 'str' and 'ParseError' objects
* fix #571Patrick Totzke2013-02-25
|
* empty input queue as soon asPatrick Totzke2013-01-11
| | | | | .. the current value cannot be prefix of any bound keysequence. fixes #547
* hotfix silly mistakePatrick Totzke2012-12-16
|
* read configs lazily in SettingsManagerPatrick Totzke2012-12-16
| | | | | | | | | | This causes SettingsManager not to read the default configs upon init when no config paths are passed on. It is safe because alot.init.main triggers reading the config files anyway. This fixes a problem with building the docs on rfd.org due to them not havin configobj available at build time.
* add 'ignorecase' config option for abook sectionsPatrick Totzke2012-09-22
|
* cleanup: pep8/pyflakes fixesPatrick Totzke2012-09-01
|
* fix: don't die because of non-string bindingsPatrick Totzke2012-08-19
| | | | cf issue #500
* fix error caused by leaving out threadline-foo parts..Patrick Totzke2012-08-11
| | | | ..in theme files
* more precise error handling for config parsingPatrick Totzke2012-08-10
|
* cleanup: move SettingsManager to its own filePatrick Totzke2012-08-10
|
* do not write default config if missingPatrick Totzke2012-08-01
| | | | | | This has been done before to provide the default bindings, which are now read directly from defautls/default.bindings during startup.
* read default bindings from default/default.bindingsPatrick Totzke2012-08-01
| | | | | | | | | | | | This re-introduces a separate file containing the default keybindings for alot. The values from this file are *always* used as fallbacks and can be overwritten by bindings from the users config. To be able to unbind a default binding just bind it to an empty string. The same will allow buffer-local bindings to be overwritten by global bindings as described in https://github.com/pazz/alot/issues/403#issuecomment-4434948. cf issue #487
* correctly report interpolation errorsPatrick Totzke2012-07-21
|
* pep8 and pyflakes fixesPatrick Totzke2012-07-21
|
* fix issue with overwriting AttrSpecsPatrick Totzke2012-07-21
|
* better validation error reportsPatrick Totzke2012-07-21
|
* outsource resolve_att settings utilPatrick Totzke2012-07-18
|
* remove 'hidden' tag representation optionPatrick Totzke2012-07-16
| | | | | | | | this makes hiding tags possible simply by making their 'translated' value the empty string. Note that this still sets the TagWidget.hidden property because those may not be displayed with width 0 (as any other widget) because it'd break urwid.
* move thread move theming to more durable config syntaxPatrick Totzke2012-07-15
|
* fix tagstring defaults resolutionPatrick Totzke2012-07-15
|
* settings: propagate more failure infoPatrick Totzke2012-07-15
|
* fix threadline defaultsPatrick Totzke2012-07-14
| | | | | this makes sure that undefined values in highlight 'threadline-foo' sections default to their corresponding parts in the 'threadlin' (default) section
* doc: docstrings for new stuff in alot.settings.*Patrick Totzke2012-07-14
|
* docstrings for new settings methodsPatrick Totzke2012-07-12
|
* fix default attributes for tagstringsPatrick Totzke2012-07-11
|
* correct typoPatrick Totzke2012-07-08
|
* compile tagstring representationPatrick Totzke2012-07-08
| | | | according to the given attribudes read in the new format
* implement selective threadline theming aka. 'highlighting'Patrick Totzke2012-07-07
| | | | | | | | | | | This allows the user to specify alternate 'threadline.*' sections for searchmode: They specify the difference to the default threadline theming. Each of those can contain fields 'query' and 'tagged_with' to determine if they apply: We go through all those threadline sections top down, for each of them check if the conditions query (thread matches querystring) and 'tagged_with' (culmulative tags of messages in thread contain those listed). The first section that matches wins, default is to section 'threadline'.
* rename threadline order --> partsPatrick Totzke2012-07-07
|
* fix with_tuple configobj checkPatrick Totzke2012-07-07
| | | | make sure it always returns a tuple