presser 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +25 -5
- data/lib/presser/version.rb +1 -1
- data/post_template.txt +2 -5
- metadata +3 -3
data/README.md
CHANGED
@@ -20,18 +20,38 @@ will get presser to create a sample .presser file for you. You will then need to
|
|
20
20
|
|
21
21
|
## Uploading files
|
22
22
|
|
23
|
-
|
23
|
+
This command doesn't post a file! It's here so you can upload an image that can then be shown on your blog.
|
24
24
|
|
25
25
|
presser -U filename
|
26
26
|
|
27
27
|
Presser will upload the file and print out the url where the uploaded file can be found.
|
28
28
|
|
29
|
+
## Edit a post
|
30
|
+
|
31
|
+
Get the post ID of the post you want to edit. You can see this in Wordpress's url for the post, in several of the views. Then:
|
32
|
+
|
33
|
+
presser -g id
|
34
|
+
|
35
|
+
This downloads the post to a file in your current directory that you can then edit.
|
36
|
+
|
37
|
+
To download a post and then open the file in Vim:
|
38
|
+
|
39
|
+
presser -vg id
|
40
|
+
|
41
|
+
(Note! The order of the options is important. -vg works. -gv doesn't.)
|
42
|
+
|
29
43
|
## New posts
|
30
44
|
|
31
|
-
|
45
|
+
To create a new post template file in your current directory:
|
32
46
|
|
33
|
-
|
47
|
+
presser -n
|
34
48
|
|
35
|
-
|
49
|
+
To create the new template and edit it in vim:
|
50
|
+
|
51
|
+
presser -nv
|
36
52
|
|
37
|
-
|
53
|
+
At the moment, vim is hardwired to be MacVim, via MacVim's mvim wrapper script.
|
54
|
+
|
55
|
+
Once you have edited a post file, either a new one or a downloaded one, upload it to your blog like this:
|
56
|
+
|
57
|
+
presser -o filename
|
data/lib/presser/version.rb
CHANGED
data/post_template.txt
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
# Beginning of header
|
2
2
|
title: A newer title
|
3
|
-
|
4
|
-
postid: 1247
|
5
|
-
post_status: publish
|
3
|
+
categories: these, are, tags
|
6
4
|
# End of header
|
5
|
+
|
7
6
|
This is the body
|
8
7
|
of the file.
|
9
8
|
|
10
9
|
This is [a link](http://www.google.com).
|
11
|
-
|
12
|
-
And it works. Woo hoo!
|
metadata
CHANGED