Giter Club home page Giter Club logo

Comments (15)

 avatar commented on May 21, 2024 2

@kutsan use autoconf.py

from weechat.

dustymabe avatar dustymabe commented on May 21, 2024 2

i'd also like something like this (or an rc file). Since i like to manage all of my systems via ansible and automate setup after I wipe a machine, it would be nice to have a way to configure only what I want changed from the defaults. This would make the changes to the config files in git more meaningful.

from weechat.

AloisMahdal avatar AloisMahdal commented on May 21, 2024 2

One way to attack this would be to have some sort of config include/merging mechanism. Have basic set of configs in /usr/share, then /etc, then ~/.weechat. /save would always only touch the home file. (This would also solve #775)

from weechat.

holomorph avatar holomorph commented on May 21, 2024 1

+1. I'm glad this is a task/issue:

75 options with value changed
$ cat *.conf|wc -l
1285

from weechat.

HelixSpiral avatar HelixSpiral commented on May 21, 2024

I like this, maybe a command that would show out-of-date options too?

Like for 0.4.4 weechat.look.hotlist_add_conditions replaces weechat.look.hotlist_add_buffer_if_away

So something like /depreciated would print:
setting: <setting> replaced by <setting>

So you could manually /unset the first and /set on the second if you wished to change it from the default behavior?

from weechat.

flashcode avatar flashcode commented on May 21, 2024

@shawn-smith: the obsolete options are displayed only once at startup. The old name does not even exist in WeeChat (it's just read one time in file and discarded), so it's not possible later to display obsolete options.
This document shows the manual actions required when you upgrade to a newer version (almost everything in WeeChat is automatic when upgrading): http://weechat.org/files/releasenotes/ReleaseNotes-devel.html (file ReleaseNotes.asciidoc in git).

from weechat.

HelixSpiral avatar HelixSpiral commented on May 21, 2024

Oh I was unaware of this, I haven't had to update yet.

Disregard what I said then lol

from weechat.

qguv avatar qguv commented on May 21, 2024

Any current status on this? This would make version-controlling much easier!

It also solves a big problem where users of version X are stuck with version X defaults, as detailed here. This may be okay as a default, but it would be quite nice to allow some users to specify that they want their configurations to change as new defaults change.

Googlers: I've since made a wrapper script that detects and writes only changed configuration values.

from weechat.

seagreen avatar seagreen commented on May 21, 2024

Just a friendly reminder that this would be a really helpful addition to weechat. Easy version-controlling of changes is likely to be important to a lot of people.

from weechat.

seagreen avatar seagreen commented on May 21, 2024

Just realized that weechat writes out the config files in somewhat random orders on each /save. This makes them incredibly nasty to version, and makes the ability to provide user overrides of config files even more important.

EDIT: Not actually sure if this is right? I'm having trouble reproducing it. If I can't then versioning all of .weechat except for logs and weechat.log should be a pretty good solution.

from weechat.

flashcode avatar flashcode commented on May 21, 2024

The order of config files is not random, they are "sorted" by time of load, so WeeChat should load in this order:

  1. sec.conf (which is loaded before all other config files)
  2. weechat.conf
  3. plugins config files, depending on the priority of each plugin (used to load plugins in order, see API doc for more info: https://weechat.org/files/doc/devel/weechat_plugin_api.en.html#plugin_priority).

from weechat.

seagreen avatar seagreen commented on May 21, 2024

@flashcode: Thanks! But I meant that the options within each config were getting written out in different orders. Since then I haven't been able to reproduce it though, so that part's not an issue for me anymore.

from weechat.

kutsan avatar kutsan commented on May 21, 2024

Since after 3 years, what's the current status of this issue?

from weechat.

qguv avatar qguv commented on May 21, 2024

@kutsan: Nothing from the weechat team, but you can use a wrapper script I wrote to detect config changes and only write what has changed since the default.

from weechat.

kutsan avatar kutsan commented on May 21, 2024

@qguv That's cool. I didn't see it earlier, thanks.

from weechat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.