2022-05-18 20:36:29 +00:00
|
|
|
#+TITLE: Fountain layer
|
|
|
|
|
2022-06-04 08:10:50 +00:00
|
|
|
#+TAGS: dsl|layer|markup|programming
|
2022-05-18 20:36:29 +00:00
|
|
|
|
2022-06-03 15:18:32 +00:00
|
|
|
* Table of Contents :TOC_5_gh:noexport:
|
2022-05-18 20:36:29 +00:00
|
|
|
- [[#description][Description]]
|
|
|
|
- [[#features][Features:]]
|
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#key-binding][Key binding]]
|
|
|
|
- [[#editing][Editing]]
|
|
|
|
- [[#navigation][Navigation]]
|
|
|
|
- [[#block-editing][Block editing]]
|
|
|
|
- [[#outline][Outline]]
|
|
|
|
- [[#pagination][Pagination]]
|
|
|
|
- [[#exporting][Exporting]]
|
|
|
|
|
|
|
|
* Description
|
|
|
|
This layer adds support for the [[https://fountain.io/][fountain]] screenwriting format to Spacemacs.
|
|
|
|
|
|
|
|
** Features:
|
|
|
|
- Fountain files support via [[https://github.com/rnkn/fountain-mode/][fountain-mode]]
|
|
|
|
- Confortable writing layout via [[https://github.com/rnkn/olivetti/][olivetti-mode]]
|
|
|
|
|
|
|
|
* Install
|
|
|
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
|
|
|
add =fountain= to the existing =dotspacemacs-configuration-layers= list in this
|
|
|
|
file.
|
|
|
|
|
|
|
|
* Key binding
|
|
|
|
** Editing
|
|
|
|
|
2022-06-03 15:18:32 +00:00
|
|
|
| Key binding | Description |
|
2022-05-18 20:36:29 +00:00
|
|
|
|-------------+-------------------------|
|
|
|
|
| ~SPC m RET~ | upcase line and newline |
|
|
|
|
| ~SPC m x U~ | upcase line |
|
|
|
|
| ~SPC m c d~ | add continued dialog |
|
|
|
|
| ~SPC m c D~ | remove continued dialog |
|
|
|
|
| ~SPC m i n~ | insert note |
|
|
|
|
| ~SPC m i s~ | insert synopsis |
|
|
|
|
| ~SPC m i i~ | auto insert header |
|
|
|
|
| ~SPC m c n~ | add scene numbers |
|
|
|
|
| ~SPC m c N~ | remove scene numbers |
|
|
|
|
| ~SPC m i b~ | insert page break |
|
|
|
|
| ~SPC m ]~ | update completion |
|
|
|
|
| ~SPC m T m~ | toggle emphasis markup |
|
|
|
|
| ~SPC m T e~ | toggle element markup |
|
|
|
|
|
|
|
|
** Navigation
|
|
|
|
|
2022-06-03 15:18:32 +00:00
|
|
|
| Key binding | Description |
|
2022-05-18 20:36:29 +00:00
|
|
|
|-------------+-------------|
|
|
|
|
| ~SPC m j s~ | goto scene |
|
|
|
|
| ~SPC m j p~ | goto page |
|
|
|
|
|
|
|
|
** Block editing
|
|
|
|
|
2022-06-03 15:18:32 +00:00
|
|
|
| Key binding | Description |
|
2022-05-18 20:36:29 +00:00
|
|
|
|-------------+-------------------|
|
|
|
|
| ~<M-down>~ | move section down |
|
|
|
|
| ~<M-up>~ | move section up |
|
|
|
|
|
|
|
|
** Outline
|
|
|
|
|
2022-06-03 15:18:32 +00:00
|
|
|
| Key binding | Description |
|
2022-05-18 20:36:29 +00:00
|
|
|
|-------------+----------------------------|
|
|
|
|
| ~SPC m TAB~ | cycle outline |
|
|
|
|
| ~S-TAB~ | cycle outlines for buffer |
|
|
|
|
| ~SPC m o~ | outline to indirect buffer |
|
|
|
|
| ~SPC m i h~ | insert section heading |
|
|
|
|
|
|
|
|
** Pagination
|
|
|
|
|
2022-06-03 15:18:32 +00:00
|
|
|
| Key binding | Description |
|
2022-05-18 20:36:29 +00:00
|
|
|
|-------------+-------------------|
|
|
|
|
| ~SPC m c p~ | count pages |
|
|
|
|
| ~SPC m c u~ | pagination update |
|
|
|
|
|
|
|
|
** Exporting
|
|
|
|
|
2022-06-03 15:18:32 +00:00
|
|
|
| Key binding | Description |
|
2022-05-18 20:36:29 +00:00
|
|
|
|-------------+----------------|
|
|
|
|
| ~SPC m e e~ | export command |
|
|
|
|
| ~SPC m e v~ | export view |
|