Thanks, it's pretty cool.

On Sunday, April 20, 2025, Nicholas Marriott <nicholas.marri...@gmail.com>
wrote:

> Couldn't you just remove all non-numbers from the string to get a number
> version?
>
>
> On Fri, 18 Apr 2025, 06:53 japin li, <japinli...@gmail.com> wrote:
>
>> Hi, Nicholas
>>
>> I found that Tmux has a version variable in string format (like
>> next-3.5). However, this does not facilitate easier version comparison.
>> Currently, I use the following to do version comparsion:
>>
>> %if #{>=:#{s|next-||:version},3.5}
>> do something
>> %endif
>>
>>  Would it be possible to add a numeric server version? Or is there
>> another effective way to compare versions?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "tmux-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to tmux-users+unsubscr...@googlegroups.com.
>> To view this discussion, visit https://groups.google.com/d/
>> msgid/tmux-users/8e11fff3-e0df-4266-aaf4-1977971cdc04n%40googlegroups.com
>> <https://groups.google.com/d/msgid/tmux-users/8e11fff3-e0df-4266-aaf4-1977971cdc04n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To view this discussion, visit 
https://groups.google.com/d/msgid/tmux-users/CAGdJj4S6N40foLyNAFVxDf2MQF25HHtngKPBZHHgBdjeFALCKQ%40mail.gmail.com.

Reply via email to