top | item 5453757

Godit - A very religious text editor written in Go

66 points| obilgic | 13 years ago |github.com | reply

74 comments

order
[+] alisnic|13 years ago|reply
"the tab size is always an equivalent to 8 spaces/characters" - our faiths are incompatible
[+] mbrock|13 years ago|reply
Obviously the tab character should move forward to the next column divisible by the tab size -- it's not just a replacement for a fixed number of spaces!
[+] vidarh|13 years ago|reply
It is clearly time for a religious war.
[+] paulnechifor|13 years ago|reply
I'm also guessing syntax highlighting isn't a planned feature.
[+] BitMastro|13 years ago|reply
Isn't 8 spaces the default spacing in gofmt?
[+] frozenport|13 years ago|reply

  And no wonder, for Satan himself masquerades as an angel of light.
  ~ 2 Corinthians 11:15
Emacs is the devil
[+] buster|13 years ago|reply
8 characters tab width is insane. :(
[+] mich41|13 years ago|reply
Roundness of the Earth is equally insane. But both are facts.

  m@sauron:~ $ echo -e '\tx'
          x
[+] struppi|13 years ago|reply
I don't habe my copy of "Code Complete" here, but AFAICR it cites a study that says code comprehension is best at 3-4 charakter indent.

So, yes, a tab size of 8 is insane...

[+] silon3|13 years ago|reply
It's the only correct one. But it should have nothing to do with indent size.
[+] densh|13 years ago|reply
Performance is truly impressive. And I really love how small the codebase actually is. I've been dreaming about writing my own text editor for quite some time. This will really help me to get started, thanks a lot nsf!

p.s. panic on opening a directory isn't really a best way to say that you don't support viewing directories...

[+] nsf|13 years ago|reply
I agree this panic is quite annoying sometimes. Will make a proper error message when I have time. A very minor issue at the moment. You see I'm not really actively working on it anymore, I use the godit for all of my text editing tasks and if some feature/bug annoys me a lot in godit - I fix it. Directory opening by accident happens sometimes, lol, and when you see a panic message, you panic as well, but then phew.. :)
[+] dbaupp|13 years ago|reply
Is it a Go thing to have no file organisation? (Is this tooling sufficiently nice that this is manageable?)
[+] rbonvall|13 years ago|reply
A couple of weeks ago I was searching for go programs in order to see examples of how I could organize a toy project I was starting. I found godit and after reading the source I think it is a good way to organize a small project. Eventually you can start moving functionality to packages once they grow big enough.

And the tooling helps. There is no Makefile and no instructions, so I tried `go build` and it just works.

[+] timclark|13 years ago|reply
go does have file organisation. You can create packages in directories and nest them and the tooling will handle it easily.
[+] human_error|13 years ago|reply
I think Gomacs or Gemacs would've been better name. It looks so similar to emacs.
[+] nsf|13 years ago|reply
Perhaps, but it's too late to change the name.
[+] nemo1618|13 years ago|reply
if only it had Vim bindings instead of Emacs bindings :/

I've been searching for something less bloated than Vim for a while (straight vi doesn't cut it).

[+] jaequery|13 years ago|reply
why not just emacs?
[+] nsf|13 years ago|reply
Emacs is big, startup is slow and you have to carry a pile of elisp scripts which fulfil your feature needs. All features has to be written in elisp of course that could be an issue too. Just a matter of taste.
[+] pekk|13 years ago|reply
Maybe someone would rather rewrite their editor in Go than elisp.
[+] martinced|13 years ago|reply
But why oh why immitate the Emacs shortcuts?

I love Emacs. I use it all the time. But the default shortcuts are the most stupid thing ever. That Control-x (C-x in Emacs lingua) is insanity at its best: due to the stupid non-symmetric layout of typical staggered keyboards 'x' in itself is one the hardest key to type (the equivalent with the right hand is way easier : '>' on a QWERTY keyboard). I'm a touch-typist and to hit 'x' I need to move my whole hand a bit. To hit '>' I just need to move on finger. I blame this on the fact that keyboard are using a staggered layout instead of a matrix or symmetric layout but whatever.

Then Control. Zomg. Control has to be accessed with the left pinky if you're a touch-typist: some very touch-typist friendly keyboards like the HHKB Pro 2 don't even botter with a right control key.

So to hit "C-x" you're supposed to use the two leftmost fingers of your left hand: this alone has to be one of the most RSI inducing keyboard shortcut ever.

But in Emacs everything is configurable. So I'm using "C-," to replace "C-x" and "M-," to replace "M-x".

It shall never cease to amaze me (in a very sad way) that when people "copy Emacs", the first thing they copy are the Emacs shortcuts. The Emacs shortcuts are the lamest thing ever in Emacs.

I love Emacs but I hate its default shortcuts. Emacs is not about its shortcuts: Emacs is about tailoring it to your needs by using Lisp.

I'm also wondering why that constant loss of energy in editors which shall never produce anything close to what one million lines of elisp code are providing. I'd much rather see that energy spend on creating a bridge for the Go-completion facility in Emacs, the real thing.

[+] nsf|13 years ago|reply
I hope no emacs users use control, there is a caps lock for that.

It's ok to disagree with godit, it's not meant for everybody. Frankly, just for me. And if someone else likes it, I don't mind sharing it.

Go-completion facility in Emacs is available. `github.com/nsf/gocode` has two plugins for emacs (auto-complete-mode and company-mode).