Skip to content

Commit 8796fc2

Browse files
Fill usage help topic
1 parent dfc509a commit 8796fc2

3 files changed

Lines changed: 120 additions & 30 deletions

File tree

README-rus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
чтобы сообщить плагину, что вы намерены работать с этим репозиторием. Это можно сделать несколькими способами:
6868
* *Ничего не делать*: при попытке поиска имени плагин сам предложит загрузить один из файлов тегов, который он нашел в родительских каталогах.
6969
* Переместите курсор на файл тегов и просто нажмите Enter.
70-
* Переместите курсор на файл тегов, нажмите **F11->Ctags Source Navigator->Load tags file** (самый скучный способ загрузки тегов).
70+
* Переместите курсор на файл тегов, нажмите **F11->Ctags Source Navigator->Load tags file**.
7171
* Загрузите недавно открытый файл тегов. Нажмите **F11->Ctags Source Navigator->Load from history** и выберите файл тэгов.
7272

7373
Теперь плагин «знает» о символах в вашем репозитории, и вы можете использовать плагин для поиска имен.

README.md

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -63,45 +63,48 @@ This is a [Far Manager](https://www.farmanager.com/) plugin for browsing source
6363
### BTW if you are Lua developer check out [Yet Another Lua TAgs](https://github.com/EugeneManushkin/Yalta)
6464
It easily integrates with the plugin. Just download [latest release](https://github.com/EugeneManushkin/Yalta/releases), unzip it and put full path to
6565
ctags_wrapper.bat script located in \<unpacked_release_folder\>\yalta\ctags_wrapper.bat to 'Path to ctags.exe' in plugin configuration menu.
66-
## Usage
67-
#### 1. Navigate to source code in not indexed files
66+
## How to use
67+
### Navigate to source code in not indexed files
6868
You may use the plugin in an opened file even if it is not indexed by ctags utility. Plugin will automatically index currently edited file and let you search names in it
69-
#### 2. Index your repository
69+
### Index your repository
7070
If you want to search names and files in entire repository you should index it with the ctags utility. Use ctags plugin to do this: goto your repository folder, navigate cursor to folder you want to index by ctags or navigate to top folder ("..") if you want to index entire repository folder. Press **F11->Ctags Source Navigator->Index selected directory**. Tags file will be created inside selected folder and all symbols will be automatically loaded in plugin. If you already have a repository indexed by ctags you may load index file ('tags') to tell the plugin that you want to browse this repository. Do either:
71-
* *Do not do anything*: on attempt to search a name plugin will suggest to load one of the 'tags' files found in parent directories.
71+
72+
* Just start using plugin. On attempt to search a name plugin will suggest to load one of the 'tags' files found in parent directories or suggest to index your git or svn repository.
7273
* Navigate cursor to the 'tags' file, and just press Enter.
73-
* Navigate cursor to the 'tags' file, press **F11->Ctags Source Navigator->Load tags file** (the most boring way to load tags).
74-
* Load recently opened 'tags' file. Press **F11->Ctags Source Navigator->Load from history** and select your tags file.
74+
* Navigate cursor to the 'tags' file, press #F11->Ctags Source Navigator->Load tags file#.
75+
* Load recent 'tags' file from 'Manage repositories' menu: #F11->Ctags Source Navigator->Manage repositories#.
7576

76-
Now plugin 'knows' about symbols in your repository and you can browse it's source code and lookup names in it.
77-
#### 3. Permanent repositories
77+
Now plugin 'knows' about symbols in your repository and you can browse it's source code and search names.
78+
### Reindex file or entire repository
79+
Plugin does not do anything in background. If you noticed that plugin cannot find something too often then you may reindex your repository.
80+
Press **F11->Ctags Source Navigator->Reindex repository** in main menu or in editor menu and then plugin will suggest you to select one of the tags files which you may reindex. **If something goes wrong while reindexing (e.g. reindexing is canceled) plugin will rollback on old tags file.**
81+
You may also reindex currently editing file. Press **F11->Ctags Source Navigator->Reindex this file** in editor menu.
82+
### Permanent repositories
7883
By default plugin does not allow to search names from places that are not belong to a certain repository. However this behaviour may be changed by making a repository permanent.
7984
Navigate to a repository folder and press **F11->Ctags Source Navigator->Add permanent repository**. Plugin will suggest you to select one of the tags files which corresponds to a selected repository.
8085
To unload permanent repository open menu **F11->Ctags Source Navigator->Manage repositories**, select permanent repository and then press Ctrl+Del.
81-
#### 4. Go to declaration/definition (Ctrl+F)
86+
### Go to declaration/definition (Ctrl+F)
8287
Open a file inside your repository folder, navigate to a name you want to search definition/declaration of. Press **F11->Ctags Source Navigator->Go to** and plugin will automatically move the cursor to declaration of that name. If a name has multiple declarations (e.g. in C++ definition of a name is also a name declaration) plugin will suggest to load one of the declaration
83-
#### 5. Open include file (Ctrl+F)
88+
### Search names in entire repository (Ctrl+Shift+T)
89+
This option works in plugin main menu and in editor menu. Press **F11->Ctags Source Navigator->Search name in entire repository** and begin typing (or insert by Ctrl+V or Shift+Ins) a name you want to search.
90+
### Search names in opened file (Ctrl+Shift+X)
91+
Press **F11->Ctags Source Navigator->Search name in opened file** and begin typing (or insert by Ctrl+V or Shift+Ins) a name you want to search.
92+
### Search file by name (Ctrl+Shift+R)
93+
This feature is available from main and editor menu: press **F11->Ctags Source Navigator->Search file by name** and begin typing a file name you want to open. You may specify a partial path to file with a filename to filter search result by location: ```tests\tags_cache\main.cpp```.
94+
You may also specify a line number after a colon symbol like ```my_file.h:1234```
95+
### Open include file (Ctrl+F)
8496
Open a file inside your repository folder, set cursor to an include file inside angle brackets or to any quoted file path. Press **F11->Ctags Source Navigator->Go to** and plugin will open the file
85-
#### 6. Autocomplete name (Ctrl+Space)
97+
### Autocomplete name (Ctrl+Space)
8698
Start typing name in editor and then press **F11->Ctags Source Navigator->Complete symbol**
87-
#### 7. Return cursor to previous position (Ctrl+G)
99+
### Return cursor to previous position (Ctrl+G)
88100
Press **F11->Ctags Source Navigator->Go back** to return cursor to previous position
89-
#### 8. Return to current position from previous position (Ctrl+D)
101+
### Return to current position from previous position (Ctrl+D)
90102
If you moved the cursor to a previous position by using "Go Back" option you may return the cursor back. To do this press **F11->Ctags Source Navigator->Go forward**
91-
#### 9. List all class members
103+
### List all class members
92104
Set cursor on class name and then press **F11->Ctags Source Navigator->Class members**
93-
#### 10. Search names defined in current file (Ctrl+Shift+X)
94-
Press **F11->Ctags Source Navigator->Search name in opened file** and begin typing (or insert by Ctrl+V or Shift+Ins) a name you want to search.
95-
#### 11. Search names defined in entire repository (Ctrl+Shift+T)
96-
This option works in plugin main menu and in editor menu. Press **F11->Ctags Source Navigator->Search name in entire repository** and begin typing (or insert by Ctrl+V or Shift+Ins) a name you want to search.
97-
#### 12. Search indexed file (Ctrl+Shift+R)
98-
This feature is available from main and editor menu: press **F11->Ctags Source Navigator->Search file by name** and begin typing a file name you want to open. You may specify a partial path to file with a filename to filter search result by location: ```tests\tags_cache\main.cpp```.
99-
You may also specify a line number after a colon symbol like ```my_file.h:1234```
100-
#### 14. Filter results in any select menu (Tab - new filter, Esc - return to previous filter, Ctrl+Z - close menu)
105+
### Filter results in any select menu (Tab - new filter, Esc - return to previous filter, Ctrl+Z - close menu)
101106
You may filter any results and even filter your filtered results in any select menu. Press **Tab** to begin new filter, **Esc** or **Backspace** to return to previous filter and **Ctrl+Z** to close menu.
102107
Regular expressions are supported.
103-
#### 15. Reindex your repository
104-
You may reindex your repository if current code database is outdated. Press **F11->Ctags Source Navigator->Reindex repository** in main menu or in editor menu and then plugin will suggest you to select one of the tags files which you may reindex. **If something goes wrong while reindexing (e.g. reindexing is canceled) plugin will rollback on old tags file.**
105108
## Default macro hotkeys (available if installed)
106109
### Editor hotkeys:
107110
+ Go to - ```Ctrl+F```

far_plugin/facade/far3/src/tagseng.hlf.in

Lines changed: 92 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ $^#${CTAGS_VERSION_MAJOR}.${CTAGS_VERSION_MINOR}.${CTAGS_VERSION_REVISION}.${CTA
1717

1818
#Table of contents#
1919

20-
~About~@ About@
21-
2220
~How to use~@ Usage@
2321

2422
~Panel menu~@ PanelMenu@
@@ -31,6 +29,8 @@ $^#${CTAGS_VERSION_MAJOR}.${CTAGS_VERSION_MINOR}.${CTAGS_VERSION_REVISION}.${CTA
3129

3230
~Features~@ Features@
3331

32+
~About~@ About@
33+
3434

3535

3636

@@ -61,11 +61,98 @@ Please click on the Star button on the plugin's GitHub page, I appreciate it.
6161
$^#Ctags Source Navigator
6262
$^#${CTAGS_VERSION_MAJOR}.${CTAGS_VERSION_MINOR}.${CTAGS_VERSION_REVISION}.${CTAGS_VERSION_BUILD}
6363

64-
#How to use#
64+
# How to use#
6565

66-
TBD
6766

68-
~Table of contents~@ Contents@
67+
# Navigate to source code in not indexed files#
68+
69+
You may use the plugin in an opened file even if it is not indexed by ctags utility. Plugin will automatically index currently edited file and let you search names in it
70+
71+
72+
# Index your repository#
73+
74+
If you want to search names and files in entire repository you should index it with the ctags utility. Use ctags plugin to do this: goto your repository folder, navigate cursor to folder you want to index by ctags or navigate to top folder ("..") if you want to index entire repository folder. Press #F11->Ctags Source Navigator->Index selected directory#. Tags file will be created inside selected folder and all symbols will be automatically loaded in plugin. If you already have a repository indexed by ctags you may load index file ('tags') to tell the plugin that you want to browse this repository. Do either:
75+
76+
#*# Just start using plugin. On attempt to search a name plugin will suggest to load one of the 'tags' files found in parent directories
77+
or suggest to index your git or svn repository.
78+
79+
#*# Navigate cursor to the 'tags' file, and just press Enter.
80+
81+
#*# Navigate cursor to the 'tags' file, press #F11->Ctags Source Navigator->Load tags file#.
82+
83+
#*# Load recent 'tags' file from 'Manage repositories' menu: #F11->Ctags Source Navigator->Manage repositories#.
84+
85+
Now plugin 'knows' about symbols in your repository and you can browse it's source code and search names.
86+
87+
88+
# Reindex file or entire repository #
89+
90+
Plugin does not do anything in background. If you noticed that plugin cannot find something too often then you may reindex your repository.
91+
Press #F11->Ctags Source Navigator->Reindex repository# in main menu or in editor menu and then plugin will suggest you to select one of the tags files which you may reindex. #If something goes wrong while reindexing (e.g. reindexing is canceled) plugin will rollback on old tags file.#
92+
You may also reindex currently editing file. Press #F11->Ctags Source Navigator->Reindex this file# in editor menu.
93+
94+
95+
# Permanent repositories#
96+
97+
By default plugin does not allow to search names from places that are not belong to a certain repository. However this behaviour may be changed by making a repository permanent.
98+
Navigate to a repository folder and press #F11->Ctags Source Navigator->Add permanent repository#. Plugin will suggest you to select one of the tags files which corresponds to a selected repository.
99+
To unload permanent repository open menu #F11->Ctags Source Navigator->Manage repositories#, select permanent repository and then press Ctrl+Del.
100+
101+
102+
# Go to declaration/definition (Ctrl+F)#
103+
104+
Open a file inside your repository folder, navigate to a name you want to search definition/declaration of. Press #F11->Ctags Source Navigator->Go to# and plugin will automatically move the cursor to declaration of that name. If a name has multiple declarations (e.g. in C++ definition of a name is also a name declaration) plugin will suggest to load one of the declaration
105+
106+
107+
# Search names in entire repository (Ctrl+Shift+T)#
108+
109+
This option works in plugin main menu and in editor menu. Press #F11->Ctags Source Navigator->Search name in entire repository# and begin typing (or insert by Ctrl+V or Shift+Ins) a name you want to search.
110+
111+
112+
# Search names in opened file (Ctrl+Shift+X) #
113+
114+
Press #F11->Ctags Source Navigator->Search name in opened file# and begin typing (or insert by Ctrl+V or Shift+Ins) a name you want to search.
115+
116+
117+
# Search file by name (Ctrl+Shift+R)#
118+
119+
This feature is available from main and editor menu: press #F11->Ctags Source Navigator->Search file by name# and begin typing a file name you want to open. You may specify a partial path to file with a filename to filter search result by location: ```tests\tags_cache\main.cpp```.
120+
You may also specify a line number after a colon symbol like ```my_file.h:1234```
121+
122+
123+
# Open include file (Ctrl+F)#
124+
125+
Open a file inside your repository folder, set cursor to an include file inside angle brackets or to any quoted file path. Press #F11->Ctags Source Navigator->Go to# and plugin will open the file
126+
127+
128+
# Autocomplete name (Ctrl+Space)#
129+
130+
Start typing name in editor and then press #F11->Ctags Source Navigator->Complete symbol#
131+
132+
133+
# Return cursor to previous position (Ctrl+G)#
134+
135+
Press #F11->Ctags Source Navigator->Go back# to return cursor to previous position
136+
137+
138+
# Return to current position from previous position (Ctrl+D)#
139+
140+
If you moved the cursor to a previous position by using "Go Back" option you may return the cursor back. To do this press #F11->Ctags Source Navigator->Go forward#
141+
142+
143+
# List all class members#
144+
145+
Set cursor on class name and then press #F11->Ctags Source Navigator->Class members#
146+
147+
148+
# Filter results in any select menu (Tab - new filter, Esc - return to previous filter, Ctrl+Z - close menu)#
149+
150+
You may filter any results and even filter your filtered results in any select menu. Press #Tab# to begin new filter, #Esc# or #Backspace# to return to previous filter and #Ctrl+Z# to close menu.
151+
Regular expressions are supported.
152+
153+
154+
155+
~Table of contents~@ Contents@
69156

70157

71158

0 commit comments

Comments
 (0)