save-as-heading

filename auto use first line or header of markdown.

trashfeed

609

0

1.3.0

MIT

GitHub

save-as-heading

save-as-heading is use the first line as the file name to quickly create or overwrite the file.

Installation

Atom Package: https://atom.io/packages/save-as-heading

apm install save-as-heading

Feature

Usage

Example1

  1. input the next sentence.
title
foo bar fuga.
...
...
  1. ctrl + shift + h
  2. A file name title.md is created or overrided.

to change .md to Setting - Extension

Example2

  1. input the next sentence.
/directory/directory/title
foo bar fuga.
...
...
  1. ctrl + shift + h
  2. A file path /directory/directory/title.md is created or overrided. a root of the path is the project folder.

Example3

  1. set a Setting - Filename type is Headline.
  2. input the next sentence.
...
title
# head1
foo bar fuga.
...
...
  1. ctrl + shift + h
  2. A file name head1.md is created or overrided.

Example4

  1. set a Setting - Filename type is Metadata.
  2. input the next sentence.
title: This would be wonderful
date: 2018-07-31
publish: true

This is a new file, i'm about to save it with `ctrl+shift+H`.
  1. ctrl + shift + h
  2. A file name This-would-be-wonderful.md is created or overrided.

to change key in Metadata to Setting - Key in Metadata (e.g. %date%-%title%).

Options

Licence

MIT

Author

trashfeed