You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-24Lines changed: 27 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,45 +63,48 @@ This is a [Far Manager](https://www.farmanager.com/) plugin for browsing source
63
63
### BTW if you are Lua developer check out [Yet Another Lua TAgs](https://github.com/EugeneManushkin/Yalta)
64
64
It easily integrates with the plugin. Just download [latest release](https://github.com/EugeneManushkin/Yalta/releases), unzip it and put full path to
65
65
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
68
68
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
70
70
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.
72
73
* 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#.
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
78
83
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.
79
84
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.
80
85
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)
82
87
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)
84
96
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)
86
98
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)
88
100
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)
90
102
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
92
104
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)
101
106
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.
102
107
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.**
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#.
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.
0 commit comments