forge icon indicating copy to clipboard operation
forge copied to clipboard

Ability to filter topics

Open yisraeldov opened this issue 5 years ago • 8 comments

It would be very useful to be able to filter topic.

Specifically showing only issues for a specific milestone.

Also in the list mode it would be very helpful to see tags there and be able to limit to only open issues.

Thanks

yisraeldov avatar Apr 17 '19 11:04 yisraeldov

This can be done by adding more filelds to the list

(setq forge-topic-list-columns
  '(("#" 5
     (lambda (a b)
       (> (car a) (car b)))
     (:right-align t) number nil)
    ("Title" 35 t nil title  nil)
    ("Milestone" 4 t nil milestone nil)
    ("State" 4 t nil state nil)
    ("Updated" 10 t nill updated nil)
    ))

and then using tablist-edit-filter

yisraeldov avatar Apr 17 '19 11:04 yisraeldov

I confirm that @yisraeldov 's suggestion works, but suggest the following tweaks to column lengths so that the data appears nicely:

(setq forge-topic-list-columns
  '(("#" 4
     (lambda (a b)
       (> (car a) (car b)))
     (:right-align t) number nil)
    ("Title" 35 t nil title  nil)
    ("Milestone" 9 t nil milestone nil)
    ("State" 6 t nil state nil)
    ("Updated" 10 t nill updated nil)
    ))

Boruch-Baum avatar May 19 '19 04:05 Boruch-Baum

This issue prompted me to make a feature request against the emacs function tabulated-list-sort. See here and feel free to comment there.

Boruch-Baum avatar May 19 '19 07:05 Boruch-Baum

Also it would be nice to have the nicely formatted topics in the list view like they are in the main view.

yisraeldov avatar May 28 '19 14:05 yisraeldov

Just wanted to mention https://github.com/politza/tablist

It's based on tabulated list but can filter columns by regex, resize columns, etc

Silex avatar Jun 05 '19 07:06 Silex

You can already filter, but the default view doesn't show enough columns to make it usefull.

I showed an example on youtube.

On Wed, Jun 5, 2019 at 10:04 AM Philippe Vaucher [email protected] wrote:

Just wanted to mention https://github.com/politza/tablist

It's based on tabulated list but can filter columns by regex, resize columns, etc

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magit/forge/issues/140?email_source=notifications&email_token=AABBX2YU2JFWQCJOGX2UBF3PY5QQTA5CNFSM4HGTKGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW6ZPCA#issuecomment-498964360, or mute the thread https://github.com/notifications/unsubscribe-auth/AABBX22L64AH4HN5WIITDHTPY5QQTANCNFSM4HGTKGRA .

yisraeldov avatar Jun 05 '19 08:06 yisraeldov

I would like to do this but with tags (know as labels). However, using the code from above I got unbound. In the quick view on status buffer page, we can see number, title and labels so I hope it's possible.

I past my day searching in the code but I got no idea to how accomplish that.

Matsa59 avatar Jun 25 '20 22:06 Matsa59

It would be very useful to be able to filter topic.

Some filtering is possible. Currently this is limited to one filter at a time, but I plan to make it possible to use multiple filters at once.

Specifically showing only issues for a specific milestone.

There isn't a milestone filter yet. I'll delay that until I add support for multiple filters at once, at which point it will be much easier to do this.

Also in the list mode it would be very helpful to see tags there

I've added support for that.

and be able to limit to only open issues.

That existed for a while now.

tarsius avatar Dec 09 '23 22:12 tarsius