Comments (6)
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.
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.
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.
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.
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.
PR to scripts repo submitted: weechat/scripts#341
from weechat-autosort.
Related Issues (16)
- Autosort will not sort my buffers by server properly HOT 10
- sorting by type - is it possible at all? HOT 13
- Buffers with spaces in the name HOT 2
- Plugin fails to load: AttributeError: 'str' object has no attribute 'decode' HOT 1
- Sorting an IRC channel after all other buffers results in odd behaviour. HOT 2
- Unicode characters in buffer names HOT 1
- Trying to sort my bitlbee stuff after everything else HOT 6
- scripts buffer can't be sorted HOT 4
- Default sort config does not support buffers with commas in their name HOT 2
- on_info_replace getting called with not enough arguments HOT 7
- '/help autosort' missing explanation of newer '${info:}' options HOT 2
- Getting lots of these in my logs after recent host upgrade HOT 8
- issue with latest wee-slack HOT 10
- Issues with custom sort when Slack channels are involved HOT 4
- Exception when running `/autosort helpers swap`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weechat-autosort.