mirror of
https://github.com/lizard-heart/obsidian-to-omnifocus.git
synced 2026-07-22 07:30:26 +00:00
replace spaces in titles with %20F
This commit is contained in:
parent
f50f7650c1
commit
177af7f8be
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ export default class TasksToOmnifocus extends Plugin {
|
|||
let taskName = task.replace("- [ ] ", "");
|
||||
let taskNameEncoded = encodeURIComponent(taskName);
|
||||
let noteURL = view.file.path.replace(/ /g, "%20").replace(/\//g, "%2F");
|
||||
let vaultName = app.vault.getName();
|
||||
let vaultName = app.vault.getName().replace(/\s/g, "%20");
|
||||
let taskNoteEncoded = encodeURIComponent("obsidian://open?=" + vaultName + "&file=" + noteURL);
|
||||
|
||||
window.open(
|
||||
|
|
|
|||
Loading…
Reference in a new issue