1
0
mirror of https://github.com/gryf/weechat-replacer.git synced 2025-12-18 12:00:18 +01:00
Commit Graph

7 Commits

Author SHA1 Message Date
99e4e12129 Fixed path resolving implementation, added tests. 1.3.1 2021-05-15 17:42:34 +02:00
30670d6508 Refactoring, fix tests 2021-05-15 17:42:05 +02:00
9c406727e3 Adapt to the upcoming way for WeeChat store configuration.
In version of 3.2 of WeeChat, the default way of storing the
configuration and data, will be the XDG one. Let's adopt to this. Map
file will be stored on different location depending of the version of
weechat, but also, if mapping file would be spotted on one of the
defined locations, it would be used. Whatever version of the weechat you
have preferences are:

$XDG_DATA_HOME/weechat/replacement_map.json
$XDG_CONFIG_HOME/weechat/replacement_map.json
~/.weechat/weechat/replacement_map.json

whatever $XDG_somethinig is pointed to, or where
weechat_config_dir/weechat_data_dir are pointing. Those values are
retrieved from WeeChat, so you should know, where the replacement_map
should go.
1.3
2021-05-13 21:56:57 +02:00
7fe8df4c56 Calculate weechat home using string_eval_path_home.
Using different path for the weechat configuration results in inability
to find right replacemenet_map json file. Fix it by using
string_eval_path_home method, which will return right weechat config
directory.
1.2
2020-11-02 20:27:17 +01:00
943aec432f Change a way for detecting python3 vs python2. 1.1 2019-07-20 13:03:52 +02:00
5a5ecd8ce0 Added Python3 support 2019-07-19 16:01:31 +02:00
34c247d3c2 Initial commit 2016-07-30 19:18:48 +02:00