Skip to content

Commit 766bb04

Browse files
authored
Merge pull request #89 from Philip-Scott/1.3.1
1.3.1
2 parents 179a5e1 + 70b4f82 commit 766bb04

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+714
-326
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ vala_precompile(VALA_C
148148
src/Services/Bookmark.vala
149149
src/Services/FileManager.vala
150150
src/Services/Notebook.vala
151+
src/Services/Image.vala
151152
src/Services/Page.vala
152153
src/Services/Settings.vala
153154
src/Services/Trash.vala
@@ -158,6 +159,8 @@ vala_precompile(VALA_C
158159
src/Plugins/Break.vala
159160
src/Plugins/Color.vala
160161
src/Plugins/Youtube.vala
162+
src/Plugins/Image.vala
163+
src/Plugins/Highlight.vala
161164
src/config.vala
162165
PACKAGES
163166
${VALA_DEPS}
@@ -177,14 +180,14 @@ add_dependencies(notes-up
177180
install(TARGETS notes-up RUNTIME
178181
DESTINATION bin)
179182

180-
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/Notes.desktop
183+
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.philip-scott.notes-up.desktop
181184
DESTINATION ${DATADIR}/applications/)
182185

183186
#install assets
184-
file(GLOB assets "${CMAKE_CURRENT_SOURCE_DIR}/data/assets/*")
187+
file(GLOB assets "${CMAKE_CURRENT_SOURCE_DIR}/data/assets/**")
185188
install (FILES ${assets}
186189
DESTINATION ${DATADIR}/notes-up/)
187-
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/data/notes.svg"
190+
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.philip-scott.notes-up.svg"
188191
DESTINATION ${DATADIR}/pixmaps/)
189192

190193
# App DATA

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@ As a computer engineer, I've been writing my school notes using just a text edit
1212

1313
![screenshot](https://github.com/Philip-Scott/Notes-up/blob/master/Screenshot.png?raw=true)
1414

15-
## Now in 1.3!
16-
17-
- Notes-Up is now faster than ever! It now uses a database as its backend and saves the preview for quickly loading
18-
- You can now rename your bookmarks! Double-click on them to rename them
19-
- Plugins! There are currently 3 plugins installed by default, and with many more to come in the future.
20-
- **Color**: You can now easily change the text color! Select it and click the new color button right from the toolbar or by typing ` <color rgb(164,0,0) [your text here]> `
21-
- **Youtube**: By typing `<youtube [your video URL]>`, you can now embed youtube videos right into your notes!
22-
- **Break**: Exporting to PDF is sometimes a pain... Now by typing `<break>` or clicking it’s new button on the editor you will be able to easily add page breaks on your exports!
23-
- Fixed: Sometimes the app would show a raw html document. It shouldn't do that anymore!
24-
- Fixed: Editing and adding a notebook used to restart the whole sidebar, it also doesn't do that anymore!
25-
- Fixed: Links are now passed to your web browser.
15+
## New in 1.3.1!
16+
17+
- You can now keep your notebook list open while editing. Available right from the settings!
18+
- Plugins! One more plugin has been added to the family!
19+
- **Highlight**: By using it just once in your document, you'll enable syntax highlighting! Just type ` <highlight>` and your code blocks will be given some style! You just need to add the language you're using like ` ```vala `
20+
- Clicking on the image button on the toolbar without anything selected now embeds the image with your document! Now you don't have to worry about moving files! You can still link images by dragging and dropping them into the editor
21+
- Changed: the New Page shortcut has been changed from `Ctrl+N` to `Ctrl+Shift+N` to avoid accidentally creating new pages when you didn't want to
22+
- Preparations for AppCenter!
2623

2724
You can also view the full [changelog here](changelog.md)
2825

changelog.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
#Changelog:
1+
# Changelog:
2+
## 1.3
3+
- Notes-Up is now faster than ever! It now uses a database as its backend and saves the preview for quickly loading
4+
- You can now rename your bookmarks! Double-click on them to rename them
5+
- Plugins! There are currently 3 plugins installed by default, and with many more to come in the future.
6+
- **Color**: You can now easily change the text color! Select it and click the new color button right from the toolbar or by typing ` <color rgb(164,0,0) [your text here]> `
7+
- **Youtube**: By typing `<youtube [your video URL]>`, you can now embed youtube videos right into your notes!
8+
- **Break**: Exporting to PDF is sometimes a pain... Now by typing `<break>` or clicking it’s new button on the editor you will be able to easily add page breaks on your exports!
9+
- Fixed: Sometimes the app would show a raw html document. It shouldn't do that anymore!
10+
- Fixed: Editing and adding a notebook used to restart the whole sidebar, it also doesn't do that anymore!
11+
- Fixed: Links are now passed to your web browser.
12+
213
## 1.2.1
314

415
- Your notes now autosave every minute if there was a change. No more excuses for lost work +Manuel del Valle ;)

data/assets/highlight.LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (c) 2006, Ivan Sagalaev
2+
All rights reserved.
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
* Neither the name of highlight.js nor the names of its contributors
12+
may be used to endorse or promote products derived from this software
13+
without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
16+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18+
DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
19+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25+

data/assets/highlight.pack.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

data/assets/solarized-light.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- Copyright (c) 2017 Felipe Escoto (https://github.com/Philip-Scott/Notes-up) -->
3+
<component type="desktop">
4+
<id>com.github.philip-scott.notes-up.desktop</id>
5+
<metadata_license>CC0-1.0</metadata_license>
6+
<project_license>GPL-3.0+</project_license>
7+
<name>Notes-Up</name>
8+
<summary>Your New Notebook</summary>
9+
<description>
10+
<p>Write beautiful notes fast and easy using Markdown</p>
11+
<p>Features include:</p>
12+
<ul>
13+
<li>Multiple notebook support</li>
14+
<li>Easy-to-use markdown editor</li>
15+
<li>Exporting to PDF</li>
16+
<li>Plugins: such as embedding Youtube videos</li>
17+
<li>And much more!</li>
18+
</ul>
19+
</description>
20+
<provides>
21+
<binary>notes-up</binary>
22+
</provides>
23+
<releases>
24+
</releases>
25+
<screenshots>
26+
<screenshot type="default">
27+
<image>https://raw.githubusercontent.com/Philip-Scott/Notes-up/master/Screenshot.png</image>
28+
</screenshot>
29+
</screenshots>
30+
<developer_name>Felipe Escoto.</developer_name>
31+
<url type="homepage">https://github.com/Philip-Scott</url>
32+
<url type="bugtracker">https://github.com/Philip-Scott/Notes-up/issues</url>
33+
<url type="help">https://github.com/Philip-Scott/Notes-up/issues</url>
34+
<update_contact>[email protected]</update_contact>
35+
<custom>
36+
<value key="x-appcenter-color-primary">#D0F3FF</value>
37+
<value key="x-appcenter-color-primary-text">#004B66</value>
38+
</custom>
39+
</component>

data/Notes.desktop renamed to data/com.github.philip-scott.notes-up.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Encoding=UTF-8
33
Name=Notes
44
Comment=Your markdown notebook
55
Exec=/usr/bin/notes-up
6-
Icon=notes
6+
Icon=com.github.philip-scott.notes-up
77
Terminal=false
88
Type=Application
99
StartupNotify=true
File renamed without changes.

deps/discount/Csio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Csreparse(Cstring *iot, char *buf, int size, int flags)
5454
{
5555
MMIOT f;
5656
___mkd_initmmiot(&f, 0);
57-
___mkd_reparse(buf, size, 0, &f, 0);
57+
___mkd_reparse(buf, size, flags, &f, 0);
5858
___mkd_emblock(&f);
5959
SUFFIX(*iot, T(f.out), S(f.out));
6060
___mkd_freemmiot(&f, 0);

0 commit comments

Comments
 (0)