alphapapa / org-super-agenda Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any interest in a :head selector?
#172
Comments
|
Hi Pete, You could have fooled me about your being an Elisp novice. This is very well done! On one hand, I'd prefer to handle this kind of functionality by extending org-ql. However, it's not clear to me what the best way to do that would be. And, of course, that wouldn't do anything for Org Agenda views (i.e. ones that don't use org-ql). So I think you're right that this would be useful to have in org-super-agenda. And the implementation is only a few lines of code! Here are a few thoughts:
What do you think? Thanks. |
|
Thank you. And, sure, I'll rename it to Thanks again for such an awesome set of packages! |
|
Thanks for the kind words. I'm looking forward to your PR. Please feel free to ping me if I overlook it or forget about it. As you can see from the PR list, there are some others I haven't gotten to yet... :) |
|
BTW, you may find this interesting: https://github.com/alphapapa/burly.el Yesterday I added Emacs bookmark support to |
|
fwiw - this is a small tweak to deal with the cases where there are less number of matches than the number given as argument: |
Thanks. Note that it would be preferable to avoid calling (-take 4 '(0 1 2)) ;;=> (0 1 2)And |
|
Even better!
On November 6, 2020, GitHub ***@***.***> wrote:
@sundbp <https://github.com/sundbp>
> fwiw - this is a small tweak to deal with the cases where there are
> less number of matches than the number given as argument:
>
Thanks. Note that it would be preferable to avoid calling length.
Since we use the dash library in this package, it would probably be
better to replace seq-subseq with -take, which doesn't signal an error
if the list is shorter than the number of items requested, e.g.
(-take 4 '(0 1 2)) ;;=> (0 1 2)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#172 (comment)-
723243303>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AAAPCJ2N5JYVDSZOEQLF2X3SORAX7ANCNFSM4TJBYHYQ>.
|
I wrote the following to filter the first N or last N items from a grouping. Would this be worthwhile submitting a PR for? Please bear with me as I'm an elisp novice:
My use case is that I track various projects and todos assigned to members on my team. In addition, I hold bi-weekly 1:1s with each associate. In these meetings, I want a tailored Agenda view to show all relevant information I might need including easy access to the last 3 meetings with them. Thanks to this awesome package (and
org-ql), this is what I've built:The key part is the "Last 3 Meetings" section which I was unable to figure out how to build without writing my own
:headselector (like the Unix command). It lets you filter the first N or last N items from the list, and more importantly, it eats the remainder (does not pass along as a non-matching item).And here is how I use this selector to build the view above:
The text was updated successfully, but these errors were encountered: