Re: [Bluemusic-users] editor stuff
Brought to you by:
kunstmusik
From: steven yi <ste...@cs...> - 2004-11-20 03:38:46
|
Hi Atte, > 1) indention: I normally use the following format for my code: > output<tab>opcode<tab>params > where output is optional. Since blue already knows what's the opcode, > it would be nice to be able to press a button and have the code > indented (all if no text is sellected else only the selected text). > Maybe it could be done in a more generic way, by allowing the user to > define his/(her?) own formatting rules. I'll see what I can do on this. I'm worried that it might not work well but I'll try and see what happens. =) Not sure about user definable formatting rules in a first version, but maybe down the line it'd be possible. > 2) Query replace (aka search and replace) would be nice too. I've been looking for a generic find/replace dialog but haven't found anything as of yet. =( I don't want to program one as I'm sure I can find something. If I can't find something soon, I'll start to build one next week. > 3) I'm so used to navigating using the standard linux shortcuts, and > would love to have them in blue. I don't know anything about > windows/mac but I assume win-users are used to similar but different > things. Maybe this difference could be handled in a smart way by > looking at which OS we're in... These are on the top of my wish list: > <ctrl>a goto beginning og line > <ctrl>e goto end of line > <ctrl>k kill line > <ctrl>y yank line > <ctrl>> goto next word (words are seperated by spaces) > <ctrl>< goto previous (or this if the cursor is on word) word > <ctrl>arrowdown goto next paragraph (paragraphs are seperated by > newlines) > <ctrlarrowup> goto previois (or this if in paragraph) paragraph > <ctrl>z undo This was surprisingly not so bad to do. for <ctrl>> and <ctrl>< , is this greater-than/less-than or arrows left and right? If arrows, this works already, if not, then I can't get it to work in emacs. The others either had actions there that needed an extra binding. For YankLine, this is the same as pasting, correct? And killLine cuts the text from the current position until the end of line, yes? (at least, this is what I'm observing from using emacs on my computer)e As for undo... that probably won't be for a while. I've had a hard time of figuring out how to get undo's to behave within blue; it's something I wish I could implement easily as it would save me a lot of grief as well, but it's going to take a while. Also, looking through this, I finally realize why blue is not using Mac key bindings on the mac (i.e. Command-C instead of Ctrl-C for copy). I'll see what I can do for this. Thanks for the feedback! steven |