package com.github.ktoolz.model

import javaslang.collection.List
import java.io.File

/**
 * Store a search result
 */
data class SearchResult(val score: Int, val file: File) {
    val filename: String by lazy { file.name }
}

data class SearchQuery(val term: String, val contexts: List<String>, val directories: List<String>)
package com.github.ktoolz.model

import javaslang.collection.List
import java.io.File

/**
 * Store a search result
 */
data class SearchResult(val score: Int, val file: File) {
    val filename: String by lazy { file.name }
}

data class FilterQuery(val name: String, val negated: Boolean = false)

data class SearchQuery(val term: String, val contexts: List<FilterQuery>, val directories: List<String>)
Convert filter query from String to dedicated object (FilterQuery). A filter query can be negated or not
Convert filter query from String to dedicated object (FilterQuery). A filter query can be negated or not

ktoolz/file-finder