Commit graph

80 commits

Author SHA1 Message Date
Alex Goodman
bcebe0491c normalize application config and logging 2021-02-15 13:13:08 -05:00
dwillist
ae89e3dc2c create constructors package, move viewmodel initialization into this package
Signed-off-by: dwillist <dthornton@vmware.com>
2021-02-14 17:23:30 -05:00
dwillist
13c58c0055 refactor keybinding structures into separate package
Signed-off-by: dwillist <dthornton@vmware.com>
2021-02-06 12:47:28 -05:00
dwillist
a7a0db6d90 update keybindings to use a file similar to original dive.config file (just requires caseing changes)
Signed-off-by: dwillist <dthornton@vmware.com>
2021-02-01 01:32:34 -05:00
dwillist
e87055b5fa respect dive.config view settings
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-22 14:31:42 -05:00
dwillist
95a88d5be0 add TreeViewModel#GetHiddenFileType tests
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-22 14:13:52 -05:00
dwillist
95387df56f update keybinding display to not carry and state
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-22 14:07:16 -05:00
dwillist
43c0b96bac add mock based viewmodel tests
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-20 17:36:15 -05:00
dwillist
a11e9c1cf2 update colorization to inherit settings from terminal
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-19 15:12:14 -05:00
dwillist
abee6a60f1 update formatting & refactor to pass unit tests
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-19 00:46:37 -05:00
dwillist
adbd9d793f remove CNB specific logic for now
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-18 20:51:36 -05:00
dwillist
9f745c7c8b update styling and improve keybinding display
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-18 20:07:33 -05:00
dwillist
cf5af7d5b5 add keybinding options that may be added to views
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-18 14:34:59 -05:00
dwillist
90cc80430e add keybinding menu
- update displayed keybindings as focus changes
- highlight toggleable keys

Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-17 02:18:11 -05:00
dwillist
d2e5ac1e5a update colorization and formatting of output
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-15 00:33:41 -05:00
dwillist
fb4644cf13 add keybindings to grid that separates layerview from filetree
Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-13 00:19:24 -05:00
dwillist
be945d3501 updates to layer_primitive
- add custom keybindings
- add pagedown functionality (should be factored out evenutally)
- add toggleable layer compare modes

Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-12 23:53:52 -05:00
dwillist
92ce00a1a9 viper configured filetree keybindings
- implement remaining filetree navegation commands

Signed-off-by: dwillist <dthornton@vmware.com>
2021-01-04 00:03:02 -05:00
Daniel Thornton
00a1b771a8
Update runtime/ui/app.go
Co-authored-by: Changsu <imcxsu@gmail.com>
2021-01-01 22:18:59 -05:00
dwillist
52b326c040 hide image details and layer details for height constrained windows
Signed-off-by: dwillist <dthornton@vmware.com>
2020-12-19 12:28:19 -05:00
dwillist
6666e841eb formatting and import changes using goimports 2020-12-19 02:37:20 -05:00
dwillist
d93c673810 add visible grid component that allows us to hide views and re-allocate the available space
Signed-off-by: dwillist <dthornton@vmware.com>
2020-12-19 02:31:44 -05:00
dwillist
feea882d8e Merge branch 'update_views' of github.com:dwillist/dive into update_views 2020-12-13 22:17:52 -05:00
Dan
1c21a17c11 make ui views hidable, Hide filter view when not in use
Signed-off-by: dwillist <dthornton@vmware.com>
2020-12-13 21:17:49 -05:00
Alex Goodman
4c59494131 add wrapper for dive-like borderless/title style 2020-12-12 11:21:28 -05:00
dwillist
38ccd19ccb extend typical views with a new one displaying fake CNB content
Signed-off-by: dwillist <dthornton@vmware.com>
2020-10-30 13:00:12 -04:00
dwillist
9b01bc02d5 refactor to add composable viewmodels
- fix filetree printing

Signed-off-by: dwillist <dthornton@vmware.com>
2020-10-29 17:19:16 -04:00
dwillist
e2dbdcd3e7 add filterview & update filetree drawing
Signed-off-by: dwillist <dthornton@vmware.com>
2020-10-28 20:16:18 -04:00
dwillist
da7020ad87 implement general behavior using tview
Signed-off-by: dwillist <dthornton@vmware.com>
2020-10-23 19:09:12 -04:00
Anatoli Babenia
f5b5a42a3d
Fix linter S1039: unnecessary use of fmt.Sprintf (gosimple)
https://github.com/wagoodman/dive/runs/526866415#step:7:14
2020-03-23 11:39:39 +03:00
Alex Goodman
a9c2e48d10
add option to ignore image parsing errors; closes #258 2020-02-09 22:30:21 -05:00
Alex Goodman
16fde15dbf
fix expand bug for details pane and bottom status bar 2020-02-09 10:43:11 -05:00
Alex Goodman
8818b9934f
reactive layout; addresses #179 2019-12-28 12:28:19 -05:00
Alex Goodman
65f40c2ee6
partially complete with slim layer 2019-12-27 09:51:11 -05:00
Alex Goodman
cc40317207
skip empty keybinding configs 2019-12-27 09:28:37 -05:00
Alex Goodman
bf90d13567
Merge pull request #268 from wagoodman/tree-dim-overflow
Fix right border + file tree header for attributes
2019-12-27 09:11:48 -05:00
Anatoli Babenia
20ec5cf2aa
Simplify nil check for slice
len() for nil slices is defined as zero (gosimple)
2019-12-26 13:22:48 +03:00
Anatoli Babenia
bf7dd663c1 Propagate error from parsing keybinding (#129) 2019-12-26 12:35:50 +03:00
Alex Goodman
b68bce154a
fix filetree attribute header 2019-12-16 22:19:59 -05:00
Alex Goodman
8c6a7ce973
expand right column 2019-12-16 22:19:39 -05:00
Alex Goodman
776c1f9436
add tests 2019-11-27 23:07:56 -05:00
Alex Goodman
e8301be74d
rm unused cursor methods 2019-11-24 22:09:10 -05:00
Alex Goodman
27ef402a7f
fix footer + onLayoutChange propagation on view hide 2019-11-24 22:04:30 -05:00
Alex Goodman
94699db059
introduce area obj + breakup layout function 2019-11-24 12:57:44 -05:00
Alex Goodman
8a3642a57f
central header formatter 2019-11-24 12:23:43 -05:00
Alex Goodman
14706152a1
added simple layout manager 2019-11-23 21:13:08 -05:00
Alex Goodman
fcb50f0c27
Merge branch 'master' into fix-log-and-tar-paths 2019-11-20 14:58:33 -08:00
Alex Goodman
ed57565910
fix nil log dest; clean tar paths 2019-11-19 09:59:57 -08:00
Alex Goodman
ba7b39c52f
add package install tests + basic execution of dive 2019-11-09 15:40:54 -05:00
Alex Goodman
7ec08a364b
add podman dependencies to docker image (switch to debian) 2019-11-05 00:01:33 -05:00