md2key 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/md2key/version.rb +1 -1
- data/scripts/paste_and_indent.scpt +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee2b4a206c2e364066144e6078e33d3568249fb7
|
4
|
+
data.tar.gz: db51f92d93466e01e6de76feffb63648351a96a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d7ca73cc1e3179ad8c2aa68a89cb50b8efd9c78d9ca2dc514559122398909b55647d301292dcb487097864a8631fc554d8e099e537c0f0ebf4dcc1b614af6e1
|
7
|
+
data.tar.gz: 42da1d21e7f0583186b65f431cbf0ff11b25139b5b8f721a43ee8209d3d7af5b0e981ba29e86aa870290def24aa0981b5ee95c34201801392495a4cafe9af6d3
|
data/CHANGELOG.md
CHANGED
data/lib/md2key/version.rb
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
+
-- NOTE: Using delay to prevent pbcopy overlap before pasting event.
|
2
|
+
-- We should think of a good way to prevent it or provide an option
|
3
|
+
-- to change the delay...
|
1
4
|
on run argv
|
2
5
|
set indent to item 1 of argv as number
|
3
6
|
set insertNewline to item 2 of argv as boolean
|
4
7
|
|
5
8
|
tell application "System Events"
|
9
|
+
delay 0.05 -- TODO: this should be configurable or removed
|
10
|
+
|
6
11
|
keystroke "v" using { command down }
|
7
12
|
|
8
13
|
if indent is greater than 0 then
|
@@ -18,6 +23,8 @@ on run argv
|
|
18
23
|
end if
|
19
24
|
|
20
25
|
if insertNewline is true then
|
26
|
+
delay 0.05 -- TODO: this should be configurable or removed
|
27
|
+
|
21
28
|
key code 36 -- return
|
22
29
|
end if
|
23
30
|
end tell
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: md2key
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kokubun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
154
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
155
|
+
rubygems_version: 2.5.1
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: Convert markdown to keynote
|