ARK-Builders / ARK-Navigator

Android app for navigation through your data
MIT License
15 stars 15 forks source link

Workspaces and selective aggregated mode #79

Open kirillt opened 3 years ago

kirillt commented 3 years ago

Right now, we have aggregated mode which allows to open all roots and select resources from all of them at the same time. In future, we will have saved queries section (#80). For a saved query, it would be nice to support several chosen folders to run the query on. This means, we need to support usage of several prefixes as joint filter at once.

kirillt commented 1 year ago

We should introduce something like this:

interface Workspace {
    fun folders(): List<Path>
}

data class SingleFolderWorkspace(val root: Path, val subfolder: Option<String>) {
    override fun folders(): List<Path> { ... }
}

data class MultipleFoldersWorkspace(val roots: List<Path>) {
    override fun folders(): List<Path> { ... }
}