Updated user guide and welcome page. Among it a new page on Web+ and translations done for Google Code-In. Thanks everyone.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39691 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,12 +9,14 @@
|
||||
*
|
||||
* Authors:
|
||||
* Humdinger <[email protected]>
|
||||
* Translators:
|
||||
* fyskij
|
||||
*
|
||||
-->
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<meta name="robots" content="all" />
|
||||
<title>Queries</title>
|
||||
<title>Le query</title>
|
||||
<link rel="stylesheet" type="text/css" href="../Haiku-doc.css" />
|
||||
</head>
|
||||
<body>
|
||||
@@ -39,7 +41,7 @@
|
||||
<li><a href="../en/queries.html"><img src="../images/flags/gb.png" alt="" />English</a></li>
|
||||
</ul>
|
||||
<span>
|
||||
« <a href="index.html">Index</a>
|
||||
« <a href="index.html">Indice del file system</a>
|
||||
:: <a href="contents.html" class="uplink">Contenuti</a>
|
||||
:: <a href="workshop-filetypes+attributes.html">Workshop</a> »
|
||||
</span></div>
|
||||
@@ -47,111 +49,113 @@
|
||||
|
||||
<div id="content">
|
||||
<div>
|
||||
<div class="box-info">La traduzione di questa pagina non è stata completata. Per questo motivo le parti non tradotte sono visibili in inglese.</div>
|
||||
|
||||
|
||||
<table class="index" id="index" summary="index">
|
||||
<tr class="heading"><td>Index</td></tr>
|
||||
<tr class="heading"><td>Indice del file system</td></tr>
|
||||
<tr class="index"><td>
|
||||
<a href="#find-window">The Find window</a><br />
|
||||
<a href="#basic-query">Basic queries - "by Name"</a><br />
|
||||
<a href="#adv-query">Advanced queries - "by Attribute"</a><br />
|
||||
<a href="#more-adv-query">Even more advanced queries - "by Formula"</a><br />
|
||||
<a href="#result-window">The result window</a><br />
|
||||
<a href="#query-template">Query Templates</a>
|
||||
<a href="#find-window">La finestra di ricerca</a><br />
|
||||
<a href="#basic-query">Query di base - "per Nome"</a><br />
|
||||
<a href="#adv-query">Query avanzate - "per Attributo"</a><br />
|
||||
<a href="#more-adv-query">Query ancora più avanzate - "per Formula"</a><br />
|
||||
<a href="#result-window">La finestra dei risultati</a><br />
|
||||
<a href="#query-template">Modelli di query</a>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<h1>Queries</h1>
|
||||
<h1>Le query</h1>
|
||||
|
||||
<p>A query is a file search based on file attributes and can be performed within Tracker or in Terminal. Queries are saved in <span class="path">/boot/home/queries/</span> and by default last seven days before being purged. Note, these aren't static result lists of your search, but are the query formulas which trigger a new search whenever you open them.<br />
|
||||
Even better, you don't have to double-click to re-do a query. You can <a href="tracker.html#navigating">drill down</a> a saved query just like any folder by right-clicking on it and navigating through the submenus.</p>
|
||||
<p>Una query è una ricerca di file basata sugli attributi del file e può essere eseguita sia nel Tracker e sia nel Terminale. Di default le query vengono salvate in <span class="path">/boot/home/queries/</span> e vi rimangono sette giorni prima di essere eliminate. Nota, queste non sono liste dei risultati delle tue ricerche ma sono formule per effettuare le query che attivano una nuova ricerca ogni volta che vengono aperte.<br />
|
||||
Meglio ancora, non è necessario fare doppio click per rieseguire una query. Puoi <a href="tracker.html#navigating">vedere i dettagli</a> di una query salvata come se fosse una qualsiasi altra cartella seplicemente facendo click destro su di essa e navigando tramite i sottomenu.</p>
|
||||
|
||||
<h2>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="find-window" name="find-window">The Find window</a></h2>
|
||||
<p>You start a query by invoking the <span class="menu">Find...</span> menu either from the Deskbar menu or any Tracker window or the Desktop (which is actually a fullscreen Tracker window). The shortcut is <span class="key">ALT</span> <span class="key">F</span>. You're presented with the Find window:</p>
|
||||
<a id="find-window" name="find-window">La finestra di ricerca</a></h2>
|
||||
<p>Puoi eseguire una nuova query lanciando <span class="menu">Find...</span> dal menu della Deskbar, da qualsiasi finestra del Tracker o dal Desktop (che in realtà è una finestra del Tracker a schermo intero). La scorciatioia da tastiera è <span class="key">ALT</span> <span class="key">F</span>. La finestra di ricerca si presenta così:</p>
|
||||
<img src="images/queries-images/basic-query.png" alt="basic-query.png" />
|
||||
<ol>
|
||||
<li><p>Select recent or saved queries or save the current search parameters as <a href="#query-template">Query Template</a>.</p></li>
|
||||
<li><p>Narrow down your search from <span class="menu">All files and folders</span> to specific file types.</p></li>
|
||||
<li>Define the search method:<ul>
|
||||
<li><span class="menu">by Name</span> - a basic search by file or folder name</li>
|
||||
<li><span class="menu">by Attribute</span> - an advanced search, you specify search terms for one or more attributes</li>
|
||||
<li><span class="menu">by Formula</span> - an even more advanced search, you can fine-tune a complex query term</li></ul></li>
|
||||
<li><p>Select which drives to search on.</p></li>
|
||||
<li><p>Enter the search term.</p></li>
|
||||
<li><p>The expander hides/unhides the additional options.</p></li>
|
||||
<li><p>Uncheck the <span class="menu">Temporary</span> checkbox if you don't want this query self-destruct after 7 days.</p></li>
|
||||
<li><p>Check if your query is supposed to <span class="menu">Include trash</span>.</p></li>
|
||||
<li><p>Optionally, enter a name for this query if you want to save it.</p></li>
|
||||
<li><p>You can drag&drop the icon anywhere to save a query. Doing that with the right mouse button, offers the option to save as template.</p></li>
|
||||
<li><p>Salva i parametri di ricerca o seleziona le query precedentemente salavate, così come in <a href="#query-template">Query Template</a>.</p></li>
|
||||
<li><p>Affina la tua ricerca con <span class="menu">All files and folders</span> per i tipi di file specifici.</p></li>
|
||||
<li>Definisce il metodo di ricerca:<ul>
|
||||
<li><span class="menu">per Nome</span> - una ricerca in base al nome del file o della cartella</li>
|
||||
<li><span class="menu">per Attributo</span> - una ricerca avanzata, puoi specificare i termini di ricerca per uno o più attributi</li>
|
||||
<li><span class="menu">per Formula</span> - una ricerca ancora più avanzata, è possibile mettere a punto un termine di ricerca complesso</li></ul></li>
|
||||
<li><p>Seleziona su quali unità cercare.</p></li>
|
||||
<li><p>Il termine di ricerca.</p></li>
|
||||
<li><p>Visualizza o nasconde opzioni aggiuntive.</p></li>
|
||||
<li><p>Non selezionare la casella <span class="menu">Temporary</span> se non vuoi che la query venga distrutta dopo 7 giorni.</p></li>
|
||||
<li><p>Spunta se vuoi che la tua ricerca <span class="menu">Includa il cestino</span>.</p></li>
|
||||
<li><p>Facoltativamente, inserisci il nome della query se vuoi che venga salvata.</p></li>
|
||||
<li><p>Per salvare la query puoi trascinare e rilasciare questa icona in qualsiasi posizione. In questo modo con il tasto destro del mouse puoi salvare la ricerca come template.</p></li>
|
||||
</ol>
|
||||
|
||||
<h2>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="basic-query" name="basic-query">Basic queries - "by Name"</a></h2>
|
||||
<p>If you simply want to find all files and folders on your mounted disks that match a certain pattern, simply leave the search method at <span class="menu">by Name</span>, enter the search term into the text box and press <span class="key">ENTER</span>.</p>
|
||||
<a id="basic-query" name="basic-query">Query di base - "per Nome"</a></h2>
|
||||
<p>Se vuoi semplicemente trovare tutti i file e le cartelle sui tuoi dischi che corrispondono ad un modello specifico, lascia il metodo di ricerca su <span class="menu">by Name</span>, inserisci il termine di ricerca nella casella di testo e premi <span class="key">ENTER</span>.</p>
|
||||
|
||||
<h2>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="adv-query" name="adv-query">Advanced queries - "by Attribute"</a></h2>
|
||||
<p>You can create more advanced queries by searching within the attributes of specific file types. For that to work, these attributes have to be <a href="index.html">indexed</a>.</p>
|
||||
<a id="adv-query" name="adv-query">Query avanzate - "per Attributo"</a></h2>
|
||||
<p>Puoi creare delle query più avanzate cercando in base agli attributi di tipi di file specifici. Per fare ciò, questi attributi devono essere <a href="index.html">indicizzati</a>.</p>
|
||||
<img src="images/queries-images/query-window.png" alt="query-window.png" />
|
||||
<p>You start by setting the filetype from <span class="menu">All files and folders</span> to, for example, <span class="menu">Text | E-mail</span> and change the search method to <span class="menu">by Attribute</span>.</p>
|
||||
<p>This adds a pop-up menu to the left of the textbox and the buttons <span class="button">Add</span> and <span class="button">Remove</span> under that. From the menu you choose which attribute to query. With <span class="button">Add</span> and <span class="button">Remove</span> you can query additional attributes or remove them again. These attributes can be logically linked with AND/OR.</p>
|
||||
<p>Let's do an email query as an example:</p>
|
||||
<p>Puoi inziare impostando il tipo di file da <span class="menu">All files and folders</span>, per esempio, <span class="menu">Text | E-mail</span> e cambiare il metodo di ricerca in <span class="menu">by Attribute</span>.</p>
|
||||
<p>Questo aggiunge un menu pop-up a sinistra della casella di testo e, sotto di questo, i bottoni <span class="button">Add</span> e <span class="button">Remove</span>. Dal menu puoi scegliere con quali attributi fare una query. Con <span class="button">Add</span> e <span class="button">Remove</span> puoi fare query con attributi addizionali o rimuoverli. Questi attributi possono essere collegati con AND/OR.</p>
|
||||
<p>Facciamo per esempio una email query:</p>
|
||||
<img src="images/queries-images/query-window-filled.png" alt="query-window-filled.png" />
|
||||
<p>This is your Find window when you're looking for all emails Clara Botters has sent to you in the last two months that had in the subject "vibraphone" or "skepticality".<br />
|
||||
As you see, searching through time-based attributes supports some useful phrases: besides for the "last 2 months", you could also use "today", "yesterday", "Monday" or "last Monday" (which would be the Monday last week), or "last 2 minutes/hours/days/weeks".<br />
|
||||
A good way to cut down the number of search results.</p>
|
||||
<p>Questa è la finestra di ricerca, quando cerchi tutte le email ricevute da Clara Botters negli ultimi due mesi che hanno nel Soggetto "vibrafono" o "scettico".<br />
|
||||
Come vedi, la ricerca attraverso gli attributi basati sul tempo supporta alcune frasi utili come: oltre a "gli ultimi due mesi", puoi usare anche "oggi", "ieri", "lunedì" o "o l'ultimo lunedì" (che è il lunedì dell'ultima settimana), o "o gli utlimi 2 minuti/ore/giorni/settimane".<br />
|
||||
Questo è un buon modo per ridurre il numero di risultati di ricerca.</p>
|
||||
|
||||
<h2>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="more-adv-query" name="more-adv-query">Even more advanced queries - "by Formula"</a></h2>
|
||||
<p>Typing in a formula query by hand is daunting and really quite unpractical. It still has its uses.</p>
|
||||
<p>Take the above query by attribute of Clara's mails concerning vibraphones etc. If you have all the attributes and their search terms set, try switching to <span class="menu">by Formula</span> mode and be overwhelmed by this one line query string:</p>
|
||||
<a id="more-adv-query" name="more-adv-query">Query ancora più avanzate - "Per Formula"</a></h2>
|
||||
<p>Inserire manualmente una formula per effettuare una query (espressioni regolari) è davvero scoraggiante e poco pratico. Ma ha anche altri usi.</p>
|
||||
<p>Prende le query precedenti in base all'attributo delle mail di Clara relative a vibrafoni ecc. Se si dispone di tutti gli attributi ed i loro termini di ricerca impostati, prova ad usare la modolità <span class="menu">by Formula</span> e si sopraffatto da questa stringa di ricerca di una liena:</p>
|
||||
<img src="images/queries-images/formula-query.png" alt="formula-query.png" />
|
||||
<p>Once more as text, edited for readability:</p>
|
||||
<p>Ancora una volta, modificato per renderlo leggibile</p>
|
||||
<pre>(((((MAIL:from=="*[cC][lL][aA][rR][aA] [bB][oO][tT][tT][eE][rR][sS]*")
|
||||
&&(MAIL:when>=%2 months%))
|
||||
&&(MAIL:subject=="*[vV][iI][bB][rR][aA][pP][hH][oO][nN][eE]*"))
|
||||
||(MAIL:subject=="*[sS][kK][eE][pP][tT][iI][cC][aA][lL][iI][tT][yY]*"))
|
||||
&&(BEOS:TYPE=="text/x-email"))</pre>
|
||||
<p>What's the use?</p>
|
||||
<p>Qual'è l'uso?</p>
|
||||
<ul>
|
||||
<li><p>You could copy and paste the string into an email, forum or IRC for others to use or debug.</p></li>
|
||||
<li><p>You can use this method to construct a query in <span class="menu">Attribute</span> mode and then switch to <span class="menu">Formula</span> mode, to comfortably generate a search string to use for a query in Terminal or a script.</p></li>
|
||||
<li><p>You can fine tune your query by inserting parenthesis where needed, make parts case-sensitive or negate logical combinations by changing. e.g. "<tt>==</tt>" to "<tt>!=</tt>" for a NOT AND. All you need is a basic understanding of <a href="http://en.wikipedia.org/wiki/Regular_expression" class="external free" title="Wikipedia: Regular expression">regular expressions</a> and maybe some scripting basics.</p></li>
|
||||
<li><p>Puoi copiare la stringa e incollarla ad altre persone in un'email, su un forum o su IRC per essere usata o per un debug.</p></li>
|
||||
<li><p>Puoi usare qesto metodo per costruire una query in modalità <span class="menu">Attribute</span> e quindi passare alla modalità <span class="menu">Formula</span>, per generare comodamente una stringa di ricerca da utilizzare per una query nel Terminal o in uno script.</p></li>
|
||||
<li><p>È possibile affinare la query inserendo parentesi dove necessario, rendere alcune parti case-sensitive o annulare combinazioni logiche cambiando, per sempio "<tt>==</tt>" to "<tt>!=</tt>" per NOT AND. Tutto quello che ti serve è una conoscenza basilare delle <a href="http://it.wikipedia.org/wiki/Espressione_regolare" class="external free" title="Wikipedia: Espressione regolare">espressioni regolari</a> e forse alcune nozioni di base sullo scripting.</p></li>
|
||||
</ul>
|
||||
|
||||
<h2>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="result-window" name="result-window">The result window</a></h2>
|
||||
<p>After you start a search, the Find window will be replaced by a result window. Here is an example that queried for "server":</p>
|
||||
<a id="result-window" name="result-window">La finestra dei risultati</a></h2>
|
||||
<p>Dopo aver avviato una ricerca, la finestra Find sarà sostituita da una finestra di risultati. Ecco un esempio di query per la stringa "server":</p>
|
||||
<img src="images/queries-images/result-window.png" alt="result-window.png" />
|
||||
<p>Besides the gray background, result windows work exactly like any other Tracker window. Some things are worth noting:</p>
|
||||
<p>Oltre allo sfondo grigio, le finestre dei risultati funzionano esattamente come qualsiasi altra finestra del Tracker. Ma alcune cose hanno bisogno di una spiegazione:</p>
|
||||
<ul>
|
||||
<li><p>You can open the location of a file or folder by double clicking on its path attribute.</p></li>
|
||||
<li><p>With <span class="menu">File | Edit Query</span> or <span class="key">ALT</span> <span class="key">G</span> you get back to your Find window to refine your query.</p></li>
|
||||
<li><p>A query is live, i.e. if a file that matches your search criteria appears or disappears from your system, this change is reflected in your results in real-time.</p></li>
|
||||
<li><p>È possibile aprire la posizione di un file o una cartella con un doppio clic sul percorso del suo attributo.</p></li>
|
||||
<li><p>Con <span class="menu">File | Edit Query</span> o <span class="key">ALT</span> <span class="key">G</span> puoi tornare alla finestra di ricerca per ridefinire la tua query.</p></li>
|
||||
<li><p>Una query è live quando un file che corrisponde ai tuoi criteri di ricerca appare o scompare dal tuo sistema, questi cambiamenti si riflettono in tempo reale nei tuoi risultati.</p></li>
|
||||
</ul>
|
||||
<p>You can assign a sensible attribute layout for query results of a specific filetype. Open a folder containing files of the filetype you'd like to create a template for and arrange the attributes how you'd like to have query results presented. Copy this layout with <span class="menu">Attributes | Copy Layout</span>.</p>
|
||||
<p>Open <span class="path">/boot/home/config/settings/Tracker/DefaultQueryTemplates</span>, create a new folder named <i>group/filetype</i>, replacing the slash with an underscore, e.g. "audio_x-mp3". Open the new folder and paste in the previously copied layout with <span class="menu">Attributes | Paste Layout</span>.</p>
|
||||
<p>Puoi assegnare il layout di un attributo al risultato di una query per un tipo di file specifico.
|
||||
Apri una cartella contenente file con l'estensione di cui ti piacerebbe creare un modello per organizzare gli attributi che ti piacerebbe avere nei risultati della query.
|
||||
Copia questo layout con <span class="menu">Attributes | Copy Layout</span>.</p>
|
||||
<p>Apri <span class="path">/boot/home/config/settings/Tracker/DefaultQueryTemplates</span>, crea una nuova cartella chiamata <i>group/filetype</i>, sostituendo gli slash con un underscore, esempio "audio_x-mp3". Apri la nuova cartella e incolla il layout precedentemente copiato con <span class="menu">Attributes | Paste Layout</span>.</p>
|
||||
|
||||
|
||||
<h2>
|
||||
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
||||
<a id="query-template" name="query-template">Query Templates</a></h2>
|
||||
<p>If you double click a saved query, the file search is at once started and the result window opens immediately. However, you may not want to search with these <i>exact</i> search parameters, but use it as starting point to only slightly tweak the formula.<br />
|
||||
By using the <span class="menu">Save Query as Template</span> menu item (see <a href="#find-window">(1) in screenshot</a> at the top) or drag&dropping the icon (10) anywhere with the right mouse button, you can create just such a template. Double clicking it won't open a result window, but the Find panel, giving you the opportunity to quickly change search strings or add/remove attributes.</p>
|
||||
<p>Wherever you choose to save query templates, they'll be listed in the Find panel's menu of recent queries.</p>
|
||||
<a id="query-template" name="query-template">Modelli di Query</a></h2>
|
||||
<p>Se fai doppio clic su una query salvata verrà avviata la ricerca dei file e la finestra dei risultati si aprirà immediatamente.
|
||||
Tuttavia, è possibile che non desideri effettuare una ricerca con questi <i>esatti</i> parametri, ma potrai usarli come punto di partenza per modificare la formula.<br />
|
||||
Puoi creare un modello usando la voce del menu <span class="menu">Save Query as Template</span> (guarda <a href="#find-window">(1) nello screenshot</a> in cima) o trascinando e rilasciando l'icona con il tasto destro del mouse(10) in qualsiasi punto. Facendo doppio clic non si aprirà la finestra dei risultati, ma il pannello di ricerca, che ti darà la possibilità di cambiare velocemente le stringhe di ricerca o aggiungere e rimuovere gli attributi.</p>
|
||||
<p>Ogni volta che si sceglierà di salvare i modelli di query, essi verranno elencati nel menu "query più recenti" del pannello Find.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="nav">
|
||||
<div class="inner"><span>
|
||||
« <a href="index.html">Index</a>
|
||||
« <a href="index.html">Indice del file system</a>
|
||||
:: <a href="contents.html" class="uplink">Contenuti</a>
|
||||
:: <a href="workshop-filetypes+attributes.html">Workshop</a> »
|
||||
</span></div>
|
||||
|
||||
Reference in New Issue
Block a user