Git Product home page Git Product logo

Comments (6)

de-vri-es avatar de-vri-es commented on May 27, 2024

Those indeed look like the default rules. The most likely cause is your weechat version. Version 1.6 is relatively old. If it is possible for you I would recommend updating weechat. I expect that will make the default rules work as intended.

However, it should still be possible to make it more or less work without if statements. For example, you could turn them into:

    0: ${core_first}
    1: ${irc_last}
    2: ${buffer.plugin.name}
    3: ${irc_raw_first}
    4: ${server}
    5: ${info:autosort_order,${type},server,*,channel,private}
    6: ${hashless_name}
    7: ${buffer.full_name}

Some of these will still be broken, but basic functionality should be there. The if statements in rule 4, 5 and 6 are mainly there to avoid doing stupid sorting on slack channels, but that's only a problem if you use the slack script.

from weechat-autosort.

LenaicTerrier avatar LenaicTerrier commented on May 27, 2024

Oh... Well that's not an option. I'm running Weechat on a Debian stable (stretch) server in a tmux terminal. The current version of Weechat on stable is 1.6. I can't really dive into unstable just for Weechat. I guess I will have unsorted buffers for a time.

from weechat-autosort.

de-vri-es avatar de-vri-es commented on May 27, 2024

Did you try without the ${if:..} for rules 4, 5 and 6? Because I think it would work for most setups that way too.

from weechat-autosort.

LenaicTerrier avatar LenaicTerrier commented on May 27, 2024

No, mainly because the rules that don't use if use helpers that do.
Helpers are

core_first: ${if:${buffer.full_name}!=core.weechat}                                                                                        
hashless_name: ${info:autosort_replace,#,,${buffer.name}}                                                                                      
irc_first: ${if:${buffer.plugin.name}!=irc}                                                                                              
irc_last: ${if:${buffer.plugin.name}==irc}                                                                                                  
irc_raw_first: ${if:${buffer.full_name}!=irc.irc_raw}                                                                                        
irc_raw_last: ${if:${buffer.full_name}==irc.irc_raw} 

from weechat-autosort.

de-vri-es avatar de-vri-es commented on May 27, 2024

True, those wont work, but it's mainly rule 4, 5 and 6 that should ensure the tree-like sorting of IRC buffers. The sorting of non-irc buffers might not be exactly what you want, but there are alternatives even for those.

from weechat-autosort.

de-vri-es avatar de-vri-es commented on May 27, 2024

PR to scripts repo submitted: weechat/scripts#341

from weechat-autosort.

Related Issues (16)

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.