Re: [dev] Sandy editor

2011-06-04 Thread Connor Lane Smith
On 5 June 2011 02:34, Rafa Garcia Gallego wrote: > Well, those are the ASCII characters you have to produce. My keyboard > (fairly standard setxkbmap us altgr-intl -option ctrl:nocaps), > produces them as follows: > C-_ with Ctrl-/ and Ctrl-7 > C-^ with Ctrl-6 > > If this were standard (though I'm

Re: [dev] Sandy editor

2011-06-04 Thread Rafa Garcia Gallego
Hi, On Sat, Jun 4, 2011 at 9:48 PM, Connor Lane Smith wrote: > Some things I've noticed: >  1. Vertical movement doesn't take tabs into account for horizontal offset. Yeah, that's the first item in my TODO list, yet I keep postponing it even though it seems simple enogh. It also includes moving

Re: [dev] Sandy editor

2011-06-04 Thread Connor Lane Smith
Hey, Some things I've noticed: 1. Vertical movement doesn't take tabs into account for horizontal offset. 2. The manpage seems incomplete -- it doesn't mention undo, for instance. 3. The config.h undo/redo bindings seem really obscure, at least on my keyboard, and I couldn't actually get red

Re: [dev] Sandy editor

2011-06-02 Thread Andrew Hills
On Thu, Jun 2, 2011 at 6:49 AM, Rafa Garcia Gallego wrote: > Answering direct questions: accepting a number modifier to commands > seems cool and simple enough and I do use it a lot in vim. I was > trying to avoid it for simplicity's sake, but if you lot feel it is > necessary, then we can go ahea

Re: [dev] Sandy editor

2011-06-02 Thread John Matthewman
On 6/2/11, Rafa Garcia Gallego wrote: > - Most "normal" editors *do* have a slight modality (e.g. replace > instead of insert, etc). Sandy does have a different behavior when > selecting text vs. when moving, but it is bearable and IMHO it does no > lead to confussion. Some questions: do we want t

Re: [dev] Sandy editor

2011-06-02 Thread Rafa Garcia Gallego
Hi, I've pushed a couple of changes: the control-only keymap is now the default (the former one is there as config.old.h, but should be removed soon unless someone reports using and preferring it), Ctrl-Q warns before quitting, Ctrl-t copies and the prompt commands are a bit more vi-like now ('/'

Re: [dev] Sandy editor

2011-06-01 Thread Guilherme Lino
i think this is what most people is missing http://vim.wikia.com/wiki/Avoid_the_escape_key http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_XWindows i was not sure what was my favorite(vim/emacs) until i read this now with TAB+x+y+z look asowme compared with C-x+C-y+C-z -- Guilherme Lino

Re: [dev] Sandy editor

2011-06-01 Thread Marc Andre Tanner
On Wed, Jun 01, 2011 at 11:46:54AM +0200, pancake wrote: > But i'm pretty sure it will be more comfortable to move along the code > with hjkl (modes) than ^n^p... but le'ts first try to make it smarter. For what it's worth I also think multiple modes make sense. Moving around with hjkl is too fami

Re: [dev] Sandy editor

2011-06-01 Thread pancake
On 06/01/11 10:22, John Matthewman wrote: On 6/1/11, pancake wrote: and this is why im telling why modal editor is necessary if we dont want to fall into a emacs-like hell. I wouldn't go so far as to say that it's necessary -- or that not going modal will result in falling into an Emacs-like h

Re: [dev] Sandy editor

2011-06-01 Thread John Matthewman
On 6/1/11, pancake wrote: > and this is why im telling why modal editor is necessary if we dont want > to fall into a emacs-like hell. I wouldn't go so far as to say that it's necessary -- or that not going modal will result in falling into an Emacs-like hell. Isn't the goal a simple, little edit

Re: [dev] Sandy editor

2011-06-01 Thread pancake
On 05/31/11 20:43, Andrew Hills wrote: On Tue, May 31, 2011 at 12:51 PM, Rafa Garcia Gallego wrote: - ^A / ^E go to bol / eol or, if already there, move by one full page. I find this weirdly comfortable. Is a page some standard size or is it determined by the size of the terminal? --Andrew H

Re: [dev] Sandy editor

2011-06-01 Thread pancake
maybe I was not clear enought when I said that ^j = return and ^h = backspace. this is something done by the terminal, so you CANT bind them. and there are other control-keys that cannot be handled like control+shift. this is why vi was done in this way. to work in all terminals without prob

Re: [dev] Sandy editor

2011-05-31 Thread Rafa Garcia Gallego
Hi, On Tue, May 31, 2011 at 10:56 PM, Connor Lane Smith wrote: > I've just got around to properly trying sandy. I'm not a fan of the > curses approach, but I'm otherwise quite impressed. (I've not read the > code yet, but the editor itself has a nice feel to it.) Yeah. Ncurses is really the less

Re: [dev] Sandy editor

2011-05-31 Thread Connor Lane Smith
Hey, I've just got around to properly trying sandy. I'm not a fan of the curses approach, but I'm otherwise quite impressed. (I've not read the code yet, but the editor itself has a nice feel to it.) On 31 May 2011 17:51, Rafa Garcia Gallego wrote: > - ^U works as it should. > - ^C kills the nex

Re: [dev] Sandy editor

2011-05-31 Thread Rafa Garcia Gallego
Hi, Thanks for your input. On Tue, May 31, 2011 at 8:07 PM, Bjartur Thorlacius wrote: > On 5/31/11, Rafa Garcia Gallego wrote: >> A tad unrelated, but not really... I was quite sure about using >> keyboard positioned bindings before (be them hjkl, ijkl, the wordstar >> thingy or even wasd as it

Re: [dev] Sandy editor

2011-05-31 Thread Andrew Hills
On Tue, May 31, 2011 at 12:51 PM, Rafa Garcia Gallego wrote: > - ^A / ^E go to bol / eol or, if already there, move by one full page. > I find this weirdly comfortable. Is a page some standard size or is it determined by the size of the terminal? --Andrew Hills

Re: [dev] Sandy editor

2011-05-31 Thread Bjartur Thorlacius
On 5/31/11, Rafa Garcia Gallego wrote: > A tad unrelated, but not really... I was quite sure about using > keyboard positioned bindings before (be them hjkl, ijkl, the wordstar > thingy or even wasd as it has been suggested). However, a lot of > suckless software users seem to have a non-qwerty ke

Re: [dev] Sandy editor

2011-05-31 Thread Anselm R Garbe
On 31 May 2011 15:40, pancake wrote: > PD: Anselm, are you still alive? Yes, June is approaching and my agenda will start very soon :) Cheers, Anselm

Re: [dev] Sandy editor

2011-05-31 Thread Rafa Garcia Gallego
Hi, On Tue, May 31, 2011 at 4:40 PM, pancake wrote: > After reading the libregex9 code (1200LOC, and probably the best regexp > library out there) > (because openbsd regex is about 3KLOC and musl 5KLOC and have some > documented bugs, > gnu one is about 35.000LOC... > > the thing is that \b is th

Re: [dev] Sandy editor

2011-05-31 Thread Mate Nagy
> Honestly, I dislike 'modal text editors' as I feel they make the task at > hand more difficult that it was to begin with. Sure there's a lot to be > said for the power they bring, but with some forethought and planning > I think that most of the power and all of the 'usefulness' of a modal > edit

Re: [dev] Sandy editor

2011-05-31 Thread Bryan Bennett
(Consider this my thoughts on a general text editor and not a review of Sandy - I've not tried Sandy since I found it on the Arch forums a ways back - long before being brought up here) I've recently thought a lot about editors, as I'm not satisfied with vi/vim and emacs chains are shitty beyond

Re: [dev] Sandy editor

2011-05-31 Thread pancake
hi, On 05/29/11 13:00, Rafa Garcia Gallego wrote: Thinking about a couple of issues now: 1.- The regexes used for syntax highlight relied on a GNU extension (\< \> to mark word boundaries). We changed those to \b, which is the POSIX equivalent, but some testing has determied this does not wor

Re: [dev] Sandy editor

2011-05-30 Thread John Matthewman
On 5/29/11, Rafa Garcia Gallego wrote: > Thinking about a couple of issues now: > > 1.- The regexes used for syntax highlight relied on a GNU extension > (\< \> to mark word boundaries). We changed those to \b, which is the > POSIX equivalent, but some testing has determied this does not work in >

Re: [dev] Sandy editor

2011-05-29 Thread Rafa Garcia Gallego
Thinking about a couple of issues now: 1.- The regexes used for syntax highlight relied on a GNU extension (\< \> to mark word boundaries). We changed those to \b, which is the POSIX equivalent, but some testing has determied this does not work in some systems (MacOS as far as we know). We looked

Re: [dev] Sandy editor

2011-05-28 Thread Bjartur Thorlacius
On 5/27/11, Dieter Plaetinck wrote: > how ironic you pledge for "sane" keybindings and suggest > bindings optimized for qwerty users... > > I use dvorak, so I would prefer bindings optimized for that, but I > realise different people use different layouts, so everyone should be > able to choose ho

Re: [dev] Sandy editor

2011-05-28 Thread Peter John Hartman
On Sat, May 28, 2011 at 03:19:15AM +0200, Rafa Garcia Gallego wrote: > I asked around, found about a couple of very keybind maps using only Control: > > http://www.wordstar.org/wordstar/history/wmvswscmds.htm Go joe! Peter -- sic dicit magister P PhD Candidate Collaborative Programme in Ancie

Re: [dev] Sandy editor

2011-05-27 Thread Rafa Garcia Gallego
I asked around, found about a couple of very keybind maps using only Control: http://www.wordstar.org/wordstar/history/wmvswscmds.htm Then again they do not implement the unix standard ^U ^W ^H, which sucks a bit. Also, WordMaster may be unfeasible straight up as the Return key generates ^J and a

Re: [dev] Sandy editor

2011-05-27 Thread Josh Rickmar
On Fri, May 27, 2011 at 10:55:53PM +0200, Arian Kuschki wrote: > On 27 May 2011 10:46, Aur?lien Aptel wrote: > > > On Fri, May 27, 2011 at 10:29 AM, Aur?lien Aptel > > wrote: > > > arrows on them. A triangle layout (wqsd or ijkl for example) is much > > > easier to type. > > > > I meant wasd (on

Re: [dev] Sandy editor

2011-05-27 Thread Arian Kuschki
On 27 May 2011 10:46, Aurélien Aptel wrote: > On Fri, May 27, 2011 at 10:29 AM, Aurélien Aptel > wrote: > > arrows on them. A triangle layout (wqsd or ijkl for example) is much > > easier to type. > > I meant wasd (on qwerty), obviously. > > that would be just sweet for the myriads of colemak us

Re: [dev] Sandy editor

2011-05-27 Thread Jacob Todd
Sam has sane keybindins. On May 27, 2011 2:26 PM, "Noah Birnel" wrote: >> *Please*, use sane keybindings. Emacs and vi were made with a specific >> keyboard from the 70s in mind. A time were the hjkl keys had little >> arrows on them. A triangle layout (wqsd or ijkl for example) is much >> easier

Re: [dev] Sandy editor

2011-05-27 Thread Aurélien Aptel
On Fri, May 27, 2011 at 8:26 PM, Noah Birnel wrote: > Puke. Triangle layout may be more intuitive to learn for single char/line > movement, but is probably not easier to type. Certainly not WASD layout, > laying on the weak fingers of the left hand. wasd is only an example... Pick another triangl

Re: [dev] Sandy editor

2011-05-27 Thread Noah Birnel
> *Please*, use sane keybindings. Emacs and vi were made with a specific > keyboard from the 70s in mind. A time were the hjkl keys had little > arrows on them. A triangle layout (wqsd or ijkl for example) is much > easier to type. Puke. Triangle layout may be more intuitive to learn for single ch

Re: [dev] Sandy editor

2011-05-27 Thread Andrew Hills
On Thu, May 26, 2011 at 3:53 PM, Rafa Garcia Gallego wrote: > That is indeed a great idea. I'll try to stick with the UNIX defaults, > fill in with Emacs when in doubt and remove META when possible. Please, please, please do not use Emacs-style "chains". They make no sense and hurt the hands. >

Re: [dev] Sandy editor

2011-05-27 Thread Aurélien Aptel
On Fri, May 27, 2011 at 10:54 AM, Dieter Plaetinck wrote: > how ironic you pledge for "sane" keybindings and suggest > bindings optimized for qwerty users... I've used qwerty bindings for the example so anyone could follow. I don't use qwerty myself.

Re: [dev] Sandy editor

2011-05-27 Thread Dieter Plaetinck
On Fri, 27 May 2011 10:29:17 +0200 Aurélien Aptel wrote: > On Fri, May 27, 2011 at 4:52 AM, John Matthewman > wrote: > > Yea, probably a good idea (of course, ignoring Emacs' chained > > keybindings). Sandy would benefit from a better set of default > > bindings. Though for reference you might w

Re: [dev] Sandy editor

2011-05-27 Thread Aurélien Aptel
On Fri, May 27, 2011 at 10:29 AM, Aurélien Aptel wrote: > arrows on them. A triangle layout (wqsd or ijkl for example) is much > easier to type. I meant wasd (on qwerty), obviously.

Re: [dev] Sandy editor

2011-05-27 Thread Aurélien Aptel
On Fri, May 27, 2011 at 4:52 AM, John Matthewman wrote: > Yea, probably a good idea (of course, ignoring Emacs' chained > keybindings). Sandy would benefit from a better set of default > bindings. Though for reference you might want to look at something > like mg [http://www.openbsd.org/cgi-bin/ma

Re: [dev] Sandy editor

2011-05-27 Thread Yoshi Rokuko
+ John Matthewman ---+ > > I also have two wishes: > > - Make it possible to turn off highlighting (syntax highlighting, > highlighting the current line) and colour. I'm sure I'm not the only > person who doesn't need that stuff..? > - Keep it as a

Re: [dev] Sandy editor

2011-05-26 Thread John Matthewman
Hi there - I had been looking for a simple little editor for a while. Thanks for sharing. On 5/27/11, Rafa Garcia Gallego wrote: > That is indeed a great idea. I'll try to stick with the UNIX defaults, > fill in with Emacs when in doubt and remove META when possible. Yea, probably a good idea (o

Re: [dev] Sandy editor

2011-05-26 Thread pancake
Im in the irc.oftc.net#suckless right now. On 26/05/2011, at 21:53, Rafa Garcia Gallego wrote: > Hi, > > On Thu, May 26, 2011 at 3:14 PM, pancake wrote: >> i have noticed that the sucky terminal cannot handle shift+control, so my >> bindings for >> ^[hjkl] ^[HJKL] does not work... So i'll thi

Re: [dev] Sandy editor

2011-05-26 Thread Hiltjo Posthuma
> That might be the screen updating every time you move the mouse. You > probably have a 64bit ncurses with NCURSES_MOUSE_VERSION 2 (or > greater?). I run 32-bit ncurses (i686). > If you try defining NCURSES_MOUSE_VERSION to 1, you'll get what I have > in my netbook: fast mouse selection without

Re: [dev] Sandy editor

2011-05-26 Thread Rafa Garcia Gallego
On Thu, May 26, 2011 at 9:53 PM, Rafa Garcia Gallego wrote: > I'll take a quick look at the quote regexes now, but since I don't > really know which are working where :S I hope nothing bad comes out of > this. That was really dumb. I defined the regexes to match for a quoted text (several times)

Re: [dev] Sandy editor

2011-05-26 Thread Rafa Garcia Gallego
Hey, On Thu, May 26, 2011 at 10:41 AM, Hiltjo Posthuma wrote: > I agree with pancake. I also noticed the selection of text using the > mouse is very laggy / slow (using xterm). Anyway I'll keep an eye on > this project since it seems promising to me. That might be the screen updating every time

Re: [dev] Sandy editor

2011-05-26 Thread Rafa Garcia Gallego
Hi, On Thu, May 26, 2011 at 3:14 PM, pancake wrote: > i have noticed that the sucky terminal cannot handle shift+control, so my > bindings for > ^[hjkl] ^[HJKL] does not work... So i'll think in other keybindings for it.. Yeah. If I recall, the old sandy prototype (ugly gtk+) used Control+Shift

Re: [dev] Sandy editor

2011-05-26 Thread pancake
On 05/26/11 01:33, Rafa Garcia Gallego wrote: Hi, Thanks a lot for your detailed mail. On Thu, May 26, 2011 at 12:33 AM, pancake wrote: About moving sandy to hg.suckless.orgshould be discussed with Anselm. We can setup a cron sync to clone your repo.. But it would be better to have it there.

Re: [dev] Sandy editor

2011-05-26 Thread Connor Lane Smith
On 26 May 2011 14:14, pancake wrote: > i have noticed that the sucky terminal cannot handle shift+control, so my > bindings for > ^[hjkl] ^[HJKL] does not work... So i'll think in other keybindings for it.. This is the problem with curses: it's the common denominator, and as a result is rather aw

Re: [dev] Sandy editor

2011-05-26 Thread pancake
i have noticed that the sucky terminal cannot handle shift+control, so my bindings for ^[hjkl] ^[HJKL] does not work... So i'll think in other keybindings for it.. Another thing that i have noticed is that you can't nest keybindings. This is, i want to have a single key to save and quit, so i p

Re: [dev] Sandy editor

2011-05-26 Thread Yoshi Rokuko
+--- Rafa Garcia Gallego ---+ > > > > * I tend to prefer a mode editor, because there are less keybindings [...] > > I too have mixed feelings about this. On one hand modeless editing > seems saner and we shouldn't really need that many commands. On the > other hand, vi

Re: [dev] Sandy editor

2011-05-26 Thread hiro
Anselm please make HTML mails bounce. Every year at my birthday I get HTML mail with happy smileys and large, colored, full-caps fonts. I tried to read suckless instead and now I got eye cancer. I'll also leave the last piece of cake for you.

Re: [dev] Sandy editor

2011-05-26 Thread Hiltjo Posthuma
I agree with pancake. I also noticed the selection of text using the mouse is very laggy / slow (using xterm). Anyway I'll keep an eye on this project since it seems promising to me. Kind regards, Hiltjo

Re: [dev] Sandy editor

2011-05-25 Thread Rafa Garcia Gallego
Hi, Thanks a lot for your detailed mail. On Thu, May 26, 2011 at 12:33 AM, pancake wrote: > About moving sandy to hg.suckless.orgshould be discussed with Anselm. We can > setup a cron sync to clone your repo.. But it would be better to have it > there. I'm fine with moving the main repo to suck