是否有一个良好的Emacs模式显示和编辑巨大的分隔符分隔的文件? [英] Is there a good emacs mode for displaying and editing huge delimiter separated files?

查看:228
本文介绍了是否有一个良好的Emacs模式显示和编辑巨大的分隔符分隔的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找没有找到为一种模式,使编辑巨大的选项卡/逗号/冒号分隔的文件,轻松一阵子。我一直在想一个模式,确保列始终排队,就像组织模式表。我知道我可以很容易地把整个文件到一个组织模式的表,然后重新打开它时,我做的,不过这对于快速编辑获取与大文件很慢,而且是一个麻烦(也有不少世界会发生什么问题如果一个字段包含一个垂直栏)。因此,没有人知道任何一个模式或内置函数/变量,我可以使用,这样我可以得到这样

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

喜欢

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?

如果您一直在寻找,那么你肯定见过 http://emacswiki.org/emacs/CsvMode ?你不提它,或者说,为什么没有任何好处,但。

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(简单的Emacs US preadsheet)可能是一个有用的方法:

SES (Simple Emacs Spreadsheet) might be a useful approach:

<大骨节病>篇 <大骨节病>我 <大骨节病>先按g (SES) <大骨节病> RET

您可以创建一个 SES模式缓冲和粘贴制表符分隔的数据到它(这是进口机制)。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆