.. _section-Right-click Menu in Text Editor: Right-click Menu in Text Editor ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A right mouse click inside the **Text Editor** brings up a menu with choices for file management and query execution. :numref:`figure-Text-Editor-right-click-menu.png` shows the list of options from the right-click menu inside the **Text Editor**. .. _figure-Text-Editor-right-click-menu.png: .. figure:: ../../figs/Text-Editor-right-click-menu.png :alt: Right-click menu options inside the **Text Editor** Right-click menu options inside the **Text Editor** Many of the options in the right-click menu are also available from the **Sunflower** main navigation tab, as shown below in :numref:`figure-main-navigation-sunflower-menu.png`. .. _figure-main-navigation-sunflower-menu.png: .. figure:: ../../figs/main-navigation-sunflower-menu.png :alt: Main **Sunflower** navigation menu Main **Sunflower** navigation menu Using the right-click menu, a query can be executed from within the **Text Editor**. Identify a query in the file by clicking and then dragging so that the query is highlighted in blue, like the query **Greg [ aunt -> ?Aunt ]**, shown in :numref:`figure-Text-Editor-execute-query.png`. Then invoke the right-click menu and choose **Execute Query**. The query will be executed and results will be shown in the **Query Results** tab. Likewise, **Debug Query, Trace Query** and **Trace Query all explanations** can also be chosen from the right-click menu. These options offers more in-depth analysis of how the query result is obtained. .. _figure-Text-Editor-execute-query.png: .. figure:: ../../figs/Text-Editor-execute-query.png :alt: Right-click menu can be used to execute a highlighted query Right-click menu can be used to execute a highlighted query The **Describe in English** option of the right-click menu can be used to translate a highlighted statement into everyday English. To use this feature, first highlight a statement or a phrase in the file, then invoke the right-click menu and choose **Describe in English**. The translation is shown in the **Query Results** tab, as shown in :numref:`figure-Text-Editor-describe-in-english.png`. .. _figure-Text-Editor-describe-in-english.png: .. figure:: ../../figs/Text-Editor-describe-in-english.png :alt: English translation for **MotherInLaw** statement English translation for **MotherInLaw** statement The **Search Everywhere** option of the right-click menu can be used to search all occurrences of a term or a phrase in the file. To use this feature, first highlight a term or a phrase in the file, then invoke the right-click menu and choose **Search Everywhere**. All matches are returned in the **Search** tab, as shown in :numref:`figure-Text-Editor-search-everywhere.png`. .. _figure-Text-Editor-search-everywhere.png: .. figure:: ../../figs/Text-Editor-search-everywhere.png :alt: Use right-click menu to search all occurrences of the term **Betty** Use right-click menu to search all occurrences of the term **Betty** To edit a file without any Flora syntax highlighting, first load it into the **Text Editor**, then right click in the **Text Editor** and choose **open with > Text Editor**. This opens up the same file in a new tab in a standard editor’s window, as shown in :numref:`figure-Text-Editor-no-flora-syntax-highlighting.png`. The Flora syntax highlighting is off, and right click inside this window shows a standard editor’s menu. .. _figure-Text-Editor-no-flora-syntax-highlighting.png: .. figure:: ../../figs/Text-Editor-no-flora-syntax-highlighting.png :alt: **Show in > Text Editor** brings up file with no Flora syntax highlighting **Show in > Text Editor** brings up file with no Flora syntax highlighting