5 ms·
I must, as I always do, bring up my favorite editor Code Browser which works for this to some degree: http://tibleiz.net/code-browser/ http://tibleiz.net/code-b
by kristiandupont 7y ago
I must, as I always do, bring up my favorite editor Code Browser which works for this to some degree: http://tibleiz.net/code-browser/ http://tibleiz.net/code-browser/
I've been using it for some 15 years and I don't think I will ever leave it. I do wish that other editors (vscode in particular) would adopt its folding style or at least enable it. Doesn't seem promising though (https://github.com/microsoft/vscode/issues/17904 https://github.com/microsoft/vscode/issues/17904)
- mpweiher 7y agoWow, that's a nice mapping of the Smalltalk code browser onto a regular text-based PL. http://wiki.squeak.org/squeak/673 http://wiki.squeak.org/squeak/673
- kristiandupont 7y agoIt is. I've used it for side-project code a couple of times and it's absolutely wonderful. The ability to group code semantically at unit-level, cross-language is extremely powerful. Go to definition and the like in other editors work to some extent but very often, abstractions hide the actual link between code parts and you have to rely on your (brain-)memory or a debugger to figure out what the graph looks like. Sadly, I have not been able to convince anyone to use it in a team setting and on top of that, it is a very primitive code editor. There is some syntax highlighting and that's basically it. No VIM bindings and no IDE-like features. So I now use it as my org-mode text editor, with the occasional link to code or config files here and there, which works well.
- z3t4 7y agoI tried it, but when viewing in "browser" mode, the entire file is the only item. What am I missing ?
- kristiandupont 7y agoIt doesn't automatically fold anything, you do that by selecting some text and folding it. That inserts two comments in your code with tags indicating the start and end of the fold.
- z3t4 7y agoI get no fold option when selecting text. There is however a grayed out "unfold" option in Edit menu. I also tried to manually insert the fold comments, but nothing happens. screenshot: https://johan.webide.se/nofold.png https://johan.webide.se/nofold.png It might bee too obvious. If it's not too much to ask, could you make a video of how it works ? I'm working on a editor/IDE and would like to get a feel of how it works and how to best implement it, before actually implementing it.
- kristiandupont 7y agoI can make a video but I think you can figure it out. 1) CB needs to know the file type because it inserts comments and those need to be of the right kind. So you need to have your file saved first. 2) Select a couple of lines of text, like a function or a class and click "Insert Section" in the edit menu. This will fold the selected text and collapse it to a single line. 3) Click "Child section" in the Go menu while the caret is on the folded line to go into the new section, and "Parent section" to go back.
- apostacy 7y agoI'd like to let people know about Sublime Zettelkasten[1], which is this really useful module for Sublime that automates searching, linking, and lots of other stuff. There's also a standalone version that is attempting to have the same functionality[2]. [1]: https://github.com/renerocksai/sublime_zk https://github.com/renerocksai/sublime_zk [2]: https://github.com/renerocksai/sublimeless_zk https://github.com/renerocksai/sublimeless_zk
- submeta 7y agoExcellent! Only a few days ago I started using SublimeText for writing (markdown) and managing my folder- and file-based personal wiki. This plugin will propably be very useful.
- captaindiego 7y agoI have some minor hacks I've made to sublimeless zk which help it play nice with dark mode in KDE Neon (otherwise the Qt themes get overriden). They're super messy tweaks, but if anyone is interested I'll consider cleaning up and submitting a PR.
- unqueued 7y agoYes, please share! I have some minor tweaks as well: https://github.com/unqueued/sublime-notelink https://github.com/unqueued/sublime-notelink I'm making the notelink properly follow zettelkästen links, as well as some other tweaks, so I can use my zettle file alongside my unstructured Markdown wikis.