New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add major mode to search for text string in files or projects #866

Open
robmcmullen opened this Issue Feb 21, 2012 · 34 comments

Comments

Projects
None yet
1 participant
@robmcmullen
Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101021 042253Z] Would like to enter a search term and have peppy search for files containing that term.

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101021 042714Z] 3336c7f Refs #866: added framework for search in files

  • added search_in_files plugin
  • added SearchMode
  • added two search icons
  • added WidgetStack from AGW (modified to work with wx 2.8)
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101021 213933Z] c7c3ca7 Refs #866: added wildcard patterns to specify files/dirs to be skipped

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101022 030133Z] ac13a41 Refs #866: removed common prefix from filename when displayed in list

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101025 210047Z] 0c1257a Refs #866: added stop/start actions

  • changed GUI button to context sensitive start/stop button
  • added search time in status message upon completion
  • added new icons for search start/stop
  • added thread abort request in response to stop button
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101025 210050Z] 5fd786a Refs #866: added search through open documents

  • treat iterFiles as returning an abstracted sort item rather than URL
  • added custom threadedSearch to OpenDocsSearchMethod to use StyledTextCtrl's GetText method instead of opening file
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101026 001740Z] e6a4005 Refs #866: changed call from frame.open to frame.findTabOrOpen

  • prevents multiple tabs from opening when clicking on more than one match in the list
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101026 001742Z] 2a1cce4 Refs #866: refactored search method widget stack into a class

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101026 001744Z] 1514483 Refs #866: added regex and case matching search

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101028 031212Z] 522cdb5 Refs #866: fixed column size problem with large string match result

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101028 031215Z] b100b8d Refs #866: refactored threadedSearch into getMatchGenerator

  • moved iterator into AbstractStringMatcher.iterMatch
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101028 031217Z] 9238efa Refs #866: added pubsub calls to add extra search and text options

  • added new messages search_in_files.search_method.provider and search_in_files.text_search_option.provider
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101028 031219Z] 283db8e Refs #866: removed some comments and unneeded debug prints

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101028 031221Z] 9a3b33c Refs #866: removed initial text and directory

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101028 031222Z] d0a4da2 Refs #866: remove any dos line ending before inserting in list

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101028 031224Z] d8c8eb1 Refs #866: changed error reporting to display single line in status bar

  • displays full traceback in error log
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101028 031226Z] f3dffb7 Refs #866: set wx.Choice initial state to prevent indeterminate initial display (a blank entry in the choice button) on MSW

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101028 033004Z] 2ba915f Refs #866: fixed directory search prefix on MSW

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101029 230531Z] 31f4526 Refs #866: changed iterMatches to take file handle rather than bytes

  • removed GetText call which could fail if file was larger than available memory
  • added STCFH wrapper creating a mock file handler for STCs in open documents
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101029 230533Z] 11923bc Refs #866: changed "SearchOption" to "SearchType" to avoid confusion with the genericly named OptionStack

  • changed text_search_option pubsub message to search_in_files.text_search_type.provider
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101029 230535Z] 0080d0a Refs #866: changed about: filesystem to include fragments in URL

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101029 230537Z] 836a34e Refs #866: added fragment to about:search URL to specify initial search directory

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101030 190047Z] f5abb7a Refs #866: added getErrorString to AbstractStringMatcher

  • fixed search button that wasn't getting reset to proper label after failed search
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101030 190049Z] 42d03b5 Refs #866: Added query string processing to about: url scheme

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101030 190051Z] b8ac8da Refs #866: added query string to about:search URL

  • using "?search=TEXT&type=TEXT" can set some initial defaults
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101031 012517Z] e9bc32a Refs #866: moved some common stuff into peppy/lib/searchutils.py

  • changed SearchResult to supply unicode values rather than converting in getItemRawValues
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101031 033517Z] 5e673c2 Refs #866: refactored iterMatches to iterate over multiple potential matches in a line

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101031 033519Z] ce04f4c Refs #866: added numeric search as an example of a new search type

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101031 182930Z] f671c19 Refs #866: added hex search using hex comparisons

  • modified AbstractStringMatcher to move regex into subclasses
  • added convertFunc to be overridden in subclasses
  • refactored SingleParamMatcher into FloatSingleParamMatcher and HexSingleParamMatcher
  • fixed error reporting in stringToNumber
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101031 182932Z] 187cb92 Refs #866: added default case to if/else block in getStringMatcher

  • default case assumes trying to match exact value
  • also added "=" case, which is the same as the default case
@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101031 182934Z] 68cafa2 Refs #866: added initial documentation for search mode

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101101 154607Z] 685b1ba Refs #866: user manual spelling/formatting updates

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101105 145051Z] 17db789 Refs #866: added documentation on search types

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101105 145056Z] 96ead24 Refs #866: modified hex regex to accept intel hex specification e.g. FFh

@robmcmullen

This comment has been minimized.

Owner

robmcmullen commented Feb 21, 2012

[Trac time 20101116 192648Z] f4691f7 Refs #866: moved start/stop button to top line of header rather than bottom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment