Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`