Skip to content

Commit

Permalink
Feat: trim starting tabs (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko authored Jan 6, 2024
1 parent 2180485 commit c3a7d75
Show file tree
Hide file tree
Showing 13 changed files with 99 additions and 40 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ To configure Yarle, you must create a config file. By default it looks like this
"keepMDCharactersOfENNotes": false,
"keepOriginalAmountOfNewlines": false,
"addExtensionToInternalLinks": true,
"trimStartingTabs": false,
"nestedTags": {
"separatorInEN": "_",
"replaceSeparatorWith": "/",
Expand Down Expand Up @@ -204,6 +205,7 @@ The following configurational properties are available:
| ```logseqSettings````{...}` | settings for Logseq output, currently ```journalNotes``` property is supported, if it is set to `true`, then the notes will be converted to be recognizable by Logseq as Journal notes, the notes will be named by their creation date and they will be collected under `journal` folder. If it is `false`, then they will be converted to be `Pages` (e.g. simple notes, collected in `pages` folder).
| ```taskOutputFormat``` | `ObsidianMD` or `StandardMD` | Output format of Evernote v10+ tasks. ObsidianMD will connvert tasks to match with Obsidian Tasks plugin's requirements. StandardMD will create plain tasks, loosing many features like reminders or due dates.
| ```obsidianTaskTag``` | string | a tag to put to a task converted from Evernote v10+ tasks. Optional by Obsidian Tasks plugin, pls check the details there.
| ```trimStartingTabs``` | true or false | Removes the tab characters from the beginning of every line in a note. It is meaningful, because Obsidian recognizes tabs as codeblocks by default and blocks recognition of links (for instance) in the line
|```useUniqueUnknownFileNames``` | boolean | generates a couple of random characters at the end of the resource file names if the exact name cannot be recognised. For instance: unknown_filename-d2fd86c3.pdf
|```useLevenshteinForLinks```| boolean| it applies the link to the note with the filename that has the closest Levenshtein distance to the text of the link
Metadata settings can be set via the template.
Expand Down
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"plainTextNotesOnly": false,
"skipLocation": false,
"skipCreationTime": false,
"trimStartingTabs": false,
"skipUpdateTime": false,
"skipSourceUrl": false,
"skipWebClips": false,
Expand Down
1 change: 1 addition & 0 deletions config.logseq.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"skipLocation": true,
"skipCreationTime": false,
"trimStartingTabs": false,
"dateFormat": "YYYY-MM-DD",
"skipUpdateTime": true,
"skipSourceUrl": true,
Expand Down
1 change: 1 addition & 0 deletions config.tana.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"plainTextNotesOnly": false,
"skipLocation": false,
"skipCreationTime": false,
"trimStartingTabs": false,
"skipUpdateTime": false,
"skipSourceUrl": false,
"skipWebClips": false,
Expand Down
58 changes: 19 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/YarleOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface YarleOptions {
skipTags?: boolean;
useHashTags?: boolean;
outputFormat?: OutputFormat;
trimStartingTabs?: boolean;
logseqSettings?: {
journalNotes: boolean,
};
Expand Down
Loading

0 comments on commit c3a7d75

Please sign in to comment.