save-as-heading
is use the first line as the file name to quickly create or overwrite the file.
Atom Package: https://atom.io/packages/save-as-heading
apm install save-as-heading
titlefoo bar fuga.......
ctrl
+ shift
+ h
title.md
is created or overrided.to change
.md
toSetting
-Extension
/directory/directory/titlefoo bar fuga.......
ctrl
+ shift
+ h
/directory/directory/title.md
is created or overrided. a root of the path is the project folder.Setting
- Filename type
is Headline
....title# head1foo bar fuga.......
ctrl
+ shift
+ h
head1.md
is created or overrided.Setting
- Filename type
is Metadata
.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`.
ctrl
+ shift
+ h
This-would-be-wonderful.md
is created or overrided.to change
key
in Metadata toSetting
-Key in Metadata
(e.g.%date%-%title%
).
Extension
.md
.Filename type
Key in Metadata
.Firstline
.Filename key in Metadata
%
) is the key for the filename(e.g. %date%
,%date%-%title%
).%date%
.Show save success notification
Replace from
/ Replace to
Replace from
space
). if use multiple chars, separate them with |
(ex:_| |-)Replace to
Replace from
] with [Replace to
] in filename when saved.Replace from
= (spaces)
, Replace to
= -
saved file path in/directory/first line code
/directory/first-line-code.md
Replace from
= (spaces)|,
, Replace to
= -
saved file path in/directory/first line code,to file name
/directory/first-line-code-to-file-name.md
Conversion filename
Uppercase
Lowercase
Capitalize
in filename when saved.Conversion filename
= Capitalize
saved file path in/directory/first-line-ccode
/directory/First-line-code.md
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.