有没有好的emacs模式显示和编辑巨大的分隔符分隔文件? [英] Is there a good emacs mode for displaying and editing huge delimiter separated files?
问题描述
我一直在寻找一段时间,一个模式,使编辑巨大的标签/逗号/冒号分隔文件容易。我一直想要一个模式,确保列总是排队,就像组织模式表。我知道我可以很容易地将整个文件转换为一个组织模式表,然后在完成后将其还原,但是这会变得非常慢的大文件,并且是一个麻烦的快速编辑(还有发生的事情的问题如果字段包含垂直条)。所以没有人知道一个模式或内置的函数/变量,我可以使用,以便我可以得到一个文件
col1\tcol2 \tcol3
very long column1\tcol2\tcol3
显示为
col1 col2 col3
很长column1 col2 col3
?
也许你可以告诉我们你已经找到了什么并拒绝了? p>
如果您一直在搜索,那么您一定会看到 http ://emacswiki.org/emacs/CsvMode ?
SES(简单Emacs电子表格)可能是一个有用的方法:
Ch i g (ses)
RET
您可以创建一个 ses-mode
数据到它(这是导入机制)。
这可能比你以后更麻烦,但是,我不知道它会与 文件。
I've been searching without finding for a while for a mode that makes editing huge tab/comma/colon-separated files easy. I've been wanting a mode that ensures that columns always line up, just like org-mode tables. I know I can easily turn the whole file into an org-mode table and then turn it back when I'm done, but that gets really slow with huge files, and is a hassle for quick edits (there's also the problem of what happens if a field contains a vertical bar). So does anyone know of either a mode or a built-in function/variable I can use so that I can get a file like
col1\tcol2\tcol3
very long column1\tcol2\tcol3
displayed like
col1 col2 col3
very long column1 col2 col3
? (perhaps with some color lining the separator)
Perhaps you could tell us what you've already found and rejected?
If you've been searching, then you must surely have seen http://emacswiki.org/emacs/CsvMode ? You don't mention it, or say why it wasn't any good, though.
SES (Simple Emacs Spreadsheet) might be a useful approach:
C-hig (ses)
RET
You can create a ses-mode
buffer and yank tab-delimited data into it (that's the import mechanism).
It's probably more hassle than you were after, though, and I'm not sure how well it will perform with "huge" files.
这篇关于有没有好的emacs模式显示和编辑巨大的分隔符分隔文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!