Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blue0513/scrapbox-on-emacs-sample
A simple use case of scrapbox on Emacs
https://github.com/blue0513/scrapbox-on-emacs-sample
emacs shell-script
Last synced: about 1 month ago
JSON representation
A simple use case of scrapbox on Emacs
- Host: GitHub
- URL: https://github.com/blue0513/scrapbox-on-emacs-sample
- Owner: blue0513
- Created: 2018-08-05T08:53:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-27T16:20:31.000Z (over 6 years ago)
- Last Synced: 2024-11-10T00:44:48.709Z (3 months ago)
- Topics: emacs, shell-script
- Language: Shell
- Size: 1.95 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scrapbox-on-Emacs-sample
A use case of scrapbox on Emacs
## Usage
#### 1. Set the Path to the shellscripts on sample.el
```el
(defun my-index-scrapbox ()
(interactive)
(async-shell-command
"/path/to/get_scrapbox_page_titles.sh"))
```#### 2. Fill blank on shellscripts
Edit your `get_scrapbox_page.sh`, `get_scrapbox_page_titlets.sh` as follows.
```sh
response=$(curl -s "[Your Request]")
# [Your Request]: "https://scrapbox.io/api/pages/[PROJECT_NAME]/search/titles"
```#### 3. Execute
+ Get Page Titles
```el
M-x my-index-scrapbox
```+ Get Page Body
```el
M-x my-index-scrapbox RET [YOUR_PAGE_NAME]
```+ Post Page Body
After selecting region, execute
```el
M-x my-post-scrapbox RET [YOUR_PAGE_NAME]
```## Hack for private page
If you want to access your private project, plz do a bit hack.
See the comment on: `get_scrapbox_page.sh`