{"id":20044970,"url":"https://github.com/gryf/weechat-replacer","last_synced_at":"2025-03-02T07:32:05.482Z","repository":{"id":149006084,"uuid":"64555621","full_name":"gryf/weechat-replacer","owner":"gryf","description":"Weechat plugin for replacing user defined keywords with specified text.","archived":false,"fork":false,"pushed_at":"2025-01-29T17:23:12.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T18:27:32.269Z","etag":null,"topics":["plugin","python","replace-text","weechat"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gryf.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-30T17:19:01.000Z","updated_at":"2025-01-29T17:23:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"8bdb4594-c7e7-43f5-8778-a7986b4a0672","html_url":"https://github.com/gryf/weechat-replacer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fweechat-replacer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fweechat-replacer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fweechat-replacer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fweechat-replacer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gryf","download_url":"https://codeload.github.com/gryf/weechat-replacer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241476329,"owners_count":19968902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["plugin","python","replace-text","weechat"],"created_at":"2024-11-13T11:03:09.894Z","updated_at":"2025-03-02T07:32:05.441Z","avatar_url":"https://github.com/gryf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"weechat-replacer\n================\n\nWeeChat plugin for replacing user defined keywords with specified text.\n\nInstallation and configuration\n------------------------------\n\nIn order to use it, you have to have WeeChat with Python plugin support\ncompiled in. Than, copy ``replacer.py`` to ``~/.local/share/weechat/python/``.\nIt should run on any version of the Python3.\n\nYou can optionally create symbolic link to this script:\n\n.. code:: shell-session\n\n   ln -s ~/.local/share/weechat/python/replacer.py ~/.local/share/weechat/python/autoload/replacer.py\n\nNext, you need to add this *replacer_plugin* to Weechat completion template, so\nit'll looks similar to:\n\n.. code::\n\n   /set weechat.completion.default_template \"%(nicks)|%(irc_channels)|%(replacer_plugin)\"\n\nNext, load the plugin (if you choose to not load it automatically):\n\n.. code::\n\n   /python load replacer.py\n\nNow you all set.\n\nNote, that even though there is possibility for keeping all files in different\nplace than XDG paths, this case is not tested anymore, and all the issues\nregarding old files placement will be ignored.\n\n\nUsage\n-----\n\nAbbreviations will be stored as json file\n``$XDG_DATA_HOME/weechat/replacement_map.json``, which usually be\n``~/.local/share/weechat/replacement_map.json`` which role is to simply persist\ndictionary object on the filesystem. To add some replacement words, and text\nwhich would those words replaced with:\n\n.. code::\n\n   /replacer add foo bar\n\nand than, when you type ``foo`` word and press ``tab`` key, you should get\n``bar`` word instead.\n\n\nLicense\n-------\n\nThis plugin is on Apache 2 license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgryf%2Fweechat-replacer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgryf%2Fweechat-replacer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgryf%2Fweechat-replacer/lists"}