X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/blobdiff_plain/22fff4dd672a532beb555bad7b57aecdd104af2e..e08e5cbe091074b7cd05bfe131edb2af70b26bc9:/src/types.nim diff --git a/src/types.nim b/src/types.nim new file mode 100644 index 0000000..ee7abc7 --- /dev/null +++ b/src/types.nim @@ -0,0 +1,8 @@ +import tables + +type + Options* = Table[string, bool] + SearchResult* = tuple[title: string, url: string] + SearchResults* = seq[tuple[title: string, url: string]] + CommandLineOptions* = tuple[searchQuery: string, options: Options] + SelectionRange* = tuple[begin: int, until: int]