From 0a7e4f349ff40ee9befe903be04f04703363c4c0 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Sat, 18 Jan 2020 20:34:13 -0600 Subject: [PATCH] Add: (org-ql-view-refresh) Message on refresh Closes #71. Thanks to @xeijin. Squashed commit of the following: commit edac9c696061aba2a429abb8d61238fa37e28418 Author: Adam Porter Date: Sat Jan 18 20:24:28 2020 -0600 Adjust message, indentation, add changelog entry commit 6a263e34ff1d1fac00b7061282fcec39f1d619b3 Author: xeijin Date: Fri Jan 3 19:08:10 2020 +0000 removing view title commit fc37e3f1460cefe0f396f3f8033372a9d40c6107 Author: xeijin Date: Mon Dec 9 22:47:00 2019 +0000 confirmation message for org-ql-view-refresh In keeping with the message displayed by `g` when refreshing an org-agenda buffer - if nothing has changed in an `org-ql` buffer it can sometimes be difficult to determine if the refresh took place at all. --- README.org | 1 + org-ql-view.el | 3 ++- org-ql.info | 26 ++++++++++++++------------ 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/README.org b/README.org index 1438e84..abb5489 100644 --- a/README.org +++ b/README.org @@ -397,6 +397,7 @@ Expands into a call to ~org-ql-select~ with the same arguments. For convenience - Alias =r= for =regexp= predicate. (Thanks to [[https://github.com/tumashu][Feng Shu]].) + Info manual. + Function ~helm-org-ql-source~, which returns a Helm source that searches given buffers/files with ~helm-org-ql~. It can be used for custom Helm commands that search certain files. ++ Display a message when views are refreshed. (Thanks to [[https://github.com/xeijin][xeijin]].) *Fixed* + Inherit file tags when =org-tag-inheritance= is enabled. (Fixes [[https://github.com/alphapapa/org-ql/issues/55][#55]]. Thanks to [[https://github.com/mskorzhinskiy][Mikhail Skorzhinskiy]].) diff --git a/org-ql-view.el b/org-ql-view.el index 72f44e8..42cf1fe 100644 --- a/org-ql-view.el +++ b/org-ql-view.el @@ -300,7 +300,8 @@ update search arguments." (goto-char (point-min)) (or (when (search-forward current-line nil t) (beginning-of-line)) - (goto-char old-pos)))) + (goto-char old-pos)) + (message "View refreshed"))) (defun org-ql-view-save () "Save current `org-ql-search' buffer to `org-ql-views'." diff --git a/org-ql.info b/org-ql.info index 43725a7..3254983 100644 --- a/org-ql.info +++ b/org-ql.info @@ -721,6 +721,8 @@ File: README.info, Node: 04-pre, Next: 032, Up: Changelog • Function ‘helm-org-ql-source’, which returns a Helm source that searches given buffers/files with ‘helm-org-ql’. It can be used for custom Helm commands that search certain files. + • Display a message when views are refreshed. (Thanks to xeijin + (https://github.com/xeijin).) *Fixed* • Inherit file tags when org-tag-inheritance is enabled. (Fixes #55 @@ -1026,18 +1028,18 @@ Node: Agenda-like views18025 Node: Listing / acting-on results19430 Node: Changelog24032 Node: 04-pre24569 -Node: 03226584 -Node: 03126965 -Node: 0327160 -Node: 02330133 -Node: 02230359 -Node: 02130625 -Node: 0230822 -Node: 0134855 -Node: Notes34954 -Node: Comparison with Org Agenda searches35116 -Node: org-sidebar35987 -Node: License36266 +Node: 03226689 +Node: 03127070 +Node: 0327265 +Node: 02330238 +Node: 02230464 +Node: 02130730 +Node: 0230927 +Node: 0134960 +Node: Notes35059 +Node: Comparison with Org Agenda searches35221 +Node: org-sidebar36092 +Node: License36371  End Tag Table