Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Nov 24, 2024
1 parent eb3d378 commit f301f7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tidgi-external-attachments/plugin.info
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"list": "readme settings tree",
"plugin-type": "plugin",
"author": "LinOnetwo",
"version": "1.2.1"
"version": "1.3.0"
}
4 changes: 3 additions & 1 deletion src/tidgi-external-attachments/settings-en-GB-desc.tid
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ By default, after dragging a large file into the TidGi App, the 'reference tiddl

You can choose to use the "relative path" to solve this problem. There is a configuration "Use absolute paths for attachments ''outside'' the Wiki folder", by default is on, it means that drag-in the file on your desktop will use a absolute path reference, but also when drag-in a files in your wiki folder, it will use a relative path reference.

So you can firstly create a `files` folder in the Wiki folder, and then drag the PDF into that folder, and then drag the PDF in that folder into the TidGi App, imported as a "reference tiddler". Then even you open the Wiki on a different computer, the file in that in-Wiki folder can still be opened. Of course, you have to keep another configuration "use absolute path reference file ''within'' the Wiki folder (not recommended)" off, it also said that this config is "not recommended to open", it's only for special circumstances.
So you can firstly create a `files` folder in the Wiki folder, and then drag the PDF into that folder, and then drag the PDF in that folder into the TidGi App, imported as a "reference tiddler". Then even you open the Wiki on a different computer, the file in that in-Wiki folder can still be opened. Of course, you have to keep another configuration "use absolute path reference file ''within'' the Wiki folder (not recommended)" off, it also said that this config is "not recommended to open", it's only for special circumstances.

If you check "Automatically move imported files to the Wiki folder", then at the moment when the file is dragged into TidGi, it will automatically move the file to the Wiki folder, so you don't need to move the file manually. However, if you cancel the import at this time, the file will not be returned to its original location, you need to manually handle the moved file.
4 changes: 3 additions & 1 deletion src/tidgi-external-attachments/settings-zh-Hans-desc.tid
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ title: $:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans-desc

你可以选择使用「相对路径」来解决这个问题。上面有个配置「为 Wiki 文件夹''外''的附件使用绝对路径」,默认是开启的,它的意思是你桌面上的文件它会用绝对路径引用,而 Wiki 文件夹里的文件它会用相对路径引用。

所以你可以先在 Wiki 文件夹里创建一个 `files` 文件夹,然后先把 PDF 拖进那个文件夹,再把那个文件夹里的 PDF 拖进太记 App 里,作为「引用条目」导入。这样你换了台电脑打开 Wiki,之前桌面上的文件打不开,但放在 Wiki 文件夹里任何文件夹里的文件还是可以打开的。当然,你得保持另一个配置「使用绝对路径引用 Wiki 文件夹''内''的文件(不推荐开启)」是关闭的,它也说了自己「不推荐开启」,仅供特殊情况使用。
所以你可以先在 Wiki 文件夹里创建一个 `files` 文件夹,然后先把 PDF 拖进那个文件夹,再把那个文件夹里的 PDF 拖进太记 App 里,作为「引用条目」导入。这样你换了台电脑打开 Wiki,之前桌面上的文件打不开,但放在 Wiki 文件夹里任何文件夹里的文件还是可以打开的。当然,你得保持另一个配置「使用绝对路径引用 Wiki 文件夹''内''的文件(不推荐开启)」是关闭的,它也说了自己「不推荐开启」,仅供特殊情况使用。

如果勾选了「自动将拖入的文件移动到 Wiki 文件夹内」,则在文件拖入太微的那一瞬间,就会自动将文件移动到 Wiki 文件夹内,这样你就不用手动移动文件了。不过注意的是,如果这时候取消导入,文件也不会被放回原处,你需要手动处理一下移过去的文件。

0 comments on commit f301f7d

Please sign in to comment.