Emacs 中 dired 中的图标(在 Mac 或 Linux 上)
我希望在每个文件旁边显示一个小图标,类似于您在图形文件浏览器的“列表”或“详细信息”视图中看到的图标。有人发布了类似的问题,但唯一的答案仅适用于 Windows;我希望能够在 Linux 或 Mac 上执行此操作。
I'd like to have dired show a little icon next to each file, similar to what you'd see in "list" or "details" view on a graphical file browser. Someone posted a similar question but the only answer was for Windows only; I want to be able to do this on Linux or Mac.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我很确定悲伤的答案是“不,除非你对 dired 模式源代码进行了一些广泛的黑客攻击”。
I'm pretty sure the sad answer is "no, unless you do some extensive hacking of the dired-mode source code".
我认为“bignos”是对的,你不可能轻易做到这一点。但请查看 Dired+。它可以按类型对文件进行着色,这样您就可以获得有关您的缓冲区的一些视觉反馈。
I think "bignose" is right, you would not be able to do that easily. But check out Dired+. It can colorize files by type so you can get some visual feedback on your dired buffer.
我也希望能够做到这一点。更一般地说,我希望 GNU Emacs 支持显示 MS Windows 图标(图标图像)。我会在 Icicles (在缓冲区
*Completions*
中)和 书签+,以及Dired+,提供有关文件类型(以及关联的 Windows 应用程序)的简单反馈。唉,我还没有对 Emacs Dev 感兴趣(到目前为止)。至少我们现在一般都支持图像(例如,您可以选择在
*Completions*
中查看缩略图)。I too would like to be able to do this. More generally, I would like GNU Emacs to support display of MS Windows icons (icon images). I would use them (optionally) in Icicles (in buffer
*Completions*
) and Bookmark+, as well as in Dired+, to provide simple feedback about the file types (and associated Windows applications).Alas, I haven't been able to interest Emacs Dev (so far). At least we have image support now in general (so you can optionally see thumbnails in
*Completions*
, for example).在 Linux 和 MacOS 上,使用 dired-icon。
免责声明:我是该扩展的作者。
On Linux and MacOS, use dired-icon.
Disclaimer: I'm the author of the extension.