note_taker 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/note_taker/note.rb +4 -4
- data/lib/note_taker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba00479c6eccdb1c8a92b61d1ad22e9e60a459c02eb774bbf79e23208f53f1b1
|
4
|
+
data.tar.gz: 249f83834dddf625ecc1b3a1e3a2b836ad9bacee4a8a2236baa32046334d9b6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4308ce39ff4ca8bbd3214d5fa287740ee888e35c53c34a58b2d13b1630d90b5ec7cad407f2167a62e55619f0bd3799b013fd93c543e4d09328883e784c99a7f6
|
7
|
+
data.tar.gz: 5248090a56241f5ae4b8874d6c3c858c5b1fe0a78026ec724a4225002dcc1e9fd9510e039e4e3e4f4f069384dd0ea3ccb0772c30c588508eb5a4bf0337914852
|
data/lib/note_taker/note.rb
CHANGED
@@ -29,7 +29,7 @@ class Note
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def dir
|
32
|
-
|
32
|
+
NoteTaker.config['general']['directory']
|
33
33
|
end
|
34
34
|
|
35
35
|
def prompt
|
@@ -52,12 +52,12 @@ class Note
|
|
52
52
|
def view
|
53
53
|
catch(:note_quit) do
|
54
54
|
loop do
|
55
|
-
|
55
|
+
NoteTaker.header unless NoteTaker.inline?
|
56
56
|
parsed = TTY::Markdown.parse_file(file_path)
|
57
|
-
|
57
|
+
NoteTaker.options[:inline] ? puts(parsed) : prompt.puts(parsed)
|
58
58
|
prompt.puts("\n")
|
59
59
|
|
60
|
-
break if
|
60
|
+
break if NoteTaker.inline?
|
61
61
|
|
62
62
|
note_menu
|
63
63
|
end
|
data/lib/note_taker/version.rb
CHANGED