google slides works enough for search

master v0.1.2
Bel LaPointe 2022-02-16 16:14:31 -07:00
parent 9219e3656b
commit eadc4080b1
3 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,10 @@
#! /bin/bash #! /bin/bash
google() ( google() (
_is_slides() {
echo "$@" | grep -q 'docs.google.com.presentation'
}
_is_sheets() { _is_sheets() {
echo "$@" | grep -q 'docs.google.com.spreadsheets' echo "$@" | grep -q 'docs.google.com.spreadsheets'
} }
@ -10,7 +14,7 @@ google() (
} }
is() { is() {
_is_sheets "$@" || _is_doc "$@" _is_sheets "$@" || _is_doc "$@" || _is_slides "$@"
} }
human_url() { human_url() {

View File

@ -2,7 +2,7 @@
rclone() ( rclone() (
get_google() { get_google() {
local cache_key="rclone get google $*" local cache_key="rclone get google 2 $*"
if cache get "$cache_key"; then if cache get "$cache_key"; then
return 0 return 0
fi fi
@ -13,7 +13,7 @@ rclone() (
_rate_limit _rate_limit
local id="$1" local id="$1"
local out="$(mktemp -d)" local out="$(mktemp -d)"
_cmd backend copyid work-notes-google: --drive-export-formats=csv,html,pdf "$id" "$out/" _cmd backend copyid work-notes-google: --drive-export-formats=csv,html,txt "$id" "$out/"
find "$out" -type f find "$out" -type f
} }

View File

@ -1,15 +1,15 @@
todo: todo:
- scrape gdoc
- rewrite links if available to local
- scrape odo - scrape odo
- scrape gsheet - mark generated via meta so other files in the dir can be created, deleted, replaced safely
- scrape gslide - rewrite links if available to local
- table of contents - table of contents
- anchor per line - anchor per line
- anchor links work - anchor links work
- ui; last updated; 2022.02.01T12:34:56 - ui; last updated; 2022.02.01T12:34:56
- mark generated via meta so other files in the dir can be created, deleted, replaced safely
done: done:
- scrape gslide
- scrape gsheet
- scrape gdoc
- alert box; https://concisecss.com/documentation/ui - alert box; https://concisecss.com/documentation/ui
- hide checkbox for tree - hide checkbox for tree
- do not rewrite .md title vs. link cause hrefs to ./gobs.md wont work - do not rewrite .md title vs. link cause hrefs to ./gobs.md wont work