Show
Ignore:
Timestamp:
07/10/08 18:14:38 (4 months ago)
Author:
rob
Message:

Added JobControlMixin? to FundamentalMode? so that all text modes can use the RunFilter? command
* removed JobControlMixin? from PythonMode? and BashMode?
* added class_storage to MajorMode?
* remember last filter by storing in class_storage

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/peppy/mainmenu.py

    r1471 r1481  
    512512 
    513513    def action(self, index=-1, multiplier=1): 
     514        if self.name in self.mode.class_storage: 
     515            last = self.mode.class_storage[self.name] 
     516        else: 
     517            last = '' 
    514518        minibuffer = TextMinibuffer(self.mode, self, label="Command line:", 
    515                                     initial = self.mode.getScriptArgs()) 
     519                                    initial = last) 
    516520        self.mode.setMinibuffer(minibuffer) 
    517521        self.mode.setStatusText("Enter command line, %s will be replaced by full path to file") 
    518522 
    519523    def processMinibuffer(self, minibuffer, mode, text): 
     524        self.mode.class_storage[self.name] = text 
    520525        self.mode.startCommandLine(text, expand=True) 
    521526