Skip to content

Commit

Permalink
feat: levenshtein distanced links implemented (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko authored Sep 23, 2023
1 parent 997e901 commit e9d5080
Show file tree
Hide file tree
Showing 16 changed files with 900 additions and 44 deletions.
3 changes: 2 additions & 1 deletion Notes_for_Logseq.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ Please use settings below
"keepOriginalAmountOfNewlines": true,
"haveEnexLevelResources": true,
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"logseqSettings":{
"journalNotes": false
}
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ To configure Yarle, you must create a config file. By default it looks like this
"haveEnexLevelResources": true,
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"logseqSettings":{
"journalNotes": false
},
Expand Down Expand Up @@ -204,7 +205,7 @@ The following configurational properties are available:
| ```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.
|```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
2 changes: 2 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
"haveEnexLevelResources": false,
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,

"replacementChar": "_",
"replacementCharacterMap": {
"<": "_",
Expand Down
1 change: 1 addition & 0 deletions config.logseq.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"haveEnexLevelResources": true,
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"logseqSettings":{
"journalNotes": false
},
Expand Down
1 change: 1 addition & 0 deletions config.tana.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"haveEnexLevelResources": false,
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"useLevenshteinForLinks": false,
"replacementChar": "_",
"replacementCharacterMap": {
"<": "_",
Expand Down
Loading

0 comments on commit e9d5080

Please sign in to comment.