📜 ⬆️ ⬇️

Armory 1.2: Workspaces and switching between projects


Since the last publication on Habré in the plug-in Armory there have been a number of major and minor changes, some of which will tell this article.

Switch between projects


Intellij Idea , as you know, allows you to work on several projects at the same time, opening each of them in a separate window. With this approach, switching between projects is carried out using standard for the OS navigation tools between windows, which, for several reasons, is not the most convenient way to select a project.
Why is this uncomfortable?
  • Switching between windows occurs differently on different operating systems.
  • The space is littered with windows of other applications.
  • It is difficult to distinguish one project from another by preview windows (if previews are used).
  • Projects have the same icon (if icons are used).
  • You can not select a closed project. For closed projects you need to go to Recent Projects.
  • Cannot sort projects alphabetically.

Therefore, we have made a separate window, in which both open and recent projects are collected at the same time, and which is available via a hot key from any Intellij Idea open window. A single list of all projects with different sorting modes and functions for opening and closing (or deleting) list items. The screenshot on the left shows how this window looks. Icons are generated by the algorithm as in GitHub from the project name as a seed.



Workspace list


The second innovation will be useful to those who are already familiar with Armory's “multi-tree” approach, but would like to have additional flexibility by switching to different pre-configured sets of trees. Now you can customize several workspaces for a project for each specific task and look at the source code from different angles while switching between them.
')
Also now it is not necessary to “spoil” the configured Workspace, if you suddenly need to do another part of the code. It is enough to create a temporary workspace and build a creative mess already in it, and at the end just remove it.

The “Workspace List” window, in essence, is a previously transformed “Tree Views” window with the addition of the second navigation dimension (up and down). Each row corresponds to its own set of trees, and the buttons on the right allow you to move or delete the workspace.

Animation showing how to switch workspace


Other improvements


The work of the plugin during the indexing of the project has become more responsive. Now you don’t have to wait until IDEA finishes scanning files to open the Armory tab or history window.

Support for WebStorm has been added and now the plugin is built using jdk 1.6, which allows the plugin to work if the development environment, for some reason, runs under the old version of Java.

The plugin is still free for IntelliJ Idea Community Edition, and now you can also get a license to use Armory under any of the supported platforms (PhpStorm, IDEA Ultimate, WebStorm, AndroidStudio and PyCharm) to work on the non-commercial OpenSource project. To do this, just write in support with a link to the source code of the project.

Thanks for attention!

Links




Source: https://habr.com/ru/post/266845/


All Articles