Proposal of es to increase run-count as everything.exe

General discussion related to "Everything".
Post Reply
loquat
Posts: 3
Joined: Thu Dec 29, 2011 8:20 am

Proposal of es to increase run-count as everything.exe

Post by loquat »

Thanks alot for this most wonderful software (not because it is free)!

I am right now rely more on es cmd line (to use it in emacs helm), and is using the latest beta 1.1.0.3a. Because I tend to use mostly es instead of everything, so it could be very nice if es also can update the run count increment into "Run History.csv" and so that the existing "-sort run-count" will be more practical.

Just a proposal from my usage experience and guess it might not be like by all other users, so another es parameter might be necessary though need clear description to avoid confusion of too much "run-count" similar parameters.
void
Developer
Posts: 15251
Joined: Fri Oct 16, 2009 11:31 pm

Re: Proposal of es to increase run-count as everything.exe

Post by void »

Added -set-run-count, -inc-run-count and -get-run-count to es 1.1.0.4a.
loquat
Posts: 3
Joined: Thu Dec 29, 2011 8:20 am

Re: Proposal of es to increase run-count as everything.exe

Post by loquat »

Thanks!
I just had a proposal raised in emacs helm github to advice the change in helm-for-files as well
https://github.com/emacs-helm/helm/issues/1645
loquat
Posts: 3
Joined: Thu Dec 29, 2011 8:20 am

Re: Proposal of es to increase run-count as everything.exe

Post by loquat »

write for a record for others use both emacs and everything (es.exe)

Helm owner have a bellow commit in
https://github.com/emacs-helm/helm/comm ... b5d8e5d4b8
*****************************************************************************************************************
(defun helm-find-many-files (_ignore)
+ "Simple action that run `find-file' on marked candidates.
+Run `helm-find-many-files-after-hook' at end"
(let ((helm--reading-passwd-or-string t))
- (mapc 'find-file (helm-marked-candidates))))
+ (mapc 'find-file (helm-marked-candidates))
+ (helm-log-run-hook 'helm-find-many-files-after-hook)))
*****************************************************************************************************************

so the function in the helm-find-many-files-after-hook can be as:
(defun xxx-helm-find-many-files-after-hook ()
(when (and (equal (cdar (helm-get-current-source)) "Locate") (eq 'windows-nt system-type))
(mapc 'xxx-helm-find-file (helm-marked-candidates))))

(defun xxx-helm-find-file (filename)
(shell-command (concat "C:\\es -inc-run-count " (convert-standard-filename filename))))
Post Reply