Show HN: Lightweight C++ editor that understands your code
slededit.com
slededit.com
Any chance of a Linux build?
- Today's monitors have plenty of horizontal space but a shortage of vertical space; the context window needs to be alongside, rather than under, the code window.
- Ctrl-C/X without a selection should copy/cut the current line.
- Autocomplete doesn't seem to work, e.g. type 'st' for the beginning of the 'static' keyword and nothing happens - the underlying mechanism is there and working, because manually triggered completion with ctrl-space does work.
If you want to know when its more refined click the "Let me know when its ready" button on http://slededit.com
Make it optional and provide both - always the answer ;)
Also - thanks for writing useful lightweight Windows development software - there's a serious shortage at the moment as most tools (outside Microsoft) have switched to Linux/OSX.
Now some feedback: - I really like how your file search and the file tree interact! - It would be nice to show the definitions of local variables (e.g. inside a function scope). Or even better: Highlight all usages that variable throughout the scope! That would really help keeping track of things.
When that fails it tries to make as much sense as possible with an incomplete syntax tree - this part is still very much a work in progress.
1. Have wrapper scripts like sledgcc and sledg++ that keep track of compiler flags passed into them. This way users can just change the compiler used in their build scripts and you will be good to go.
2. http://clang.llvm.org/docs/JSONCompilationDatabase.html seems to be a good option. Its reasonably easy to get your build system to emit this and a few build systems can even do this out of the box.
What do you mean by "understand C++"? Does it offer features similar to Intellisense/Visual Assist?
A few other library dependencies: - libclang for heavy duty parsing (I also have a "quick" parser that handles simple cases in real time). - rapidxml for the config files - boost for Boyer Moore on the string search (but I'm trying to move away from boost eventually).
Also will sled work for browsing an entirely C codebase (without any C++)?
I'll consider a writeup for libclang. The documentation isn't very good in my opinion and I'm still not convinced I'm using it right even now.