treemacs有点复杂,看不太懂, 比如有一个字符串列表(或者是文件名列表)
(setq custom-str-list '("foo.c" "bar.c"))
怎样创建一个treemacs项目并添加到其中,在foo.c上回车的时候怎样获得foo.c项?
treemacs有点复杂,看不太懂, 比如有一个字符串列表(或者是文件名列表)
(setq custom-str-list '("foo.c" "bar.c"))
怎样创建一个treemacs项目并添加到其中,在foo.c上回车的时候怎样获得foo.c项?
你需要这个?treemacs-define-expandable-node
?
有没有用法示例? 我用C-h k 回车看帮助,找到一个函数,这样写了,没看到调用
(defun test-open-my-file (arg)
(message "test-open-my-file:%s" arg))
(treemacs-define-RET-action 'file-node-open #'test-open-my-tag)
参考下:
treemacs-define的时候,设置 :ret-action
好的,我看看
老哥在研究 org mode 的 tag-list 吗😉
是啊,有空就研究下