TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What is a good scriptable text editor

8 点作者 luchadorvader超过 9 年前
I&#x27;m looking for a good text editor that has a simple and quick scripting capability. I work a lot with text sometimes so I&#x27;ll write some one off scripts sometimes to edit big files, but other files I&#x27;ll use Sublime Text to do some manipulations. The problem is that it&#x27;s API is somewhat restrictive, like if I want a custom input without going in the command prompt then I lose access to the region that I selected. I also have been using Visual Studio Code, but it looks to be a big effort to actually write a small plugin needing stuff like NPM and non-trivial config files. If anyone has any suggestions I would love to hear them.<p>For context I use Linux.

8 条评论

im_down_w_otp超过 9 年前
Emacs. The whole thing is a bunch of running scripts, and you can manipulate all of it almost an way that you like. Add your own, muck with the ones that are there, even screw with things that are actively running.
评论 #10872254 未加载
075超过 9 年前
Maybe emacs? I know it&#x27;s not ass popular as vim, but emacs is made for being extended by elisp.
such_a_casual超过 9 年前
&gt; I&#x27;m looking for a good text editor that has a simple and quick scripting capability.<p>Vim and Emacs have neither of these things. They both pose a long and difficult barrier to entry.<p>However it sounds like you aren&#x27;t looking for simple and quick. If you are running into limitations on your current editor, then it&#x27;s time to swallow the pill and dive into one of the behemoths.<p>I don&#x27;t know of any text editor that is guaranteed to have less limitations than Sublime Text, but also has a &quot;simple and quick scripting capability&quot;.<p>I would recommend Vim as it&#x27;s main focus is as a text editor. Emacs tries to do everything, Vim just tries to edit text. Emacs also has a mode that enables Vim key bindings, so if you choose Emacs later, you won&#x27;t have to start from scratch.<p>Lastly, Emacs uses a dialect of Lisp for customization. Vim has it&#x27;s own made up language. So this may be a reason to choose Emacs over Vim.
brudgers超过 9 年前
Sed and Awk are the traditional old school tools for scripting edits of large text files. Perl is a more recent option. And there&#x27;s nothing wrong with using Python or Ruby or whatever.<p>On the Emacs versus Vim, Emacs is fatter with features by design. Vim is designed to be lighter weight so it can ship on memory constrained systems by default. The Emacs community tends to have a more substantial interest in scripting and customization and one of its features is built in tooling for writing scripts, e.g. the eLisp REPL.<p>Good luck.
z3t4超过 9 年前
Can you explain what you mean with &quot;scripting capability&quot;?<p>I&#x27;m currently developing a native editor in JavaScript (using chromium) where it&#x27;s very easy to write a &quot;plug-in&quot; in JavaScript.
volaski超过 9 年前
vim?
评论 #10869332 未加载
评论 #10867009 未加载
_RPM超过 9 年前
Vim.
hex13超过 9 年前
maybe Atom?
评论 #10870084 未加载