如何在组织模式链接中逃避复杂的标题

时间:2013-12-06 07:41:17

标签: emacs escaping org-mode

我有一堆看似这样的日记页面:

** <2013-12-03 火 20:53> [[http://www.geek.com/science/nasa-funds-fuelless-laser-thruster-could-be-readying-for-test-launch-1573468/][NASA funds fuelless laser thruster, could be readying for test launch | Science! | Geek.com]] :euler:technical:space:


:PROPERTIES:
:ID:       c064d0ae
:END:

The biggest problem for PLT is its limited range...

我想从其他组织模式文档(例如TODO列表)链接到这些文档。通常我所做的就是点击链接,选择Org->Hyperlinks->Store link to here(GLOBAL),然后使用C-l标签功能。

但是,生成的链接不起作用,格式不同:

[[file:~/orgs/webjournals.org::*%20%5B%5Bhttp:/www.geek.com/science/nasa-funds-fuelless-laser-thruster-could-be-readying-for-test-launch-1573468/%5D%5BNASA%20funds%20fuelless%20laser%20thruster,%20could%20be%20readying%20for%20test%20launch%20|%20Science!%20|%20Geek.com%5D%5D][<2013-12-03 火 20:53> {{http://www.geek.com/science/nasa-funds-fuelless-laser-thruster-could-be-readying-for-test-launch-1573468/}{NASA funds fuelless laser thruster, could be readying for test launch | Science! | Geek.com}}]]

我怎样才能理顺呢?我尝试设置简化的文本搜索链接,如[[file:~/orgs/webjournals.org::*http:/www.geek.com/]],但没有找到任何成功。

1 个答案:

答案 0 :(得分:1)

您可以使用 C-w 剪切坏字符串并将其拉回 以下命令:

(defun yank-and-unhex ()
  (interactive)
  (insert (url-unhex-string (current-kill 0))))