1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Various tweaks

This commit is contained in:
Laurent Cozic 2017-07-28 17:57:01 +00:00
parent a4d3dac8e7
commit f228b48365
18 changed files with 202 additions and 22 deletions

BIN
Assets/Adresse.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

View File

@ -60,6 +60,7 @@ function getCommands() {
let CommandClass = require('./' + path);
let cmd = new CommandClass();
if (!cmd.enabled()) return;
if (cmd.hidden()) return;
output.push(cmd);
});
return output;

3
CliClient/build-doc.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
set -e
./build.sh && NODE_PATH=build node build/build-doc.js

View File

@ -34,7 +34,7 @@ const syncTargetId_ = Setting.SYNC_TARGET_MEMORY;
//const syncTargetId_ = Setting.SYNC_TARGET_ONEDRIVE;
const syncDir = __dirname + '/../tests/sync';
const sleepTime = syncTargetId_ == Setting.SYNC_TARGET_FILESYSTEM ? 1001 : 200;
const sleepTime = syncTargetId_ == Setting.SYNC_TARGET_FILESYSTEM ? 1001 : 400;
const logger = new Logger();
logger.addTarget('file', { path: logDir + '/log.txt' });

175
README.md
View File

@ -1,3 +1,174 @@
# joplin
# Joplin
test
Joplin is a note taking and todo application, which can handle a large number of notes organised into notebooks. The notes are searchable, can be copied, tagged and modified with your own text editor. The Android application supports markdown rendering.
The notes can be synchronised with various targets including the file system (for example with a network directory) or with Microsoft OneDrive. When synchronising the notes, notebooks, tags and other metadata are saved to plain text files which can be easily inspected, backed up and moved around.
Notes exported from Evenotes via .enex files can be imported into Joplin, including the formatted content (which is converted to markdown), resources (images, attachments, etc.) and complete metadata (geolocation, updated time, created time, etc.).
# Install
An Android app and a command line interface are currently available:
<a href='https://play.google.com/store/apps/details?id=net.cozic.joplin&utm_source=GitHub&utm_campaign=README&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png'/></a>
TODO
# Features
- Mobile and command line applications.
- Support notes, todos, tags and notebooks.
- Offline first, so the entire data is always available on the device.
- Ability to synchronise with multiple targets, including the file system and OneDrive (Dropbox is planned).
- Synchronises to a plain text format, which can be easily manipulated, backed up, or exported to a different format.
- Plain text notes, which are rendered as markdown in the mobile application.
- Tag support (currently, tags can be imported from Evernote and modified in the CLI application, but not yet in the mobile one)
- File attachment support (likewise, all file attachements can be imported from Evernote but currently cannot be manually added to a note)
- Search functionality.
- Geolocation support.
- Supports multiple languages.
# Localisation
The applications are currently available in English and French. If you would like to contribute a translation it is quite straightforward, please follow these steps:
- Download Poedit, the translation editor, and install it: https://poedit.net/
- Download the file to be translated: https://raw.githubusercontent.com/laurent22/joplin/master/CliClient/locales/joplin.pot
- In Poedit, open this .pot file, go into the Catalog menu and click Configuration. Change "Country" and "Language" to your own country and language.
- From then you can translate the file. Once it's done, please send the file to [this address](https://raw.githubusercontent.com/laurent22/joplin/master/Assets/Adresse.png).
# Roadmap
- All clients: End to end encryption.
- All clients: Support for Dropbox synchronisation.
- Mobile: Compile Windows app?
- Mobile: Support for dark theme / light theme.
- Mobile: Link for non-image resources.
- Mobile: Handle tags.
- Mobile: Markdown edition support
- CLI: Option to open conflicts with diff program.
- CLI: Link to open resources (images, attached files, etc).
- CLI: Improve autocompletion.
# Command line usage
cat <title>
Displays the given note.
-v, --verbose Displays the complete information about note.
config [name] [value]
Gets or sets a config value. If [value] is not provided, it will show
the value of [name]. If neither [name] nor [value] is provided, it
will list the current configuration.
-v, --verbose Also displays hidden config variables.
cp <pattern> [notebook]
Duplicates the notes matching <pattern> to [notebook]. If no notebook
is specified the note is duplicated in the current notebook.
edit <title>
Edit note.
geoloc <title>
Displays a geolocation URL for the note.
import-enex <file> [notebook]
Imports an Evernote notebook file (.enex file).
-f, --force Do not ask for confirmation.
--fuzzy-matching For debugging purposes. Do not use.
ls [pattern]
Displays the notes in [notebook]. Use `ls /` to display the list of
notebooks.
-n, --limit <num> Displays only the first top <num> notes.
-s, --sort <field> Sorts the item by <field> (eg. title,
updated_time, created_time).
-r, --reverse Reverses the sorting order.
-t, --type <type> Displays only the items of the specific
type(s). Can be `n` for notes, `t` for todos,
or `nt` for notes and todos (eg. `-tt` would
display only the todos, while `-ttd` would
display notes and todos.
-f, --format <format> Either "text" or "json"
-l, --long Use long list format. Format is ID, NOTE_COUNT
(for notebook), DATE, TODO_CHECKED (for todos),
TITLE
mkbook <notebook>
Creates a new notebook.
mknote <note>
Creates a new note.
mv <pattern> <destination>
Moves the notes matching <pattern> to <destination>. If <pattern> is a
note, it will be moved to the notebook <destination>. If <pattern> is
a notebook, it will be renamed to <destination>.
rm <pattern>
Deletes the items matching <pattern>.
-f, --force Deletes the items without asking for confirmation.
-r, --recursive Deletes a notebook.
search <pattern> [notebook]
Searches for the given <pattern> in all the notes.
set <note> <name> [value]
Sets the property <name> of the given <note> to the given [value].
status
Displays summary about the notes and notebooks.
sync
Synchronises with remote storage.
--target <target> Sync to provided target (defaults to sync.target
config value)
--random-failures For debugging purposes. Do not use.
tag <command> [tag] [note]
<command> can be "add", "remove" or "list" to assign or remove [tag]
from [note], or to list the notes associated with [tag]. The command
`tag list` can be used to list all the tags.
todo <action> <pattern>
<action> can either be "toggle" or "clear". Use "toggle" to toggle the
given todo between completed and uncompleted state (If the target is a
regular note it will be converted to a todo). Use "clear" to convert
the todo back to a regular note.
toggle <pattern>
Toggles the given todo between completed and uncompleted. If the
target is not a single note it will be converted to a todo.
use <notebook>
Switches to [notebook] - all further operations will happen within
this notebook.
version
Displays version information

View File

@ -90,8 +90,8 @@ android {
applicationId "net.cozic.joplin"
minSdkVersion 16
targetSdkVersion 22
versionCode 35
versionName "0.9.22"
versionCode 36
versionName "0.9.23"
ndk {
abiFilters "armeabi-v7a", "x86"
}

View File

@ -174,27 +174,31 @@ class SideMenuContentComponent extends Component {
// using padding. So instead creating blank elements for padding bottom and top.
items.push(<View style={{ height: globalStyle.marginTop }} key='bottom_top_hack'/>);
for (let i = 0; i < this.props.folders.length; i++) {
let folder = this.props.folders[i];
items.push(this.folderItem(folder, this.props.selectedFolderId == folder.id && this.props.notesParentType == 'Folder'));
if (this.props.folders.length) {
for (let i = 0; i < this.props.folders.length; i++) {
let folder = this.props.folders[i];
items.push(this.folderItem(folder, this.props.selectedFolderId == folder.id && this.props.notesParentType == 'Folder'));
}
if (items.length) items.push(this.makeDivider('divider_1'));
}
if (items.length) items.push(this.makeDivider('divider_1'));
if (this.props.tags.length) {
let tagItems = [];
for (let i = 0; i < this.props.tags.length; i++) {
const tag = this.props.tags[i];
tagItems.push(this.tagItem(tag, this.props.selectedTagId == tag.id && this.props.notesParentType == 'Tag'));
}
let tagItems = [];
for (let i = 0; i < this.props.tags.length; i++) {
const tag = this.props.tags[i];
tagItems.push(this.tagItem(tag, this.props.selectedTagId == tag.id && this.props.notesParentType == 'Tag'));
items.push(
<View style={styles.tagItemList} key="tag_items">
{tagItems}
</View>
);
if (tagItems.length) items.push(this.makeDivider('divider_2'));
}
items.push(
<View style={styles.tagItemList} key="tag_items">
{tagItems}
</View>
);
if (items.length) items.push(this.makeDivider('divider_2'));
let lines = Synchronizer.reportToLines(this.props.syncReport);
while (lines.length < 10) lines.push(''); // Add blank lines so that height of report text is fixed and doesn't affect scrolling
const syncReportText = lines.join("\n");

View File

@ -304,7 +304,8 @@ Setting.metadata_ = {
'locale': { value: defaultLocale(), type: Setting.TYPE_STRING, isEnum: true, public: true, label: () => _('Language'), options: () => {
return supportedLocalesToLanguages();
}},
'todoFilter': { value: 'all', type: Setting.TYPE_STRING, isEnum: true, public: true, appTypes: ['mobile'], label: () => _('Todo filter'), options: () => ({
// Not used for now:
'todoFilter': { value: 'all', type: Setting.TYPE_STRING, isEnum: true, public: false, appTypes: ['mobile'], label: () => _('Todo filter'), options: () => ({
all: _('Show all'),
recent: _('Non-completed and recently completed ones'),
nonCompleted: _('Non-completed ones only'),