You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Freenode has channels beginning with ## so it'd make sense to ignore more than one, or possibly even other special symbols.
The number sort key has a very misleading name because it doesn't sort by buffer numbers but rather whether the current searched text exactly matches the buffer's number:
When searching by text, this doesn't happen but it still might be desirable to sort the possible results by their buffer numbers.
The order of sort keys is reverse compared to everything else (buflist.look.sort, fset.look.sort, script.look.sort). Everywhere else, the sort keys are used lexicographically (the most important key is the first, if those are equal sort by second key, etc) but go.py does the sorts in that order:
A week ago I was messing around with the
plugins.var.python.go.sort
option and noticed some issues/weird things:The option's help text is incomplete, the source code contains a complete version. The fault seems to be an unnecessary comma here:
scripts/python/go.py
Line 142 in 7f70640
The
beginning
sort key has extra functionality to ignore a single#
:scripts/python/go.py
Lines 250 to 251 in 7f70640
Freenode has channels beginning with
##
so it'd make sense to ignore more than one, or possibly even other special symbols.The
number
sort key has a very misleading name because it doesn't sort by buffer numbers but rather whether the current searched text exactly matches the buffer's number:scripts/python/go.py
Lines 372 to 374 in 7f70640
When searching by text, this doesn't happen but it still might be desirable to sort the possible results by their buffer numbers.
The order of sort keys is reverse compared to everything else (
buflist.look.sort
,fset.look.sort
,script.look.sort
). Everywhere else, the sort keys are used lexicographically (the most important key is the first, if those are equal sort by second key, etc) but go.py does the sorts in that order:scripts/python/go.py
Lines 387 to 389 in 7f70640
This actually means that the last sort key is the most important because that's the last one which is sorted by.
The text was updated successfully, but these errors were encountered: