11 ms·
Kod is a new Node.js scriptable code editor for OSX
- jrockway 16y agoHere's what I don't get about tabs and the phrase "programmer's text editor" -- what programmer only has 8 files open at once? Looking at ibuffer, I have 92 buffers open in Emacs right now. What would that look like with tabs?
- Swizec 16y agoManagable. To expand on that: I really like the notion of tabs in text editors. I like having a quick and visual represantation of how many files I'm working on. It's also very easy to memorize where a certain file is spatially. But then I'm a very visual person, if I can only see one file at once without knowing all the open files at a glance, I go absolutely nutters.
- gcr 16y agoMy observations: Most people in word have 1-2 documents open at once. Most people in text editors like gedit, kate, eclipse, VS have maybe 10 or 20 tabs But most emacs users have at least 80 or 90 buffers open! It's an interesting phenomena that I haven't seen elsewhere. Why is this? Are tabs too much overhead or does emacs have really good buffer management? Not a criticism, I'm slowly picking up some emacs after 2 years of vi, and I'd like to understand more of the nuances.
- dedward 16y agoThere's a selection bias at work - emacs. I haven't met many people who casually use emacs (other than those trying it out for the firs time, or giving it another shot, (or another, or another)) For those who really GET emacs, and think in emacs, it becomes their entire workflow - as they can automate everything from emacs, incrementally. Those guys that work with 80 or 90 buffers open didn't start out that way - they grew over the years to working that way by tweaking more and more functionality to bend it to their will. You can extend lots of editors - but there's something about emacs and it's lisp nature that lends itself to this kind of developer.
- szopa 16y agoIt's because Emacs is one of the few editors where you can actually manage 90 and more buffers -- thanks to the fact that you can refer to them by name.
- julian37 16y agoExactly. To switch to a different buffer I don't pick it from a list, I just enter its name. Actually, thanks to iswitch, I only start typing a few characters that are unique to the buffer name. It's an incredably fast way of flicking between different buffers and it scales very well to a large number of files. Also, hippie-expand will expand to stuff contained in open buffers.
- riffraff 16y agoI believe you may want to check with java programmers close to you. When using eclipse I usually have 30-60 files open, probably for the same reason emacs users have them: it's very easy, has little overhead and accessing the working set is faster this way. The reason it does not happen with gedit & kate is that tab-based interface fall into uselessness with too many tabs, if they do not provide alternative methods of navigating them than "click on the right one". IMO, of course.
- iuguy 16y agoThat's because in many respects Emacs isn't so much an editor as an operating environment. You can do pretty much anything from/in Emacs if you're so inclined. If you know Emacs' lisp well enough you don't ever need to leave. Heck, Emacs can even make Coffee (http://www.emacswiki.org/emacs/CoffeeMode http://www.emacswiki.org/emacs/CoffeeMode). To view Emacs as an editor, while technically accurate is not necessarily a fair comparison because it does so much more.
- Detrus 16y agoTabs are one of those design decisions where everyone else is doing it, so it must be smart. I don't bother with tabs myself, most of my projects are small enough that I can find the files in the file list on the side in TextMate, Eclipse, etc.. I think a smarter solution would be to put recently accessed files in that file list on the side, vertically.
- petercooper 16y agoMuch the same as it does in TextMate, probably. As many tabs as can realistically be identified plus an extra drop down menu with all of the rest. (But I use the project view anyway, because I also see tabs as pointless, and most other developers I know rely on things like PeepOpen or Cmd+T's file finder.)
- foljs 16y agoIt just seems that a) you're not doing a very good job at staying focused b) your editor doesn't help you much managing all this chaos
- frank06 16y agoLooks good. But I don't really care if I can style the editor with CSS3. Concretely, why should I scrap my current code editor and start using Kod? Is it somehow targeted to Node.js devs; how is that better than Cloud9?
- samratjp 16y agoIt's built using Node.js fyi.
- technoweenie 16y agoI don't think it's a client-side in-browser editor: "Written from scratch with modern OS X 10.6 APIs providing maximum OS integration while avoiding reinvention of the wheel." Though CSS styling and Node scripting leads me to believe it's using some v8/browser stuff.
- rasmusfabbe 16y agoNo browser stuff and Node.js is running in an isolated process. CSS is simply the "language" in which you define the looks of the editor and has nothing to do with web browsers or html.
- szopa 16y agoAre you the author of Kod (that's what some of your comments suggest)? If yes, do you have a roadmap? Do you want to make it open source? I would be pretty excited to try it, out even if it was in scary-alpha state.
- Tobu 16y agoI stalked the website's author a little bit: - rsms on Github, twitter, flickr, facebook… - http://hunch.se/ http://hunch.se/ And this rasmusfabbe is developping Kod: - http://www.youtube.com/watch?v=jHUp3sdKYJw http://www.youtube.com/watch?v=jHUp3sdKYJw (a cool idea on grouping documents by Levenstein distance) I do wish people would get used to (dis)claiming when they have a stake in some product they comment on.
- micaelwidell 16y agoFinally some potential competition for textmate.
- dedward 16y agoI hear this more and more lately - and sure, competition would be good.. but, what's wrong with textmate at this point? I bought a few copies a few years ago, and I've been using them ever since, lots of extensions, still nice and light, still awesome to use... I dont' find myself sitting around thinking "Man I wish this guy would hurry up and bring out a new version!".... like, it's not minecraft....
- bradleyland 16y agoI'm a TM user, and I'm happy with the product, but there are some areas that could use improvement. First, there's undo. Undo in TM is letter-by-letter. That makes it pretty useless for moving very far back in to history. Then there's any kind of intelligent auto-completion. Auto-complete in TM is as rudimentary as it gets. It's basically word matching for the current document, or from a bundle. I still think TM is the best editor for me, and I'd happily use it for the next 25 years without a single gripe if I had to, but I'm not sure the editor community is going to just sit around while TM stagnates.
- alwillis 16y agoThe big issue is that Textmate 2.0 was announced as a free upgrade years ago and it has yet to appear. Joe Hewitt's tweet kinda says it all: http://twitter.com/joehewitt/status/14998671708 http://twitter.com/joehewitt/status/14998671708
- stevenbedrick 16y agoI actually agree 99% with you- I happily use TM more or less constantly, and have since it was first released. That said, there are four features (or feature areas) that I feel like would add immeasurably to my TextMate experience: 1. Split-window editing 2. Multithreaded searching, pasting, etc.- having the whole app hang while doing a "find in project" is a major drag, especially when it's due to, oh, say, having a bunch of files open from a slow network share. Which brings me to... 3. Better handling of files opened from remote volumes- another case where multiple threads would probably help. 4. Better handling of really long lines when word-wrap is turned off. There is obviously something O(n) going on at the line level (where n is the number of characters on the line), and it makes handling long runs of text rather painful at times. So, there it is: my TextMate wish list. Modulo those four things, TextMate is currently pretty close to ideal, IMHO. I love its syntax highlighting grammar, its snippets, its macro capabilities, etc. etc. The Latex package is fabulous, and has singlehandedly done a lot to make my dissertation-writing process bearable.
- aboodman 16y agoI wonder if it is based on Chromium.
- rasmusfabbe 16y agoIt's based on https://github.com/rsms/chromium-tabs https://github.com/rsms/chromium-tabs which is a lose port + mimic of Chromium code.
- samratjp 16y agoIf they ported this to iPad, I'd pay big bucks for it.
- zacharypinter 16y agoAgreed. An extendable (Apple allows JavaScript to be downloaded, right?) text editor for the iPad would be wonderful.
- zacharypinter 16y agoAgreed. An extendable (Apple allows JavaScript to be downloaded, right?) text editor for the iPad would be wonderful.
- zacharypinter 16y agoAgreed. An extendable (Apple allows JavaScript to be downloaded, right?) text editor for the iPad would be wonderful.
- zacharypinter 16y agoAgreed. An extendable (Apple allows JavaScript to be downloaded, right?) text editor for the iPad would be wonderful.
- szopa 16y agoThis is quite exciting. Anything is known about the authors or a release schedule? I would love to beta test it.
- asymmetric 16y agoabout the author: http://hunch.se/resume/ http://hunch.se/resume/ tl;dr: was creative director at spotify, now works at facebook
- udp 16y agoWill it do C++? I still haven't found a good C++ editor (with class member autocomplete popups and such) - at least, nothing that compares to Visual Studio over in the Windows world.
- pyeahtras 16y agoWhy not Xcode?
- udp 16y agoThe popup with the list of class members (I think XCode calls it "Code Sense") tends not to work if your code is too complicated. I know that sounds like a silly reason not to use an IDE, but I surprise myself with how much I miss it.
- foljs 16y agoThis appears to have been fixed in XCode 4.
- cubicle67 16y agoscreenshot appears to be C++ code (might be wrong on this though, as I've never written any C++, and only use C occasionally)
- jlmendezbonini 16y agoThe screenshot displays C code.
- meastham 16y agoI've heard good things about this plugin, which uses clang to do autocompletion inside vim: http://www.vim.org/scripts/script.php?script_id=3302 http://www.vim.org/scripts/script.php?script_id=3302
- udp 16y ago
- adestefan 16y agoIf it can't fix those curly braces in the screenshot then I don't want to go near the thing.
- cubicle67 16y agonot sure what you're referring to. If it's the font, well Im assuming that's changeable and if it's the brace on line 47, then that's just word wrap making it look odd. If you're referring to the fact that the open braces are on the end of the lines, well... that's where God himself intended them to be :)
- KeithMajhor 16y agoThis is a separate idea, but... The "Chromium-like user interface where tabs can be torn off and moved between windows" would be awesome if it were implemented directly in Mac OSX. Then applications could drop all of that code and just let the OS deal with it. Also, you'd be able to group distinct applications. I'd love to have a [Browser, Text Editor, Terminal] tab group. EDIT: Another thought... Chrome tabs don't look like any other tabs in Mac OSX. Applications lose uniformity as they're forced to define more about themselves.
- GeneralMaximus 16y agoStack and Tile for Haiku is nice: http://www.youtube.com/watch?v=ccniJHjo_Uw http://www.youtube.com/watch?v=ccniJHjo_Uw KWin in KDE can also stack and tile application windows. Sadly, nothing like that exists for OS X.
- rasmusfabbe 16y agoHave you tried Zooom/2? http://coderage-software.com/zooom/ http://coderage-software.com/zooom/
- pak 16y agoChrome tabs are some of the best-behaving and best-looking tabs on any OS, though. See TotalFinder for a Finder mod that applies Chrome tabbing to all Finder windows. Makes D&D a snap. http://totalfinder.binaryage.com/ http://totalfinder.binaryage.com/
- thomas11 16y agoI don't quite get how node.js comes into play here. I've seen lots of blog posts about it, but never used it. It seems to be about network programming. Indeed, the node website says "Node's goal is to provide an easy way to build scalable network programs." Would someone enlighten me what the motivation is to use it as an editor's scripting environment?
- rasmusfabbe 16y agoNode.js is a universal environment much like Python or Ruby, but runs the highly performant V8 JavaScript virtual machine. The choice of JavaScript is simple — many people know it and it's the future of scripting. Also, I'm active in the core dev of Node.js which makes it extra fun to use.
- phren0logy 16y agoOT: Is "performant" really a word? I see it on HN all the time, and it strikes me as made-up business jargon.
- shawndumas 16y agoPerformant[1] (comparative more performant, superlative most performant): (jargon, chiefly computing) Capable of or characterized by an adequate or excellent level of performance or efficiency. "Ours is a performant network monitoring and systems monitoring tool." "This software is ten percent more performant than its predecessor." ---- [1]: http://en.wiktionary.org/wiki/performant http://en.wiktionary.org/wiki/performant
- phren0logy 16y agoYes, but somebody adding it to wiktionary doesn't make it a word. It just seems lazy to make up new words rather that taking the trouble to use an existing one. http://ngrams.googlelabs.com/graph?content=performant&year_start=1800&year_end=2000&corpus=0&smoothing=3 http://ngrams.googlelabs.com/graph?content=performant&ye... I wonder if the early appearance is OCR error?
- itsnotvalid 16y agoHow about cloud9 (http://www.cloud9ide.com http://www.cloud9ide.com), Bespin (https://bespin.mozillalabs.com/ https://bespin.mozillalabs.com/), Codemirror (http://codemirror.net/ http://codemirror.net/) or Ymacs (http://www.ymacs.org/ http://www.ymacs.org/). It would be just lame to have another editor on just OSX only, considering that most people have used some script-able code editor (like emacs or vim) that are openly script-able (or compilable). If it is just for OSX, then there is a specific scripting language called AppleScript which is OSX only and should be even more integrated to the OSX APIs. Well at least the "Chromium-like" part triggers my thoughts on web based editor.
- alwillis 16y agoIt wouldn't be lame; it would be awesome to have another kickass editor for Mac OS X, especially one that takes full advantage of the features of Snow Leopard and modern hardware. Signed up for the beta; looking forward to trying it out.
- szopa 16y agoYou've listed three browser based editors and one which seems to be completely focused on JavaScript editing. If I understand correctly, Kod is supposed to be a universal editor for programmers, only scripted in JS. (But thanks for the link to cloud9, I didn't know about it and it looks interesting.) EDIT: meh, it was actually 4 browser based editors :(
- itsnotvalid 16y agoExactly, considering that we still have textmate around, I am not sure if scripting in node.js with OSX API is the best way to pull it out. As I mentioned AppleScript seems to be a better fit for an OSX-only editor. Of course any new things are welcomed, just that I am not at the best positive about this.
- deleted 16y ago[deleted]
- rroar 16y agoHey, does anybody know what font is used on that screenshot?