Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Code Browser (tibleiz.net)
94 points by _zhqs on Dec 29, 2020 | hide | past | favorite | 18 comments


Is there an Emacs package which does something similar to the "Smalltalk Style" navigation view? It looks like it can be implemented in a very similar way to imenu

Should be interesting, especially if it can leverage lsp for the code analysis.


There was shampoo, an emacs mode for Smalltalk. It's still on github [1] but the old project home page [2] is now gone. I recall that homepage had a convincing screenshot.

[1] https://github.com/dmatveev/shampoo-emacs

[2] http://dmitrymatveev.co.uk/shampoo/


First project in a while aimed at devs that has Linux and Windows as named release versions with no OSX version. As much as I love cross platform, it's nice that Windows devs still get some love... :-).

(Yeah, I know the qt version could be made to run anywhere and yes I love my Mac, just having fun with a cool project)


I'm amazed by people who casually write a new language that actually works well enough to write a complex and highly useful program in.


Wow, that is very easy to miss. Then I went and looked at Copper and it's a significant piece of work by itself. It's self-hosted (written in Copper), and has LLVM, x86, and x64 backends, and is portable to multiple OSes.

    ~/src/languages/copper-4.5/src$ wc -l *.co */*.co
      5296 builder.co
      1002 commons.co
       604 lexer.co
       191 main.co
      2067 parser.co
      2437 codegen/generator-c.co
       508 codegen/generator-dump.co
      2388 codegen/generator-llvm.co
      8896 codegen/generator-x64.co
      9617 codegen/generator-x86.co
       534 data/ast.co
      1466 data/object-file-coff.co
      1185 data/object-file-elf64.co
      1367 data/object-file-elf.co
      5538 data/program.co
       461 data/token.co
     43557 total


First 5 languages are the most difficult.


OP is talking about literally creating (and using) a new language -- not just writing code in a language others created.


Parent meant to say that practice makes perfect.


I use Code Browser to edit tab-separated values (TSV) files; it's quite handy! See https://tibleiz.net/code-browser/elastic-tabstops.html



Happy to see what is possibly my favourite editor on HN! I've used this little piece of software for over a decade and I don't think I can ever leave it. I used to use it for programming, but these days it's just my outliner. I much prefer it over org-mode, or all the new markdown-based ones. I wish I would see this type of folding in VS Code or any other modern editor!


There’s actually a request to add this functionality to VSCode:

https://github.com/microsoft/vscode/issues/110115


Going to try this later! Is it able to jump to a function or variable definition?


Doesn't seem to work to display the hierarchy in existing code unless you structure it using some syntax to allow for the code-folding to work.


I was hoping it would infer the structure automatically, quite unfortunate that this seems to require annotations to get any real value out of it. I wonder if it could be adapted to use something like ctags/LSP/tree-sitter for that purpose.


Does anyone wanna make an AUR package for this? ;)


Didn't work for me out the gate, It cannot access network drives.


Shame there's no macOS version, this looks pretty cool.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: