Re: [dev] Experimental editor

2011-06-27 Thread John Matthewman
On 6/25/11, Connor Lane Smith c...@lubutu.com wrote: Progress update. You can edit things, but we don't have the B-tree in place yet, so I'm mostly working on the peripherals. I'll set up a repo very soon, though aside from my UTF-8 and display abstraction library I have little to show, yet.

Re: [dev] Experimental editor

2011-06-25 Thread Connor Lane Smith
Progress update. You can edit things, but we don't have the B-tree in place yet, so I'm mostly working on the peripherals. I'll set up a repo very soon, though aside from my UTF-8 and display abstraction library I have little to show, yet. Here's a little screenshot of the aesthetic I'm going

Re: [dev] Experimental editor

2011-06-18 Thread markus schnalke
[2011-06-17 16:24] Martin Kühl martin.ku...@gmail.com Consider ex mode. How do you edit text in it? You don't have normal mode to help you, it only operates on real buffers, and you certainly don't have ex mode available. If ex mode were just a command buffer, you could use every piece of

Re: [dev] Experimental editor

2011-06-18 Thread pancake
The plan for swk was to move all drawing stuff to draw.c at some point. I will be happy to hear from what you are writing for. I stopped writing it because i didnt wanted to reimplement a text editor stuff.. But i think that conceptually swk can fit well in different emvironments like

Re: [dev] Experimental editor

2011-06-18 Thread Robert Ransom
On Sat, 18 Jun 2011 09:34:42 +0100 garbeam garb...@gmail.com wrote: On 18 June 2011 09:21, pancake panc...@youterm.com wrote: The plan for swk was to move all drawing stuff to draw.c at some point. I will be happy to hear from what you are writing for. I stopped writing it because i didnt

Re: [dev] Experimental editor

2011-06-18 Thread garbeam
On 18 June 2011 09:44, Robert Ransom rransom.8...@gmail.com wrote: On Sat, 18 Jun 2011 09:34:42 +0100 garbeam garb...@gmail.com wrote: On 18 June 2011 09:21, pancake panc...@youterm.com wrote: The plan for swk was to move all drawing stuff to draw.c at some point. I will be happy to hear

Re: [dev] Experimental editor

2011-06-18 Thread Connor Lane Smith
On 18 June 2011 09:34, garbeam garb...@gmail.com wrote: The closest thing that came to my mind is this idea of seeing swk as a curses replacement. With this, the clients that are written with it, could also run perfectly fine in text mode, but if you have a graphical environment at hand, the

Re: [dev] Experimental editor

2011-06-17 Thread Guilherme Lino
hi, Whether or not your keyboard has a page up/down key is a bit moot; the point is that an editor should have under 10 keybindings: up, down, left, right (C-hjkl), page up and down (C-uv), save and quite (and search and search-and-replace (if you are feeling luxurious)). you are wrong

Re: [dev] Experimental editor

2011-06-17 Thread markus schnalke
[2011-06-15 08:12] Peter John Hartman peterjohnhart...@gmail.com Why would you want several editors? For the same reason we want Unix's manifold toolchain and for the same reason we want several programming languages: Because ``One fits all'' is an illusion. The problem with vi and mutt is

Re: [dev] Experimental editor

2011-06-17 Thread Nicolai Waniek
On 06/17/2011 10:37 AM, markus schnalke wrote: For the same reason we want Unix's manifold toolchain and for the same reason we want several programming languages: Because ``One fits all'' is an illusion. Then try to figure out some basic tools that you can glue together to form a fully

Re: [dev] Experimental editor

2011-06-17 Thread David Tweed
On Fri, Jun 17, 2011 at 9:46 AM, Nicolai Waniek roc...@rochus.net wrote: On 06/17/2011 10:37 AM, markus schnalke wrote: For the same reason we want Unix's manifold toolchain and for the same reason we want several programming languages: Because ``One fits all'' is an illusion. Then try to

Re: [dev] Experimental editor

2011-06-17 Thread David Tweed
On Fri, Jun 17, 2011 at 9:51 AM, David Tweed david.tw...@gmail.com wrote: On Fri, Jun 17, 2011 at 9:46 AM, Nicolai Waniek roc...@rochus.net wrote: On 06/17/2011 10:37 AM, markus schnalke wrote: For the same reason we want Unix's manifold toolchain and for the same reason we want several

Re: [dev] Experimental editor

2011-06-17 Thread markus schnalke
[2011-06-15 14:47] Connor Lane Smith c...@lubutu.com On 15 June 2011 12:26, markus schnalke mei...@marmaro.de wrote: What's the difference between a mode and a ``quasimode''? What's the difference between shift and caps lock? I disagree with this analogy. Shift is no quasimode. In vi, you

Re: [dev] Experimental editor

2011-06-17 Thread markus schnalke
[2011-06-17 09:54] David Tweed david.tw...@gmail.com On Fri, Jun 17, 2011 at 9:51 AM, David Tweed david.tw...@gmail.com wrote: On Fri, Jun 17, 2011 at 9:46 AM, Nicolai Waniek roc...@rochus.net wrote: On 06/17/2011 10:37 AM, markus schnalke wrote: For the same reason we want Unix's manifold

Re: [dev] Experimental editor

2011-06-17 Thread Connor Lane Smith
On 17 June 2011 10:07, markus schnalke mei...@marmaro.de wrote: I disagree with this analogy. Shift is no quasimode. Yes it is. Likewise you enter ex mode (i.e. last-line mode), which you consider a quasimode No, you misunderstand completely: I don't consider ex mode `quasi'. What I said was

Re: [dev] Experimental editor

2011-06-17 Thread Nick
On Fri, Jun 17, 2011 at 03:16:00PM +0100, Connor Lane Smith wrote: I'm writing a simple UI abstraction library, sort of like swk meets draw.c, in that it's completely platform-agnostic (so we can port it to other things than Xlib), but doesn't use widgets, you just draw things. This has the

Re: [dev] Experimental editor

2011-06-17 Thread Kurt H Maier
On Fri, Jun 17, 2011 at 10:29 AM, Nick suckless-...@njw.me.uk wrote: I haven't used it, so don't know it's level of suckiness, but might cairo work? No. -- # Kurt H Maier

Re: [dev] Experimental editor

2011-06-17 Thread Mate Nagy
On Fri, Jun 17, 2011 at 10:49:12AM -0400, Kurt H Maier wrote: On Fri, Jun 17, 2011 at 10:29 AM, Nick suckless-...@njw.me.uk wrote: I haven't used it, so don't know it's level of suckiness, but might cairo work? No. maybe check out animator: http://repo.hu/projects/animator/ disclaimers:

Re: [dev] Experimental editor

2011-06-17 Thread Nick
On Fri, Jun 17, 2011 at 10:49:12AM -0400, Kurt H Maier wrote: On Fri, Jun 17, 2011 at 10:29 AM, Nick suckless-...@njw.me.uk wrote: I haven't used it, so don't know it's level of suckiness, but might cairo work? No. Guessed that would be the case, just throwing it out there ;) Connor's

Re: [dev] Experimental editor

2011-06-17 Thread Andrew Hills
On Fri, Jun 17, 2011 at 6:29 AM, Nick suckless-...@njw.me.uk wrote: But if we're thinking about breaking from the terminal, how would remote editing work? Some sort of ssh piping from / to the file on the server? I haven't thought this through, but it's certainly a usecase which would be nice

Re: [dev] Experimental editor

2011-06-17 Thread Nick
On Fri, Jun 17, 2011 at 07:15:22AM -0800, Andrew Hills wrote: On Fri, Jun 17, 2011 at 6:29 AM, Nick suckless-...@njw.me.uk wrote: But if we're thinking about breaking from the terminal, how would remote editing work? Some sort of ssh piping from / to the file on the server? I haven't

Re: [dev] Experimental editor

2011-06-17 Thread Rob
On Fri, Jun 17, 2011 at 07:15:22AM -0800, Andrew Hills wrote: On Fri, Jun 17, 2011 at 6:29 AM, Nick suckless-...@njw.me.uk wrote: But if we're thinking about breaking from the terminal, how would remote editing work? Some sort of ssh piping from / to the file on the server? I haven't

Re: [dev] Experimental editor

2011-06-17 Thread Andrew Hills
On Fri, Jun 17, 2011 at 7:39 AM, Rob robpill...@gmail.com wrote: sshfs? That's what I use, personally, but some people hate it, and it's not always available. I prefer to see the network latency when I'm actually reading or writing the file rather than seeing my editor freeze, though, so I

Re: [dev] Experimental editor

2011-06-17 Thread Michael Farnbach
Just a few points from random things in this thread... Someone said they want cut and paste to be put to tmux, X, etc... I don't know that X or tmux have anything more than mark and copy to clipboard. The rest is handled by the program in them. Also the modeless second window isn't a bad idea,

Re: [dev] Experimental editor

2011-06-17 Thread Connor Lane Smith
On 17 June 2011 15:24, Martin Kühl martin.ku...@gmail.com wrote: If ex mode were just a command buffer, you could use every piece of functionality your editor provided, maybe even open another command buffer operating on the current one. I'd not even considered this possibility, but you're

Re: [dev] Experimental editor

2011-06-17 Thread Nick
Quoth Rob: On Fri, Jun 17, 2011 at 07:15:22AM -0800, Andrew Hills wrote: On Fri, Jun 17, 2011 at 6:29 AM, Nick suckless-...@njw.me.uk wrote: But if we're thinking about breaking from the terminal, how would remote editing work? Some sort of ssh piping from / to the file on the server?

Re: [dev] Experimental editor

2011-06-16 Thread Mate Nagy
hi, Whether or not your keyboard has a page up/down key is a bit moot; the point is that an editor should have under 10 keybindings: up, down, left, right (C-hjkl), page up and down (C-uv), save and quite (and search and search-and-replace (if you are feeling luxurious)). you are wrong and/or

Re: [dev] Experimental editor

2011-06-16 Thread David Tweed
On Wed, Jun 15, 2011 at 8:53 PM, Peter John Hartman peterjohnhart...@gmail.com wrote: A simple editor probably shouldn't have any more keybindings than, say, surf; in fact one or two less: page up/down, up/right/left/down, and find. One doesn't need modes for that.  If you want to do

Re: [dev] Experimental editor

2011-06-16 Thread Jon Bradley
On Thu, Jun 16, 2011 at 09:27:38AM +0200, Mate Nagy wrote: hi, Whether or not your keyboard has a page up/down key is a bit moot; the point is that an editor should have under 10 keybindings: up, down, left, right (C-hjkl), page up and down (C-uv), save and quite (and search and

Re: [dev] Experimental editor

2011-06-16 Thread Kurt H Maier
On Thu, Jun 16, 2011 at 4:15 AM, David Tweed david.tw...@gmail.com wrote: I'm going to assume that what you mean by The editor doesn't need to do this. is the computer user doesn't benefit from having undo in the editor rather than a version control; invalid assumption. what he meant was 'the

Re: [dev] Experimental editor

2011-06-16 Thread David Tweed
On Thu, Jun 16, 2011 at 1:49 PM, Kurt H Maier karmaf...@gmail.com wrote: On Thu, Jun 16, 2011 at 4:15 AM, David Tweed david.tw...@gmail.com wrote: I'm going to assume that what you mean by The editor doesn't need to do this. is the computer user doesn't benefit from having undo in the editor

Re: [dev] Experimental editor

2011-06-16 Thread Peter John Hartman
On Thu, Jun 16, 2011 at 02:18:01PM +0100, David Tweed wrote: On Thu, Jun 16, 2011 at 1:49 PM, Kurt H Maier karmaf...@gmail.com wrote: On Thu, Jun 16, 2011 at 4:15 AM, David Tweed david.tw...@gmail.com wrote: I'm going to assume that what you mean by The editor doesn't need to do this. is

Re: [dev] Experimental editor

2011-06-15 Thread markus schnalke
[2011-06-12 18:55] Martin Kühl martin.ku...@gmail.com [...] command-quasimode [...] [...] mostly modeless. [2011-06-12 22:38] Connor Lane Smith c...@lubutu.com For substitution I'm tempted to just add a keybind to switch to and from the command pane, which appears at the bottom of the view

Re: [dev] Experimental editor

2011-06-15 Thread Peter John Hartman
Still I wonder why you try so much to stay modeless. Modes are a real advantage because each mode offers a separate editor. Take vi: You can edit in normal mode (= the actual vi mode) or in ex mode or in insert mode (e.g. with ^W, ^U). You have the choice which editor (mode) you use for some

Re: [dev] Experimental editor

2011-06-15 Thread David Tweed
On Wed, Jun 15, 2011 at 1:12 PM, Peter John Hartman peterjohnhart...@gmail.com wrote: A simple editor probably shouldn't have any more keybindings than, say, surf; in fact one or two less: page up/down, up/right/left/down, and find. One doesn't need modes for that.  If you want to do something

Re: [dev] Experimental editor

2011-06-15 Thread Connor Lane Smith
On 15 June 2011 12:26, markus schnalke mei...@marmaro.de wrote: What's the difference between a mode and a ``quasimode''? What's the difference between shift and caps lock? Surely, the problems are knowing in which mode you're in and switching modes. But in return, each mode lets you re-use

Re: [dev] Experimental editor

2011-06-15 Thread Josh Rickmar
On Wed, Jun 15, 2011 at 02:47:55PM +0100, Connor Lane Smith wrote: My view of that kind of editing is, you select the third word in the fourth sentence (either by leaping or with the mouse), hop over to the command buffer (Ctrl-Tab?), and run `x/[aeiou]/d'. If you want something weird like

Re: [dev] Experimental editor

2011-06-15 Thread Jon bradley
- Original message - Still I wonder why you try so much to stay modeless. Modes are a real advantage because each mode offers a separate editor. Take vi: You can edit in normal mode (= the actual vi mode) or in ex mode or in insert mode (e.g. with ^W, ^U). You have the choice which

Re: [dev] Experimental editor

2011-06-15 Thread Andrew Hills
On Wed, Jun 15, 2011 at 11:59 AM, Jon bradley weat...@gmail.com wrote: I own a keyboard that has no pgup/pgdn, or arrow keys. Did you steal it from a museum? --Andrew Hills

Re: [dev] Experimental editor

2011-06-15 Thread Peter John Hartman
A simple editor probably shouldn't have any more keybindings than, say, surf; in fact one or two less: page up/down, up/right/left/down, and find. One doesn't need modes for that.  If you want to do something wacked out to your file (like go to the third word on the 4th sentence and delete

Re: [dev] Experimental editor

2011-06-15 Thread Szabolcs Nagy
* Andrew Hills hills...@gmail.com [2011-06-15 11:51:17 -0400]: On Wed, Jun 15, 2011 at 11:59 AM, Jon bradley weat...@gmail.com wrote: I own a keyboard that has no pgup/pgdn, or arrow keys. Did you steal it from a museum? you don't have to go to a musem for that

Re: [dev] Experimental editor

2011-06-15 Thread Andrew Hills
On Wed, Jun 15, 2011 at 4:02 PM, Szabolcs Nagy n...@port70.net wrote: * Andrew Hills hills...@gmail.com [2011-06-15 11:51:17 -0400]: On Wed, Jun 15, 2011 at 11:59 AM, Jon bradley weat...@gmail.com wrote: I own a keyboard that has no pgup/pgdn, or arrow keys. Did you steal it from a museum?

Re: [dev] Experimental editor

2011-06-15 Thread Kurt H Maier
On Wed, Jun 15, 2011 at 4:24 PM, Andrew Hills hills...@gmail.com wrote: That keyboard also doesn't have Ctrl... and I'm guessing no one here will bother porting the editor to an Android app. Nokia n900/n810 have no pgdn or pgup, but do have ctrl and arrows. -- # Kurt H Maier

Re: [dev] Experimental editor

2011-06-15 Thread Peter John Hartman
On Wed, Jun 15, 2011 at 05:03:23PM -0400, Kurt H Maier wrote: On Wed, Jun 15, 2011 at 4:24 PM, Andrew Hills hills...@gmail.com wrote: That keyboard also doesn't have Ctrl... and I'm guessing no one here will bother porting the editor to an Android app. Nokia n900/n810 have no pgdn or pgup,

Re: [dev] Experimental editor

2011-06-15 Thread Michael Farnbach
plus mark, cut and paste. On Wed, Jun 15, 2011 at 2:11 PM, Peter John Hartman peterjohnhart...@gmail.com wrote: On Wed, Jun 15, 2011 at 05:03:23PM -0400, Kurt H Maier wrote: On Wed, Jun 15, 2011 at 4:24 PM, Andrew Hills hills...@gmail.com wrote: That keyboard also doesn't have Ctrl...

Re: [dev] Experimental editor

2011-06-15 Thread Piotr Zalewa
On 06/15/11 21:24, Andrew Hills wrote: On Wed, Jun 15, 2011 at 4:02 PM, Szabolcs Nagyn...@port70.net wrote: * Andrew Hillshills...@gmail.com [2011-06-15 11:51:17 -0400]: On Wed, Jun 15, 2011 at 11:59 AM, Jon bradleyweat...@gmail.com wrote: I own a keyboard that has no pgup/pgdn, or arrow

Re: [dev] Experimental editor

2011-06-15 Thread Andrew Hills
On Wed, Jun 15, 2011 at 1:40 PM, Piotr Zalewa zal...@gmail.com wrote: I use G2 as an emergency when I need to edit via SSH. it works well with vi. I have a Motorola Droid on which I use vi over SSH on a regular basis. It is extremely painless. --Andrew Hills

Re: [dev] Experimental editor

2011-06-12 Thread Martin Kühl
On Fri, Jun 10, 2011 at 00:05, Connor Lane Smith c...@lubutu.com wrote: My plan, then, is to write an editor for X, which although (almost-)modeless, is extremely fast to use. (I say `almost' because search, for instance, is a mode, but is at the users' locus of attention. I may also make

Re: [dev] Experimental editor

2011-06-12 Thread Connor Lane Smith
On 12 June 2011 18:55, Martin Kühl martin.ku...@gmail.com wrote: Have you considered a command-quasimode? That way you could keep vi-style composeable commands and stay mostly modeless. Yes, this is possible -- I was wondering whether we could fit in command composition. A quasimode would work

Re: [dev] Experimental editor

2011-06-12 Thread Leon
The editor uses interactive structural regular expressions, somewhat like sam, only with more visual support. Say you run the command `x/re/'; a special `match' buffer will open containing the matching lines and line numbers (and in the case of X Y, their file names too), allowing you to

Re: [dev] Experimental editor

2011-06-12 Thread Connor Lane Smith
On 13 June 2011 03:25, Leon leondistef...@gmail.com wrote: x doesn't necessarily match lines; it chunks the file arbitrarily. The chunks could potentially be huge. Of course; I just meant the matches and their addresses. Also, another buffer seems unwieldy. Still, perhaps a non-contiguous

Re: [dev] Experimental editor

2011-06-10 Thread Aurélien Aptel
On Fri, Jun 10, 2011 at 9:54 AM, Rafa Garcia Gallego rafael.garcia.gall...@gmail.com wrote: I like the idea of structural regex, but I haven't used sam much. The match buffer sounds a bit emacs-y for my taste. I doubt emacs has something exactly like that; then again I am more of a vi(m) guy so

Re: [dev] Experimental editor

2011-06-10 Thread Paul Onyschuk
After seeing words very experimental, I'm willing to share some ideas, maybe too controversial otherwise for suckless folk ;) First of all, check Recdit[1] editor. It's Mac OS X app, but nice paper and short video is available. It has some unique features. Is vertical side by side layout stupid

Re: [dev] Experimental editor

2011-06-10 Thread Yoshi Rokuko
+--- Paul Onyschuk ---+ [...] I love the text editor Sam. There is one problem with it - it's stack based WM over stack based WM. How to resolve this issue? Just look at so called distraction-free editors like FocusWriter[2] - using full screen is a feature. if

Re: [dev] Experimental editor

2011-06-10 Thread Connor Lane Smith
On 10 June 2011 08:54, Rafa Garcia Gallego rafael.garcia.gall...@gmail.com wrote: What do you mean by that? Is there an experimental way to view, insert, change, delete text? I've read below about the multiple views and all, is that one of the research-y ideas? Just curious. Well, you can't

Re: [dev] Experimental editor

2011-06-10 Thread Troels Henriksen
Paul Onyschuk bl...@bojary.koba.pl writes: It has been discussed before[1]. With Sam regexps, own window manager can be handy. Some quotes: Russ Cox rsc at swtch.com wrote: The die hard sam users would disagree vehemently with you. The nice thing about sam is that it's one window, not

[dev] Experimental editor

2011-06-09 Thread Connor Lane Smith
Hey all, I'd like to include those of you who aren't in IRC in the discussion we're having wrt writing a new text editor. We do already have Sandy of course, and I think Rafa is doing a great job, but there are a couple of reasons why I don't think it will for me replace Vi: 1. Curses: it has