Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mailaprop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Karl Fogel
mailaprop
Commits
61040197
Commit
61040197
authored
1 year ago
by
Karl Fogel
Browse files
Options
Downloads
Patches
Plain Diff
Display sent/received counts more compactly
parent
b83d4245
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+3
-2
3 additions, 2 deletions
README.md
mailaprop.el
+17
-10
17 additions, 10 deletions
mailaprop.el
with
20 additions
and
12 deletions
README.md
+
3
−
2
View file @
61040197
...
...
@@ -20,8 +20,9 @@ to an address counting for more than receiving from it.
To the right of each address, mailaprop shows the date you last
interacted with that address, that is, the most recent date you sent
mail to or received mail from it. Just for fun, the address's raw
mailaprop score is shown on the farthest right in parentheses.
mail to or received mail from it. Next to that, in parentheses, are
the sent and received counts for that address (or just the received
count, if there is no sent count).
By default, mailaprop waits until you've typed 5 characters before it
starts offering autofill candidates, but you can lower or raise that
...
...
This diff is collapsed.
Click to expand it.
mailaprop.el
+
17
−
10
View file @
61040197
...
...
@@ -427,16 +427,23 @@ If there is no score corresponding to ADDR, return zero."
;; choice, controllable by the user.
(
mailaprop-get-candidates
arg
)))
(
post-completion
nil
)
(
annotation
(
concat
;; Should we offer customizable annotations?
" | "
(
mailaprop-find-date
arg
)
" | r:"
(
number-to-string
(
mailaprop-find-recv-count
arg
))
" | s:"
(
number-to-string
(
mailaprop-find-sent-count
arg
))
;; We used to have another entry here, showing
;; the raw score in parentheses. But now that
;; we show the sent count and received count,
;; the raw score is less useful, so we dropped it.
")"
))
(
annotation
(
let
((
sent-count
(
mailaprop-find-sent-count
arg
))
(
recv-count
(
mailaprop-find-recv-count
arg
)))
(
concat
;; Should we offer customizable annotations?
" | "
(
mailaprop-find-date
arg
)
" ("
(
if
(
zerop
sent-count
)
(
number-to-string
recv-count
)
(
concat
(
number-to-string
sent-count
)
", "
(
number-to-string
recv-count
)))
")"
;; We used to have another entry here, showing
;; the raw score in parentheses. But now that
;; we show the sent count and received count,
;; the raw score is less useful, so we dropped it.
)))
(
sorted
t
)
(
ignore-case
t
)
(
no-cache
t
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment