Skip to content

locate find-file question #116

Closed
davidcarslaw opened this Issue Sep 19, 2012 · 7 comments

3 participants

@davidcarslaw

On Windows I'm using the Everything program as an equivalent to locate in linux and it works really well in helm, so thanks! It is massively better than Windows own indexing and it indexes everything too.

When using locate one of the Actions is 'open file with default tool', which works very well for opening some files using Windows apps e.g. open a pdf in an external pdf viewer. It would be nice if there was a keyboard shortcut for this action. It would also be really useful to also have this action for helm-find-files (also with a keyboard shortcut). Is that possible?

Thanks again for a great program - I find it really useful.

David

@thierryvolpiatto
emacs-helm member
@davidcarslaw

That would be useful as the default tool is what's required most of the time and C-c C-x does not identify all the necessary programs on Windows. Many thanks!

@thierryvolpiatto
emacs-helm member
@davidcarslaw

Thanks for the advice. I missed the C-u option to set the default program - neat. Strangely on Windows 7 the list of exe does not include the likes of Word/Excel etc, but I guess I can add these to the PATH...

@thierryvolpiatto thierryvolpiatto added a commit that referenced this issue Sep 20, 2012
@thierryvolpiatto thierryvolpiatto Issue #116 Fix and bind helm-c-open-file-with-default-tool in *find-f…
…iles and locate.

* helm-external (helm-run-or-raise): Always pipe proc.
* helm-files.el: Bind helm-c-open-file-with-default-tool in helm-find-files.
Fix action transformer, always place new action to end.
* helm-help.el add open file with default tool to doc.
* helm-utils.el (helm-c-open-file-with-default-tool): Fix for emacs24+ (always pipe proc).
32db807
@lewang
emacs-helm member
lewang commented Sep 20, 2012

Graphical programs like Word or Excel have never been in the PATH on windows. You can defer to start to open files with their default associated programs.

@thierryvolpiatto Maybe instead of doing the Mailcap stuff on windows, we can use start and on mac, we can use open?

@davidcarslaw

@lewang I didn't know about start, thanks. Thierry's recent changes work perfectly on my Windows system. About half the time I want to open files in emacs, which is fine, and the other half the default Windows program. Thanks for implementing this.

@lewang
emacs-helm member
lewang commented Sep 20, 2012

ok @thierry, just saw your last commit. It's clear this issue is satisfactorily resolved.

@lewang lewang closed this Sep 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.