如何使用组织注释文件?
我最近发现了 org-annotate-file。我想用它来注释 pdf 文档或音乐文件或我计算机上的任何其他文件,并将我的注释写入 annotations.org 文件中。我不想在 pdf 中包含注释。但我不明白“访问文件”是什么意思?它必须是 emacs 可以打开的文件吗?
但更一般地说,是否有一个包可以执行以下操作:我以 dired 模式访问一个目录,在我感兴趣的某个主题上标记一堆文件,然后通过一个命令将文件的链接发送到我的annotations.org文件(可能作为标题下的副标题,可能是目录名称),然后我可以在注释文件中写入注释。然后,通过一个命令,我应该能够访问任何文件(组织模式允许)或在外部程序中打开它。这在某些包中可能吗?
谢谢。
I recently found org-annotate-file. I would like to use it to annotate pdf documents or music files or any other files on my computer, and write my annotations in a file annotations.org. I am not looking to include annotations IN the pdf. But what I cannot figure out is what it means to "visit a file"? Does it have to be a file that emacs can open?
But more generally, is there a package that can do something like this: I visit a directory in dired mode, mark a bunch of files on some topic of my interest, and with one command I send links to the files to my annotations.org file (maybe as subheadings under a heading, which may be the directory name), and then I can write the annotations in the annotations file. Then with one command, I should be able to reach any of the files (which org-mode will allow) or open it in an external program. Is this possible in some package?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然是可以做到的。然而,我发现的似乎是 org-annotate-file.el 的实际代码
这里,似乎没有接受注释一个尚未打开的文件(访问的意思是打开的),因为注释的函数使用当前打开的文件作为名称的来源。
org-annotate-file
的当前实现是这样的:至少你可以修改它以接受任意文件(如果你提供它):
每当你执行 时,都会要求你输入文件名Mx 组织注释文件。
您还必须更改 org-annotate-file-show-section 来接受文件名或缓冲区。第一个让应该是这样的:
可以从这里开始 dired 集成,但我仍然不熟悉 dired API...
编辑:我正在 bitbucket 中创建一个分支来进行修改。我发现该实用程序非常有用,我自己也可能会使用它。我将在这里发布链接。这是: https://bitbucket.org/dsevilla/org-annotate-file/源代码
Of course, it can be done. However, it seems the actual code of
org-annotate-file.el
, that I foundhere, doesn't seem to accept annotating a file that has not been opened (visited means here opened), because the function to annotate uses the current open file as a source for the name. The current implementation of
org-annotate-file
is this:At least you could modify it to accept an arbitrary file (if you provide it):
This ask you for a file name whenever you do M-xorg-annotate-file.
You also have to change the
org-annotate-file-show-section
to accept either a file name or a buffer. The first let should be like this:dired integration can be started from here, but I'm still not familiar with the dired API...
EDIT: I'm creating a branch in bitbucket for that modifications. I find the utility very useful and might use it myself. I'll post the link here. And here it is: https://bitbucket.org/dsevilla/org-annotate-file/src