La traduzione di questa pagina non è stata ancora completata. Finché non lo sarà, le parti non tradotte saranno visualizzate in inglese.

textsearch-icon_64.pngTextSearch

Deskbar:Nessuno, in genere lanciato tramite Componenti Aggiuntivi del Tracker
Percorso:/boot/system/apps/TextSearch
Impostazioni:~/config/settings/TextSearch


TextSearch looks for a string in text files. Typically it is invoked from Tracker's Add-on context menu on the selection of files or folders you want to search.

textsearch.png

You enter a search string in the text box on top and hit RETURN or click Search to start. If Show lines is checked, the hits are automatically expanded to show the lines of the file containing the search string.

Only a few words on some of the otherwise self-explaining menu items:

File menu

New windowALT N Opens a new window where you can enter another string and search through the same files/folders.
Set target…ALT FLets you choose a new set of files and folders to search through. Alternatively you can drag and drop files/folders into the window.

Action menu

Trim selectionALT T Removes all entries from the list that are not currently selected.
Open selectionALT OOpens the currently selected files with their preferred application (same as a double-click). If it's a text editor supporting it (like Pe), you can jump to the exact line the search string was found.
Show files in TrackerALT KOpens the location of the currently selected files in Tracker.
Copy text to clipboardALT BCopies the current selection to the clipboard.

Settings menu

Skip folders starting with a dot This is useful when working in a "unixy" environment, where often administrative files are hidden inside ".folders/". Source versioning systems like SVN and CVS are examples of applications using this and are also widely used in Haiku.
Regular expression TextSearch uses the command line tool grep. For it, special characters like '"*\$?! and spaces have to be escaped with a \. Activating this setting means you have to do this yourself, but in exchange grants you the power of regular expressions.
Text files only TextSearch is currently only useful for finding strings in plain text files. Deactivating this setting will have it look through any kind of file anyway.
Open files in code editor Forces files to be opened in the preferred code editor (that handles text/x-source-code). Otherwise a file will be opened in whatever app is set for its filetype. Useful, for example, when editing HTML files that normally would open in your browser.

History menu

Contains recently used search strings.

Encoding menu

Lets you choose different character encodings if needed.