Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow external collections #251

Merged
merged 6 commits into from
Jul 20, 2018
Merged

Allow external collections #251

merged 6 commits into from
Jul 20, 2018

Conversation

Jesus89
Copy link
Member

@Jesus89 Jesus89 commented Jul 20, 2018

External collections is a variable stored in the profile that contains the information of an existing absolute path in the file system. This path should contain directories with Icestudio collections.

External collections form

Edit > Preferences > External collections.

ec-1

If the path does not exists the variable won't be set and an error alert will be shown.

ec-20

When a new valid path is added you can confirm the form and it will try to load the collections inside this path.

ec-2

Select external collections

When the application starts, internal and externals collections are loaded. To avoid performance issues there is a limit of 5 levels in the search exploration of the directories.

In Select > Collections three sections appear: default collection, internal collections and external collections.

ec-3

For data security reasons only internal collections can be removed (to avoid accidental removal of external files).

ec-4

Edit external collections

When an external collection block or example is opened, the working dir is loaded to allow saving that file in its path. When an internal collection block or example is opened, the working dir is reset to avoid editing internal collection files by mistake.

Finally, when a file inside a collection is saved, the collection is refreshed. Note that this can be done always by pressing Tools > Collections > Reload.

@Jesus89 Jesus89 added this to the 0.4.0 milestone Jul 20, 2018
@Jesus89 Jesus89 merged commit 0ad861d into develop Jul 20, 2018
@Jesus89 Jesus89 deleted the external-collection branch July 20, 2018 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant