bugDenemo - Bugs: bug #30391, More customary ctrl+left/right...

 
 

bug #30391: More customary ctrl+left/right behavior

Submitter:  None
Submitted:  Thu 08 Jul 2010 01:54:56 PM UTC
   
 
Category:  Feature request Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 02 Aug 2010 08:22:23 AM UTC, comment #5: 

A new command d-MarkStatus returns #t if the mark is set. In git now.

Richard Shann <rshann>
Group administrator
Sat 31 Jul 2010 02:03:55 AM UTC, comment #4: 

Is there a way in scheme to check if the mark is set?
The selection version of this script should extend the selection if it exists, otherwise set the mark.
Thanks, Dan W.

Anonymous
Thu 08 Jul 2010 06:11:36 PM UTC, comment #3: 

in git

Richard Shann <rshann>
Group administrator
Thu 08 Jul 2010 04:08:15 PM UTC, comment #2: 

I don't see that d-SetMark should be deprecated - if anything those built-ins that combine cursor moves and extending selection now seem redundant, but of course as they came in on the Ark they will never go.
I would have thought a clean way to code is to move the cursor where you want set the mark move to the other end and set the point. I think I may have done this recently myself. (I hope it works! I am sure it was supposed to:)

Richard Shann <rshann>
Group administrator
Thu 08 Jul 2010 02:02:27 PM UTC, comment #1: 

Not sure the best way to extend this to include the shift+ctrl+left/right.  There doesn't seem to be a version of PrevObjectInMeasure that extends the selection.  I assume the SetMark business is deprecated?

Anonymous
Thu 08 Jul 2010 01:54:56 PM UTC, original submission:  

Hi,
Here are a couple of scripts that imitate usual cursor behavior in word processors for ctrl+left or right.  In denemo currently ctrl+left jumps to the beginning of the previous bar regardless of the position of the cursor in the current; in a word processor this jumps first to the beginning of the current word.  So with this (assuming ctrl+left bindings are used) ctrl+left first jumps to the beginning of current bar if you're not already there.
Ctrl+right was already identical in behaviour as far as I could tell, with the exception of when you're in the final bar, it does nothing; this modified version will jump to the end of that bar in that case.
-Dan W.
Pasted:
Jump RIght:

(if (not (d-MoveToMeasureRight)) (d-MoveToEnd))

Jump Left:

(if (d-PrevObjectInMeasure)
(if (d-MoveToMeasureLeft) (d-MoveToMeasureRight))
(d-MoveToMeasureLeft))

Files are attached.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #20921:  JumpLeft added by None (487B - application/octet-stream)
file #20922:  JumpRight added by None (422B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by steele (Updated the item)
  • -email is unavailable- added by rshann (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-12-04 steele Open/ClosedOpen Closed
    2010-09-22 rshann StatusIn Progress Fixed
    2010-08-02 rshann StatusFixed In Progress
    2010-07-08 rshann StatusNone Fixed
    2010-07-08 None Attached File- Added JumpLeft, #20921
        Attached File- Added JumpRight, #20922

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code