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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Modern terminal-based text editor

496 点作者 tanrax超过 7 年前

40 条评论

danmaz74超过 7 年前
I would suggest that, to replace nano, the #1 feature missing is: always show the most used keybindings at the bottom, just like nano does. IMHO the top feature of nano is that you don't need to remember commands and keybindings at all, the most important things you need are always reminded to you.
评论 #15364632 未加载
Lazare超过 7 年前
This looks like it&#x27;s aimed at being a better nano, not a better vim.<p>I like it a lot; I wouldn&#x27;t be sorry to see it take off and get included in OS X, major linux distros, etc. Because right now if you don&#x27;t want to use vi&#x2F;vim, your only reliably available option is nano, and nano is a <i>terrible</i> editor.
评论 #15361801 未加载
评论 #15362519 未加载
评论 #15362137 未加载
评论 #15361891 未加载
评论 #15361869 未加载
评论 #15361327 未加载
评论 #15361174 未加载
评论 #15363689 未加载
评论 #15361778 未加载
评论 #15361075 未加载
评论 #15362076 未加载
评论 #15362240 未加载
评论 #15364079 未加载
评论 #15365644 未加载
评论 #15363188 未加载
ColanR超过 7 年前
From the github repo:<p>&gt; As the name indicates, micro aims to be somewhat of a successor to the nano editor by being easy to install and use in a pinch, but micro also aims to be enjoyable to use full time, whether you work in the terminal because you prefer it (like me), or because you need to (over ssh).
评论 #15361425 未加载
评论 #15362019 未加载
fouc超过 7 年前
Has anyone ever thought that the MS-DOS editor was one of the best CLI editors for complete beginners? I&#x27;ve always been disappointed that *nixs never ended up with something similar to edit. I suspected that irssi replaced ircii in a big way due to sane defaults, ease of configuration and a dash of color and I wondered if nano could&#x27;ve been replaced by similar principles.
评论 #15364679 未加载
评论 #15384790 未加载
评论 #15364359 未加载
ssijak超过 7 年前
&quot;Micro&#x27;s number one feature is being easy to install (it&#x27;s just a static binary with no dependencies) and easy to use.&quot;<p>Ok after reading that one sentence I just closed the page. Why would I want an editor whose number one feature is &quot;easy to install&quot;? Like any other editor is hard to install by the way.
评论 #15363671 未加载
评论 #15363813 未加载
评论 #15363852 未加载
JasonSage超过 7 年前
I wonder what the target audience is for an editor like this is.<p>Most folks who use Vim&#x2F;Emacs seem loyal to their editor and are not in much need of alternatives. Those who don&#x27;t have plenty of graphical ones—Sublime, VS, Atom.
评论 #15362157 未加载
评论 #15360874 未加载
评论 #15360893 未加载
评论 #15361215 未加载
评论 #15362533 未加载
评论 #15376551 未加载
评论 #15360888 未加载
评论 #15363136 未加载
评论 #15362523 未加载
评论 #15362860 未加载
评论 #15364703 未加载
评论 #15361480 未加载
matt_wulfeck超过 7 年前
We need a better cross-platform <i>terminal</i>! Not editor. The current state of cross-platform terminals is fairly poor. Other than Alacritty[0] there hasn&#x27;t really been any new innovation here.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;jwilm&#x2F;alacritty" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jwilm&#x2F;alacritty</a>
评论 #15361423 未加载
评论 #15361366 未加载
评论 #15363692 未加载
评论 #15361390 未加载
eecc超过 7 年前
I understand how rewriting the wheel to thoroughly learn a new language can be exciting, but please avoid the “betterism”. No, just because you’ve rewritten something in go doesn’t mean it’s better, it’s just a case of building your little space where you can claim cred.
评论 #15364090 未加载
antjanus超过 7 年前
Random request but I&#x27;d love to see a video of someone using it. That&#x27;s what sold me on VIM and on Emacs: just seeing someone power use it and love it.
评论 #15361175 未加载
评论 #15361892 未加载
gkya超过 7 年前
The source code for this is a really nice read, I just read the whole cmd&#x2F;micro&#x2F;micro.go like some prose. But one thing jumped at me:<p><pre><code> if err != nil &amp;&amp; !strings.HasPrefix(err.Error(), &quot;function does not exist&quot;) </code></pre> I wonder why most modern languages don&#x27;t provide symbols a la Lisp or keywords a la Ruby, which would allow the above comparison to be a pointer comparison instead of a stribg one.<p>Edit: add the missing &quot;don&#x27;t&quot; before &quot;provide symbols&quot;.
评论 #15364298 未加载
评论 #15371310 未加载
评论 #15364236 未加载
type0超过 7 年前
It&#x27;s a great editor,not everyone needs the superpowers of vim, the best part is that it&#x27;s very easy to customize since Go is a very readable language (not on the level of Python but still).
elzi超过 7 年前
One thing micro does very well is scrolling like GUI editors. It doesn&#x27;t move the cursor with the scroll, and it will &#x27;snap&#x27; back to where the cursor was if you begin to type. Always hated how other terminal based editors move the active cursors down&#x2F;up on scroll.
adamy超过 7 年前
Extremely good text editor. Highly recommend. Other people think it&#x27;s vim and then they think I&#x27;m a better programmer than I actually am.
评论 #15362280 未加载
tombh超过 7 年前
I always mention <a href="https:&#x2F;&#x2F;github.com&#x2F;tombh&#x2F;novim-mode" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tombh&#x2F;novim-mode</a> when this topic of &#x27;normal&#x27; terminal-based editors come up.<p>I very much agree with the sentiment of Micro here - I&#x27;m very much of the Sublime&#x2F;Atom ilk, but I also love living in tmux and my editor taking up minimal resources. So in the same way that you can introduce `vim-mode` into browsers (a la Vimium), you can introduce conventional `non-vim-mode` into Vim. Vim already has so much support for plugins, perhaps unprecedently so, then we can take advantage of that without creating a whole new editor.
chaoticmass超过 7 年前
One small missing feature I noticed is when I have my cursor over a parens (or bracket, or brace) it does not highlight the matching parens.
girst超过 7 年前
So...the look of Vim&#x2F;Emacs without their advanced editing features?<p>(sorry for being so negative; this page really could benefit from a demo video)
评论 #15360915 未加载
IncRnd超过 7 年前
I have it installed, and it&#x27;s fine for quick file edits.<p>It&#x27;s also been mentioned a few times here on hn.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12388654" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12388654</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14427473" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14427473</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13735395" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13735395</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13636239" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13636239</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13633578" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13633578</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13300940" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13300940</a>
jdlyga超过 7 年前
Micro is very good. I&#x27;ve been using it for a few months as my default Git commit editor, and it works wonderfully.
douchescript超过 7 年前
Nice! But hey, rebinding control-z to redo in the examples? How’s that for terminal convention compliance?
madmax108超过 7 年前
We keep hearing about network effects in social media networks, but as an Engg who works with multiple systems (personal, work, EC2, EMR, etc etc.) I do feel that when it comes to text editing tools as well, there is a network effect that comes into play.<p>The only reason for me to switch to a different editor is if a majority of the systems I use have it preinstalled. Which means barebones vi&#x2F;vim is still my best bet. My personal .vimrc is modified for my daily workflow, but doesn&#x27;t stray too far away from barebones vim so that I always feel &quot;at home&quot; no matter which system I am on.<p>I&#x27;ve tried moving away to different editors, but find myself comign back to vim fairly quickly just because it is available everywhere!
tomxor超过 7 年前
Looks interesting. Linux way seems to be snap or source... but snaps give this error after install:<p><pre><code> micro snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks </code></pre> I&#x27;ve never used snaps before anyone know why this is? I used the classic mode like it says in the readme<p>[edit]<p>... nevermind, apparently snap just commonly does this with everything, great first experience with snap, back to apt.
评论 #15391880 未加载
cdevs超过 7 年前
For teaching a noob how to edit in commandline nano is always a go to for me. I often use vim if I want to show someone some code and don&#x27;t want to look like a idiot fumbling for a mouse. If I&#x27;m on a long stretch of programming I prefer sublime for awesome multicursor functionality and prettier text than a terminal. Haven&#x27;t tried this micro but if the config is easier to learn than the rest then that&#x27;s a obvious plus.
keithnz超过 7 年前
This is nice. It&#x27;s not going to replace Vim for me, but it&#x27;s definitely a nice quick editor, being cross platform is great.
mamcx超过 7 年前
This look great, but miss something I like about nano and the old freepascal editor. It not show the menu!<p>Remember the keybindings is anoyning when you use several tools, or when you are triying to fix something and now need to look at the help to remember what to do. That is the most infurating thing about vim (ie: How the hell I close this stupid thing!)
turboladen超过 7 年前
What exactly does “modern” mean here?
评论 #15362877 未加载
评论 #15362939 未加载
fithisux超过 7 年前
It saved the day when browsing large files. I recommended it to my co-workers. It is written in Golang. Big plus.<p>Just a recommendation, csvlint, which is another Golang tool also is very useful.
jokoon超过 7 年前
Can&#x27;t terminals capture mouse clicks? Does it work over SSH?<p>I know it&#x27;s the main feature that bothers me.<p>I also wonder if you can have all highlighting features an editor like ST3 has.
评论 #15364482 未加载
xmrsilentx超过 7 年前
I still haven&#x27;t paid for sublime text...
stevedonovan超过 7 年前
Similar idea, but done in C: Hisham &#x27;htop&#x27; Mohammed&#x27;s dit editor. Use it for all my quick-in-out edits.
sneak超过 7 年前
&gt; Common Keybindings<p>&gt; Micro&#x27;s keybindings are what you would expect from a simple-to-use editor.<p>Formed one idea.<p>then,<p>from the FAQ:<p>&gt; Does micro support Vi keybindings?<p>&gt; No, if you want to use Vim then use Vim.<p>Well then.
mapcars超过 7 年前
&gt;modern<p>&gt;terminal-based<p>Such a funny oxymoron.
CrowderSoup超过 7 年前
This certainly looks cool. I usually use vim on the command line but that&#x27;s only for quick and dirty editing.
ajarmst超过 7 年前
Or just use tmux with whatever non-windowed terminal editor you already use.
WillyNourson超过 7 年前
Wow the Snap install is &gt; 80MB ..; for a console based text editor...
masukomi超过 7 年前
can someone explain to me how this has mouse support? I thought mouse selection &#x2F; click information simply wasn&#x27;t passed from terminal emulators to the apps running within them. I get how it works in something like MacVim but how is it that this has it but AFAIK vim and emacs haven&#x27;t been able to add mouse support in the terminal in 20+ years of development even though both support it in the gui versions?
评论 #15369146 未加载
评论 #15369150 未加载
kylek超过 7 年前
Sort-of-offtopic but this irks me<p>&gt;&gt;easy to install (it&#x27;s just a static binary with no dependencies)<p>For some definition of &quot;install&quot;. No deb&#x2F;rpm&#x2F;snap
评论 #15361068 未加载
评论 #15361106 未加载
评论 #15361290 未加载
评论 #15364065 未加载
feiss超过 7 年前
Stop complaining it doesn&#x27;t look like a replacement for Vim&#x2F;Emacs:<p>&gt; <i>As the name indicates, micro aims to be somewhat of a successor to the nano editor by being easy to install and use in a pinch</i> <a href="https:&#x2F;&#x2F;micro-editor.github.io&#x2F;about.html" rel="nofollow">https:&#x2F;&#x2F;micro-editor.github.io&#x2F;about.html</a><p>It it pretty neat. Congrats to the author :+1:
评论 #15361138 未加载
gaius超过 7 年前
ee is the best minimalist text editor.
评论 #15361566 未加载
kutkloon7超过 7 年前
&quot;Does micro support Vi keybindings?<p>No, if you want to use Vim then use Vim.&quot;<p>Kthnksbye
fiokoden超过 7 年前
A modern cli editor for linux is sorely neede and most welcome.<p>The old editors are both powerful and arcane.