Skip to content

misohena/helm-windows-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Helm Windows Search

Introduction

Helm Windows Search is an interface for accessing Windows Desktop Search from Emacs-Helm.

Install

  1. Put helm-windows-search.el and adoquery.exe into your load path.

    (adoquery.exe is a simple ADO access wrapper. see:https://github.com/misohena/adoquery)

  2. Put the following code in your init.el file.
    (autoload 'helm-windows-search "helm-windows-search")
    (global-set-key (kbd "C-c h w") 'helm-windows-search)
        

If you want to use Windows Search instead of es.exe in helm-locate, follow these steps:

  1. Put helm-locate-windows-search.el and adoquery.exe into your load path.
  2. Put the following code in your init.el file.
    (autoload 'helm-locate-windows-search-setup "helm-locate-windows-search")
    (with-eval-after-load "helm-locate" (helm-locate-windows-search-setup))
        

Then helm-locate-init function is overwritten and locate command is emulated by Windows Search. In helm-locate, you can only use locate command format. (ex: -b \NAME)

If you want to completely replace helm-locate-1 with helm-windows-search-1, you can use the following code instead.

(with-eval-after-load "helm-locate"
  (fset 'helm-locate-1
        (lambda (&optional localdb init from-ff default)
          (require 'helm-windows-search)
          (helm-windows-search-1 init default)))

You can use helm-windows-search query. (ex: file:main date:today author:misohena )

Usage

M-x helm-windows-search or C-c h w

Example Queries

filepath or filename or contents

  • hello
  • apple orange banana
  • “hello world”
  • CreateWindow

author

  • author:misohena
  • author:Jhon\ Smith

title

  • title:hello

filename or file

  • filename:main.cpp
  • file:hello.cpp

file extension

  • ext:mp3
  • ext:.mp3
  • fileext:mp3

kind

  • kind:folder
  • kind:music

(see: System.Kind | Microsoft Docs )

size

  • size:>=1000000000
  • size:<100000

date

  • date:today
  • date:2018-12-20
  • date:2018-12
  • date:2018
  • date:=2018-12-20
  • date:2018-12-1..2019-1-3
  • date:2018-12..today
  • date:>=2010 date:<2011

contents

  • contents:hello\ world

About

Helm interface for Windows Search (Ivy and more generic version is https://github.com/misohena/el-winsearch)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published