Changes between Version 3 and Version 4 of Features/SearchAndReplace


Ignore:
Timestamp:
Mar 31, 2011, 7:34:42 PM (3 years ago)
Author:
szabgab
Comment:

text from Padre.pm

Legend:

Unmodified
Added
Removed
Modified
  • Features/SearchAndReplace

    v3 v4  
    1 == Description == 
     1= Search, Find and Replace = 
     2 
     3(the following text was taken from Padre.pm. It needs rewriting. 
     4 
     5== Search == 
     6 
     7'''Ctrl+F''' opens the search window, if something was selected then that is given as the search text. Otherwise the last search string should be displayed. 
     8 
     9Provide option to search backwards 
     10 
     11Limit action to current block, current subroutine, current file (should be the default) current project, current directory with some file filters. 
     12 
     13When the user presses Find 
     14 
     15* We find the first hit and the search window disappears. '''F3''' jumps to next one. 
     16 
     17* The first match is highlighted and focused but the window stays When the user clicks on the Find button again, we jump to the next hit  
     18In this case the user must be able to edit the document while the search window is on. 
     19 
     20* All the matches are highlighted and we go to the first match, window disappears. '''F3''' jumps to next one 
     21 
     22* All the matches are highlighted and we go to the first one, window stays open user can edit text 
     23 
     24 
     25== Find and Replace == 
     26 
     27* Find - find the next occurrence 
     28* Replace all - do just that 
     29* Replace - if currently a match is selected then replace it find the next occurrence and select it 
     30 
     31== TO DO describe what to do if we have to deal with files that are not in the editor == 
     32 
     33if "Replace all" was pressed then do just that 
     34   1) without opening editors for the files. 
     35   2) opening an editor for each file and keep it in unsaved state (sounds crazy having 1000 editors open...) 
     36if Search or Replace is clicked then we might show the next location in the lower pane. 
     37If the user then presses Replace we open the file in an editor window and go on. 
     38If the user presses Search then we show the next occurrence. 
     39Opened and edited files will be left in a not saved state. 
     40 
    241 
    342== Tickets ==