News for hackers. Stuff that matters.
Re:Show HN: A general tree editor component – Vim shortcuts,... by nathancahill on Thursday April 10, 2014 @05:44PM (#7569923)
Doesn't work in Firefox, but it works in Chrome. Nice project.
Re:Show HN: A general tree editor component – Vim shortcuts,... by kleiba on Friday April 11, 2014 @01:30AM (#7571368)
While Chrome is a very popular browser, I wonder if you can still call this editor "general" if it doesn't work cross-platform?!
Re:Show HN: A general tree editor component – Vim shortcuts,... by phorese on Friday April 11, 2014 @02:58AM (#7571558)
I'd guess "general" refers to the trees themselves (labels, arity) and not the platform.
Re:Show HN: A general tree editor component – Vim shortcuts,... by davvid on Thursday April 10, 2014 @09:43PM (#7570798)
This is nice! A few comments:

When you are on a closed node, hitting "l" (lower-case L) would be a nice way to open that node.

When you are on a opened node, hitting "h" would be a nice way to close that node.

It seems nicely vimish. I have a very similar set of vim-ish keyboard hotkeys on the tree widgets in git-cola.

Re:Show HN: A general tree editor component – Vim shortcuts,... by jaredly on Thursday April 10, 2014 @10:07PM (#7570881)
alt-l opens, alt-h closes currently. h takes you to the parent of the current node.
Re:Show HN: A general tree editor component – Vim shortcuts,... by themodelplumber on Thursday April 10, 2014 @06:18PM (#7570062)
Nice work, so glad to see someone doing work in this area. Thanks for sharing it. It was a little disorienting (as a novice Vim user) to press return after labeling a node, only to create a new node, which then remains as an empty node after I switched back to normal mode. But for all I know, that's the whole point of...something :-)
Re:Show HN: A general tree editor component – Vim shortcuts,... by michaelmior on Thursday April 10, 2014 @07:29PM (#7570352)
I assume the idea is to allow you to quickly insert many nodes without having to continually toggle from normal mode to insert mode.
Re:Show HN: A general tree editor component – Vim shortcuts,... by jaredly on Thursday April 10, 2014 @07:36PM (#7570378)
Hmm, I hadn't thought of removing the node if you never typed anything. Good idea.
Re:Show HN: A general tree editor component – Vim shortcuts,... by Arnor on Thursday April 10, 2014 @06:34PM (#7570127)
Very cool. I do find myself going for dd trying to delete nodes and gg trying to get back to the top.
Re:Show HN: A general tree editor component – Vim shortcuts,... by jaredly on Thursday April 10, 2014 @07:01PM (#7570251)
=) that's coming.
Re:Show HN: A general tree editor component – Vim shortcuts,... by sitkack on Friday April 11, 2014 @01:52PM (#7574361)
Re:Show HN: A general tree editor component – Vim shortcuts,... by codehero on Thursday April 10, 2014 @07:53PM (#7570438)
Doesn't work when Vimium extension is enabled...though this project makes we want to disable it.
Re:Show HN: A general tree editor component – Vim shortcuts,... by NoodleIncident on Thursday April 10, 2014 @08:21PM (#7570538)
I'm not familiar with Vimium, but Vimperator for Firefox will stop responding to everything when you press the "insert" key. There might be something equivalent for your plugin.
Re:Show HN: A general tree editor component – Vim shortcuts,... by dreyfiz on Thursday April 10, 2014 @08:36PM (#7570581)
It worked for me when I typed an i to get Vimium into its insert mode. Although that is getting a little ridiculous.