parent
9219e3656b
commit
eadc4080b1
|
|
@ -1,6 +1,10 @@
|
|||
#! /bin/bash
|
||||
|
||||
google() (
|
||||
_is_slides() {
|
||||
echo "$@" | grep -q 'docs.google.com.presentation'
|
||||
}
|
||||
|
||||
_is_sheets() {
|
||||
echo "$@" | grep -q 'docs.google.com.spreadsheets'
|
||||
}
|
||||
|
|
@ -10,7 +14,7 @@ google() (
|
|||
}
|
||||
|
||||
is() {
|
||||
_is_sheets "$@" || _is_doc "$@"
|
||||
_is_sheets "$@" || _is_doc "$@" || _is_slides "$@"
|
||||
}
|
||||
|
||||
human_url() {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
rclone() (
|
||||
get_google() {
|
||||
local cache_key="rclone get google $*"
|
||||
local cache_key="rclone get google 2 $*"
|
||||
if cache get "$cache_key"; then
|
||||
return 0
|
||||
fi
|
||||
|
|
@ -13,7 +13,7 @@ rclone() (
|
|||
_rate_limit
|
||||
local id="$1"
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
todo:
|
||||
- scrape gdoc
|
||||
- rewrite links if available to local
|
||||
- scrape odo
|
||||
- scrape gsheet
|
||||
- scrape gslide
|
||||
- mark generated via meta so other files in the dir can be created, deleted, replaced safely
|
||||
- rewrite links if available to local
|
||||
- table of contents
|
||||
- anchor per line
|
||||
- anchor links work
|
||||
- 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:
|
||||
- scrape gslide
|
||||
- scrape gsheet
|
||||
- scrape gdoc
|
||||
- alert box; https://concisecss.com/documentation/ui
|
||||
- hide checkbox for tree
|
||||
- do not rewrite .md title vs. link cause hrefs to ./gobs.md wont work
|
||||
|
|
|
|||
Loading…
Reference in New Issue