andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Idea for FuzzyLocator: explicit command to add directory to the scan list #306

Closed vi closed 9 years ago

vi commented 9 years ago

For example, user has following files opened:

Project root is set to /home/vi/code/myproject1/. Now user wants to open test.cpp (and later more files) from projecttobeimported.

Expected workflow:

\1. User gets idea to open test.cpp from other project. He pressed Ctrl+L/Ctrl+M (or whatever for merged locator + fuzzyopen);

|--------------------------------------|
| t.cpp                                |
|--------------------------------------|
| src/trott.cpp                        |
| test/codepulse.py                    |
|                                      |
|--------------------------------------|

\2. User thinks "Ah, it's another project, let's navigate there";

|--------------------------------------|
| f ../../pro                          |
|--------------------------------------|
| procrastinator/                      |
| procedure.bas                        |
| projecttobeeimported/                |
|--------------------------------------|
|--------------------------------------|
| f ../../projecttobeimported/         |
|--------------------------------------|
| procrastinator/                      |
| procedure.bas                        |
| projecttobeeimported/ ************** |
|--------------------------------------|
|--------------------------------------|
| f ../../projecttobeimported/         |
|--------------------------------------|
| configure.am                         |
| test.cpp                             |
| schmest.cpp                          |
|--------------------------------------|
|--------------------------------------|
| f ../../projecttobeimported/test.cpp |
|--------------------------------------|
| configure.am                         |
| test.cpp *************************** |
| schmest.cpp                          |
|--------------------------------------|

Enter.

\3. User gets his file opened. But now he wants schmest.cpp as well and things "let's just add this project to session as well to open files from it easily".

|--------------------------------------|
| sch                                  |
|--------------------------------------|
| marshmallow.h                        |
|                                      |
|                                      |
|--------------------------------------|
|--------------------------------------|
| f |                                  |
|--------------------------------------|
| configure.am                         |
| test.cpp *************************** |
| schmest.cpp                          |
|--------------------------------------|
|--------------------------------------|
| scan .                               |
|--------------------------------------|
|                                      |
|                                      |
|                                      |
|--------------------------------------|
|--------------------------------------|
| sch                                  |
|--------------------------------------|
| schmest.cpp                          |
| marshmallow.h                        |
|--------------------------------------|
andreikop commented 9 years ago

Complicated for user and for Enki. I'm going to add a command (main menu? file browser? locator? ) to open a directory as a project in new Enki window. So you'll be able to