Package peppy :: Package plugins :: Module text_transforms :: Class DowncaseWord
[frames] | no frames]

Class DowncaseWord

                        object --+            
                                 |            
actions.base.BufferBusyActionMixin --+        
                                     |        
                    object --+       |        
                             |       |        
              debug.debugmixin --+   |        
                                 |   |        
              actions.SelectAction --+        
                                     |        
   actions.base.TextModificationAction --+    
                                         |    
     actions.base.WordOrRegionMutateAction --+
                                             |
                                            DowncaseWord

Downcase the current word or the highlighted region.

This will also move the cursor to the start of the next word.

Instance Methods
 
mutate(self, txt)
Change to all lower case.

Inherited from actions.base.WordOrRegionMutateAction: action, mutateSelection

Inherited from actions.base.BufferBusyActionMixin: isActionAvailable, isEnabled

Inherited from actions.SelectAction: __call__, __init__, getMenuItemName, getSubIds, getTooltip, initPostHook, initPreHook, insertIntoMenu, insertIntoToolbar, showEnable

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods

Inherited from actions.base.TextModificationAction: worksWithMajorMode

Inherited from actions.SelectAction: getHelp, setAcceleratorText

Inherited from debug.debugmixin: dprint

Class Variables
  alias = 'downcase-region-or-word'
This alias holds an emacs style name that is used during M-X processing.
  name = 'Downcase'
This is the name of the menu entry as it appears in the menu bar.
  key_bindings = {'emacs': 'M-L'}
Map of platform to default keybinding.
  default_menu = ('Transform/Case', 102)
The default menu location is specified here as a tuple containing the menu path (separated by / characters) and a number between 1 and 1000 representing the position within the menu.
  icon = 'icons/text_lowercase.png'
If there is an icon associated with this action, name it here.
  default_toolbar = False
Toolbar item will automatically be created unless this is False

Inherited from actions.SelectAction: global_id, keyboard, stock_id, tooltip

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

mutate(self, txt)

 

Change to all lower case.

Parameters:
  • txt - input text
Returns:
text resulting from the desired processing
Overrides: actions.base.WordOrRegionMutateAction.mutate