jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: More on jed CUA mode


On Sat, 4 Jan 2003 10:02:52 +0800 wrote Andy Sy <andy@xxxxxxxxxxx>:

> Hello again, Guenter and other jed CUA mode
> fans. I finally had time to try out out 
> fix_indent and would like to make the following 
> comments and suggestions.
> 
> 1) Is it possible to for TAB to invoke 
> self_insert_cmd or insert_line instead of
> fix_indent when no region is highlighted?

Of course it is...

define fixed_indent()
{
   !if (is_visible_mark)
     self_insert_cmd();
   else
     ...
}

> 2) If the mark is right on (actually before) the
> first column of the last highlighted line, that
> line should not be included in the indent or
> undent.

  Possible as well...
  
> 3) The highlight should not disappear after the
> indent/undent region operation so that repeated
> TAB/Shift-Tabs are easily done.  (Again, this is
> how it works in Visual Studio.)
   ... 
   else
     {
        () = dupmark;
        ...
     }
    
> 4) CTRL-A should select entire buffer.
  
  This is already prepared. In my cua.sl, uncomment the first line and comment the second:
  
% setkey("mark_buffer",                "^A");   % mark All (KDE default)
setkey("dabbrev",                "^A");   % smart Abbreviation (jed default)
  
  This is due to my personal preference but should probabely be changed to the 
  cua default (as I can rebind it in my .jedrc) 

> 5) CTRL-SHIFT-END and CTRL-SHIFT HOME should
> select from point to eob and bob respectively.
> 
> 6) CTRL-SHIFT-Left and Right should mark regions
> following CTRL-Left and Right behaviour (i.e.
> highlight/skip by word)
    
  Yes indeed, but unfortunately, under Unix, jed doesnot distinguish
  Shift-Arrow and Ctrl-Shift-Arrow keypresses.
 
> 7) Standard CUA behaviour is for copy region
> operations to retain the highlighting afterwards
> instead of having it disappear. Is this possible 
> in jed?
  
  The cua-like applications I tried do not do this (nor would I like them to),
  but it can be easily achieved using dupmark. I could add an option to
  my cuamark.sl if required.
  
> 8) page_up and page_down should put the cursor in
> the vertical middle of the screen instead of at
> the top. Otherwise Shift-PgUp and PgDn are hard
> to use. (This is actually more a jed thing than
> specific to cua mode.)

  Klaus Schmidt had a fix for this...
  
> 9) should fix_indent be called fixed_indent instead?

  Yes, as long as not an even better name is found.
  
  
  Günter
  
--
Milde at ife.et.tu-dresden.de


--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]