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

 
 

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

Submitted by:  None
Submitted on:  Thu 08 Jul 2010 01:54:56 PM UTC  
 
Category: Feature requestSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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>
Project 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 File(s):
   
   
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
  • -unavailable- added by steele (Updated the item)
  • -unavailable- added by rshann (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 04 Dec 2010 12:21:50 PM UTCsteeleOpen/ClosedOpen=>Closed
    Wed 22 Sep 2010 10:35:46 AM UTCrshannStatusIn Progress=>Fixed
    Mon 02 Aug 2010 08:22:23 AM UTCrshannStatusFixed=>In Progress
    Thu 08 Jul 2010 06:11:36 PM UTCrshannStatusNone=>Fixed
    Thu 08 Jul 2010 01:54:56 PM UTCNoneAttached File-=>Added JumpLeft, #20921
      Attached File-=>Added JumpRight, #20922

    Back to the top


    Powered by Savane 3.1-cleanup1