forked from onivim/oni2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial model * initial store * add findInFiles function to Ripgrep * add SearchSubscription * add subscriptions to SearchStore * Copy (more or less) improved input from Revery * remove hard-coded sizes and margins from OniInput * remove unnecessary width prop from FlatList * Make FlatList dynamically sized * fix SearchSubscription update * use flex instead of absolute positioning for editor layout * add a rudimentary search UI * open file on click * add StringUtil.trimLeft and trimRight * add StringUtil.extractSnippet * highlighting! * position cursor on match (sometimes) * factor LocationListView out of SearchPane * use sexy monospace font * estimate max length more precisely * tweaks * estimate font measures * use Utility.Option * unify on Utility.List.filter_map * fix warnings * formatting * undumb snippet algorithm a little * Sprinkle comments and adjust for ellipsis * measure advance more accurately * formatting * Release focus when selectin result * post-rebase fixes * refactor Rigprep to eliminate duplicate code * Don't manage IME in OniInput as it's enabled globally * fix TickTest, and prevent triggering re-renders on every tick * formatting * include hidden files in search * add Ripgrep.rei and tighten up interface * fix warnings * hide search pane initially * formatting
- Loading branch information
Showing
29 changed files
with
1,478 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module Match: { | ||
type t = { | ||
file: string, | ||
text: string, | ||
lineNumber: int, | ||
charStart: int, | ||
charEnd: int, | ||
}; | ||
}; | ||
|
||
type t = { | ||
search: | ||
( | ||
~directory: string, | ||
~onUpdate: list(string) => unit, | ||
~onComplete: unit => unit | ||
) => | ||
dispose, | ||
findInFiles: | ||
( | ||
~directory: string, | ||
~query: string, | ||
~onUpdate: list(Match.t) => unit, | ||
~onComplete: unit => unit | ||
) => | ||
dispose, | ||
} | ||
|
||
and dispose = unit => unit; | ||
|
||
let make: (~executablePath: string) => t; |
Oops, something went wrong.