-
Notifications
You must be signed in to change notification settings - Fork 43
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
open the [inbox,drafts...etc] in a splitted buffer on the right #15
Comments
I've the same problem and did not find a proper automatic solution. What I do is to first split the window, load the dashboard on the right and start mu4e on the left and open one bookmarks. The dashboard will then works accordingly and updare the left window. This can probably be automatized but I'm not sure of the best way to do that. |
I've implemented a rough draft of what I think should fit the desired functionality here in #18 :) |
I'm not sure but I think my issue #36 is a duplicate, so I'll put my ad-hoc solution here. To fix this for myself -- that is, with no flexibility for other people's needs -- I just rewrote the (defun mu4e-dashboard-open-query-to-side (query)
"opinionated function that will open mu buffers to the side."
(when (one-window-p)
(split-window-horizontally 50))
(other-window 1)
(let ((mubuffer (or (get-buffer "*mu4e-headers*") (get-buffer "*mu4e-main*"))))
(if mubuffer (switch-to-buffer mubuffer)
(mu4e))
(mu4e-headers-search query)))
(defun mwp/mu4e-dashboard-follow-mu4e-link (path)
"Process a mu4e link with path PATH.
PATH shall be of the form [[mu4e:query|fmt|limit][(---------)]].
If FMT is not specified or is nil, clicking on the link calls
mu4e with the specified QUERY (with or without the given
LIMIT). If FMT is specified, the description of the link is
updated with the QUERY count formatted using the provided
format (for example \"%4d\")."
(let* ((link (org-element-context))
(query (string-trim (nth 0 (split-string path "[]|]"))))
(fmt (nth 1 (split-string path "[]|]")))
(count (nth 2 (split-string path "[]|]"))))
(cond
;; Regular query without limit
((and (not fmt) (not count))
(mu4e-dashboard-open-query-to-side query))
;; Regular query with limit
((and count (> (length count) 0))
(let ((mu4e-headers-results-limit (string-to-number count)))
(mu4e-dashboard-open-query-to-side query)))
;; Query count and link description update
((and fmt (> (length fmt) 0))
(mu4e-dashboard-update-link link)))))
(org-link-set-parameters
mu4e-dashboard-link-name
:follow #'mwp/mu4e-dashboard-follow-mu4e-link) I don't know if that's helpful or not. I suppose something like org-sidebar or what @cmacrae has done would be better, in any case. |
To do more or less the same effect, I open the dashboard on a side window and I make it |
actually this is a question and not an issue
I'm using the sidebar dashboard now , but when i want to see the inbox for example, it appears in a whole buffer by itself.
How can i make the result appears in a splitted buffer on the right like the image on the README?
The text was updated successfully, but these errors were encountered: