Crates.io | gdrive-search |
lib.rs | gdrive-search |
version | 0.1.0 |
source | src |
created_at | 2021-10-27 21:03:54.990438 |
updated_at | 2021-10-27 21:03:54.990438 |
description | A TUI to quickly find files in your Google Drive |
homepage | https://github.com/jalada/gdrive-search |
repository | https://github.com/jalada/gdrive-search |
max_upload_size | |
id | 473262 |
size | 95,744 |
Warning: I used this to learn Rust. It might be the worst Rust ever.
Fifty percent learning Rust, fifty percent building a CLI to very quickly search & access files in your Google Drive.
On my Mac I had the Google Drive desktop app, and an Alfred workflow to use that synchronised filesystem to quickly search & open Drive files. But I haven't found an equivalent super-fast autocompleting search & open for Linux so I decided to build one.
Hitting enter would then open in your browser
This dance will be familiar if you've used any other open source tools that use the Google Drive API.
Create a new project
Enable the Google Drive API for your project
Setup oauth consent screen
Create a new oauth client ID
Download the JSON provided and put it in the configuration directory. This varies depending on operating system:
Platform | Value | Example |
---|---|---|
Linux | $XDG_CONFIG_HOME or $HOME/.config/gdrive-search/clientsecret.json | /home/alice/.config/gdrive-search/clientsecret.json |
macOS | $HOME/Library/Preferences/gdrive-search/clientsecret.json | /Users/Alice/Library/Preferences/gdrive-search/clientsecret.json |
Windows | {FOLDERID_RoamingAppData}\gdrive-search\clientsecret.json | C:\Users\Alice\AppData\Roaming\gdrive-search\clientsecret.json |