Skip to content

herval/cloudsearch_cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudSearch: a tiny realtime search tool for cloud accounts

cloudsearch allows you to index and search content on cloud services such as Google services (Gmail, Google Drive, etc) and Dropbox, directly from a command line.

Data gets indexed and stored on your device only - this doesn't utilize any intermediate service for indexing, nor sends your documents or metadata anywhere. The only "intermediary" is an auth gateway, used for Oauth2 token exchanges, but you can always deploy your own auth, for extra independence. It doesn't log or store any tokens.

Building et al

The scripts folder contains build scripts for building, running tests, etc

Usage

Configuring an account

cloudsearch login

The available account types are Dropbox or Google.

In order for the OAuth2 loop to complete, cloudsearch will require your machine to accept inbound HTTP requests while adding an account. The default port is 65432, but you can override it with the --oauthPort flag

Searching for content

cloudsearch search foo

You can narrow down your results with cloudsearch's query macros:

  • before:2006-02-01 - only get documents created or modified before the given date
  • after:2006-02-01 - only get documents created or modified after the given date
  • mode:live - only search for documents on the cloud services directly, skipping local cache
  • mode:cache - only search for documents locally (pre-cached results)
  • type:<document type> - include only results of a given type. Options include Application, Calendar, Contact, Document, Email, Event, File, Folder, Image, Message, Post, Task, Video
  • service:<Dropbox | Google> - only get results from the given service

An advanced search would look like this:

cloudsearch search foo before:2006-02-01 after: 2005-02-01 mode:cache type:Email type:Image service:Google

In this example, your search results would only include emails and images, saved in cache, from Google accounts, created between two given dates.

Interactive search

If you start cloudsearch with no parameters, you'll get into interactive mode. This will allow you to do search-as-you-type. You can navigate on items using up/down arrows. Pressing enter will open the selected document on your default browser.

Listing configured accounts

cloudsearch accounts list

Removing an account

cloudsearch accounts remove

TODO

  • Something, somewhere is importing "testing", which polutes the flags namespace. Ugh.
  • Fix search w/ lowercase on titles (not working? eg email subject)

About

A tiny realtime search tool for cloud accounts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages