libera/#climacs - IRC Chatlog
Search
12:17:27
scymtym_
beach: we talked about extracting text editing functions from Second Climacs (but also potentially McCLIM) into a separate library. i have started to do this and "discovered" some abstractions that seem similar to vi's editing model. i'm just mentioning this to make sure you are not already working on it
12:21:31
scymtym_
the library just sits on top of cluffer for now. there are small extensions for finding a "primary" cursor of a buffer and all "user-level" cursors of a buffer
12:25:15
scymtym_
the main idea is funneling all operations through generic functions such as (perform target unit direction operation) and (apply-from-cursor continuation cursor unit direction). this allows, for example, performing an operation to the point cursor of a buffer or all cursors as well as applying things like delete, upcase, transpose to items, words, lines, paragraphs, etc without spelling out all combination
12:25:34
beach
I really want to suggest a VI-like user interface for Second Climacs one day. I think the VIM users suffer more than I (and the other Emacs users) do from insufficient programming tools.
12:29:26
beach
Maybe we could even abstract out the "kill ring". What Emacs does is not that great actually, and I have many times in the past tried to figure out something better.
12:29:45
scymtym_
i don't plan to use these building blocks to make a vi-like interface (although that could be possible). emacs-like behavior can be expressed just as well: (add-keybinding '(#\b :meta) 'move :word :backward) (add-keybinding '(#\f :control :meta) 'move :expression :forward)
12:30:34
scymtym_
right, something like the kill ring and maybe undo would probably fit the scope of an abstract editing library