|
|
|
|
|
by thomasikzelf
1630 days ago
|
|
Some feedback on the actual implementation: - I cannot reach inside if and while statements using tree mode - It is not clear which lines are available for refactorings - dragging a line reveals "+ If" and "+ else if" under an if statement. Dropping the line onto it does not work. - tree based moving does not move the viewport About the business side of it: I think it will be hard to create a whole editor just for these features. I know that Jetbrains editors also have ast aware refactorings and I often use moveBySymbol in sublime text which acts a lot like your tree navigation. I think it makes more sense to create this as a plugin, but it will be difficult to monetize that. Anyway I applaud you for creating something that actually works! |
|
- can you move into an if/while if it's not already selected? For already selected blocks I've had it both ways and found it better to be able to drag from anywhere in the block - you can select a child by clicking it. Both ways have their advantages and disadvantages though. "d" should also work to navigate to a block's first child.
- yes maybe some kind of visual indicator would be good, but if required after the first few uses then the interaction would need to be redesigned I think, as there shouldn't be any unexpected or unintuitive behaviour
- hmm, that's working for me, does anything at all happen when you drop it?
- yeah, haven't implemented that yet
I thought about doing it as a plugin as well, but I think trying to add something genuinely new to an existing editor would be possibly harder than just making one (I've been working on Treefrog for about 7 months full time and using it as my only editor for the last 2), and would end up either not fitting in well with the existing UI or having clunky UX to switch between modes etc. Designing new modes from the ground up (and being able to prototype them quickly with web tech and Electron) allows for much easier experimentation.