Bug 81312

Summary: VIEWING: Enhancement request: letter, word, phrase transposition
Product: LibreOffice Reporter: ispinn
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: jbfaure, jmadero.dev
Priority: medium    
Version: 4.2.5.2 release   
Hardware: Other   
OS: Linux (All)   
Whiteboard: BSA
Crash report or crash signature: Regression By:

Description ispinn 2014-07-14 00:12:35 UTC
Intent

Identify and dedicate programming time to and an extremely common edit sequence normally done by hand which could benefit suite-wide by its having its own sophisticated keyboard shortcut defined to perform the same common but tedious sequence of 'select, cut, move, paste and cleanup' commands. 

Problem^h^h^h^h^h^h Enhancement description: 

Create a suite-wide keystroke shortcut that when two (words|letters|phrases) are selected will transpose the two. 

Steps to reproduce:

1. Select two:

A) letters by placing the cursor between the two target letters, or by selecting two letters,
B) phrases separated by a comma, semicolon, hyphen, or other user-defined separator or "separator word." 

or 

Select two or three words using click-n-drag, (wherein a three word selection ignores the middle word, e.g., "this and that," "his or hers," etc.)

2. Press the keyboard shortcut

3. The two letters are transposed, or the two words are transposed, or the two phrases are transposed. 

Current behavior:

None.

Expected behavior:

Transposition!

(Note: there is no clear category nor button to select in the process of submitting an enhancement request, thus it's being submitted here. Please recategorize this enhancement request, if necessary. 

I can and will submit a separate request for addressing the lack of a clear "enhancement request" methodology if requested by whomever ends up processing this request. --Warm regards, DP)
Operating System: Ubuntu
Version: 4.2.5.2 release
Comment 1 Jean-Baptiste Faure 2014-07-19 18:00:16 UTC
Please could you describe a use-case in which this functionality is needed?

I am pretty sure it is possible to write a macro doing that. Then you can assign this macro to a button or a shortcut.

Set status to NEEDINFO. Please set it back to UNCONFIRMED once you have provided requested informations. Thank you for your understanding.

Best regards. JBF
Comment 2 ispinn 2014-07-19 19:09:29 UTC
Thank you.

I cannot give you a specific example, 
but it is an operation that I will 
infrequently perform *using the same 
general process every time.* It's the 
repetition of the steps that clued me 
in to perhaps making it part of the 
suite as a basic writing too. 

I'm not a prolific writer, and I might 
have to do it once a quarter. How often 
for others? Hard to say. 

Make it a macro? I dunno. It's a debate 
as to whether it needs to be part of 
the basic suite, or available as a plug-in 
slash macro. I'll concede to the majority 
on this. 

Is there a place to open the discussion 
to a forum to get more input from the 
world?

Regards, DP
Comment 3 Joel Madero 2014-07-20 04:59:49 UTC
Yes I don't see a use case that would justify adding it to core code over a macro. Please head over to the ask site or the user mailing list and you can talk with users about how to make such a macro.

Thanks for understanding and I hope you're able to get assistance with writing a macro to accomplish what you want.