-
Notifications
You must be signed in to change notification settings - Fork 725
Fixes #4027. Add collection search matcher #4029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 21 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
39c0e4b
Add collection search matcher
tznind ee0748e
Fix naming
tznind 4509780
fix naming
tznind b76212e
Move FileDialogCollectionNavigator to its own file (no longer private…
tznind bd364f7
Add ICollectionNavigator interface
tznind 98383b4
Move to separate file IListCollectionNavigator
tznind 9db1071
Update class diagram
tznind 4b29940
update class diagram
tznind 135d3c5
Add tests for overriding ICollectionNavigatorMatcher
tznind d1d5534
xmldoc and nullability warning fixes
tznind be56a8e
Code Cleanup
tznind 26ff23d
Make requested changes to naming and terminology
tznind 1f686f9
Move to seperate namespace
tznind dbeba5d
Update class diagram and change TreeView to reference the interface n…
tznind 94219c6
Switch to implicit new
tznind 18c3d90
Merge branch 'v2_develop' into collection-navigator-matcher
tig 0511ad9
highlight that this class also works with tree view
tznind 932c6aa
Merge branch 'collection-navigator-matcher' of https://github.com/tzn…
tznind 58b0178
Apply tig patch to ensure keybindings get priority over navigator
tznind 3ec5cc6
Apply 'keybinding has priority' fix to TreeView too
tznind 41c9134
Apply 'keybindngs priority over navigation' fix to TableView
tznind 0e29e04
Remove entire branch for selectively returning false now that it is d…
tznind d142ff1
Make classes internal and remove 'custom' navigator that was configur…
tznind 35e402d
Fix merged conflicts
tznind ebecbc8
Change logging in collection navigator from Trace to Debug
tznind ab8c830
Switch to NewKeyDownEvent and directly setting HasFocus
tznind 65a12da
Remove application top dependency
tznind d15bd12
Remove references to application
tznind e803d37
Remove Application
tznind 1b8ab97
Merge branch 'v2_develop' into collection-navigator-matcher
tznind 639b1d1
Move new tests to parallel
tznind File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
124 changes: 124 additions & 0 deletions
124
Terminal.Gui/Views/CollectionNavigation/CollectionNavigation.cd
This file contains hidden or 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,124 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <ClassDiagram MajorVersion="1" MinorVersion="1"> | ||
| <Comment CommentText="Views that use the CollectionNavigation system"> | ||
| <Position X="0.5" Y="0.5" Height="0.458" Width="1.856" /> | ||
| </Comment> | ||
| <Comment CommentText="Specialized navigators for each collection type (e.g. list, tree etc)"> | ||
| <Position X="4.646" Y="0.5" Height="0.5" Width="3.169" /> | ||
| </Comment> | ||
| <Comment CommentText="Shared matching component (users should provide alternative implementations of this class if they want to modify collection navigation behaviour)"> | ||
| <Position X="9.448" Y="0.5" Height="0.708" Width="3.169" /> | ||
| </Comment> | ||
| <Class Name="Terminal.Gui.CollectionNavigatorBase" Collapsed="true"> | ||
| <Position X="6.25" Y="1.5" Width="2" /> | ||
| <TypeIdentifier> | ||
| <HashCode>AAgEAAAAAAAQAAAIAAEAAgAAAAAABAAEAAAAACwAAAA=</HashCode> | ||
| <FileName>Views\CollectionNavigation\CollectionNavigatorBase.cs</FileName> | ||
| </TypeIdentifier> | ||
| <ShowAsAssociation> | ||
| <Property Name="Matcher" /> | ||
| </ShowAsAssociation> | ||
| <Lollipop Position="0.2" /> | ||
| </Class> | ||
| <Class Name="Terminal.Gui.CollectionNavigator" Collapsed="true"> | ||
| <Position X="4.5" Y="3.5" Width="2" /> | ||
| <TypeIdentifier> | ||
| <HashCode>AAAAAAAAAAAAQAAAAAAAAgAAAAAAAAAEAAAAAAAAAAA=</HashCode> | ||
| <FileName>Views\CollectionNavigation\CollectionNavigator.cs</FileName> | ||
| </TypeIdentifier> | ||
| <Lollipop Position="0.2" /> | ||
| </Class> | ||
| <Class Name="Terminal.Gui.DefaultCollectionNavigatorMatcher"> | ||
| <Position X="9.5" Y="2.5" Width="2.75" /> | ||
| <TypeIdentifier> | ||
| <HashCode>AAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAQA=</HashCode> | ||
| <FileName>Views\CollectionNavigation\DefaultCollectionNavigatorMatcher.cs</FileName> | ||
| </TypeIdentifier> | ||
| <Lollipop Position="0.2" /> | ||
| </Class> | ||
| <Class Name="Terminal.Gui.TableCollectionNavigator" Collapsed="true"> | ||
| <Position X="4.75" Y="6.5" Width="2.25" /> | ||
| <TypeIdentifier> | ||
| <HashCode>AAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAEAAAAIAAAAAA=</HashCode> | ||
| <FileName>Views\CollectionNavigation\TableCollectionNavigator.cs</FileName> | ||
| </TypeIdentifier> | ||
| </Class> | ||
| <Class Name="Terminal.Gui.ListView" Collapsed="true"> | ||
| <Position X="0.5" Y="4.25" Width="1.5" /> | ||
| <TypeIdentifier> | ||
| <HashCode>AAE+ASAkEnAAABAAKGAggYAZJAIAABEAcBAaAwAQIAA=</HashCode> | ||
| <FileName>Views\ListView.cs</FileName> | ||
| </TypeIdentifier> | ||
| <ShowAsAssociation> | ||
| <Property Name="KeystrokeNavigator" /> | ||
| </ShowAsAssociation> | ||
| <Lollipop Position="0.2" /> | ||
| </Class> | ||
| <Class Name="Terminal.Gui.FileDialog" Collapsed="true"> | ||
| <Position X="0.5" Y="5.5" Width="1.75" /> | ||
| <Compartments> | ||
| <Compartment Name="Nested Types" Collapsed="false" /> | ||
| </Compartments> | ||
| <TypeIdentifier> | ||
| <HashCode>iIY4LQFUHDKVIHIESBgigQcFT6GxhBDABGJItBQAwAQ=</HashCode> | ||
| <FileName>Views\FileDialog.cs</FileName> | ||
| </TypeIdentifier> | ||
| <Lollipop Position="0.2" /> | ||
| </Class> | ||
| <Class Name="Terminal.Gui.FileDialogCollectionNavigator" Collapsed="true"> | ||
| <Position X="4.75" Y="5.5" Width="2.25" /> | ||
| <TypeIdentifier> | ||
| <HashCode>AAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAEAAAAAAAAAAA=</HashCode> | ||
| <FileName>Views\FileDialogCollectionNavigator.cs</FileName> | ||
| </TypeIdentifier> | ||
| </Class> | ||
| <Class Name="Terminal.Gui.TableView" Collapsed="true" BaseTypeListCollapsed="true"> | ||
| <Position X="0.5" Y="6.5" Width="1.5" /> | ||
| <TypeIdentifier> | ||
| <HashCode>QwUeAxwgICIAcABIABeR0oBAkhoFGGOBDABgAN3oPEI=</HashCode> | ||
| <FileName>Views\TableView\TableView.cs</FileName> | ||
| </TypeIdentifier> | ||
| <Lollipop Position="0.2" /> | ||
| </Class> | ||
| <Class Name="Terminal.Gui.TreeView" Collapsed="true"> | ||
| <Position X="0.5" Y="3" Width="1.5" /> | ||
| <TypeIdentifier> | ||
| <HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAA=</HashCode> | ||
| <FileName>Views\TreeView\TreeView.cs</FileName> | ||
| </TypeIdentifier> | ||
| <Lollipop Position="0.2" /> | ||
| </Class> | ||
| <Class Name="Terminal.Gui.TreeView<T>" Collapsed="true"> | ||
| <Position X="0.5" Y="2" Width="1.5" /> | ||
| <TypeIdentifier> | ||
| <HashCode>UwAGySBgBSBGMAQgIiCaBDUItJIBSAWwRMQOSgQCwJI=</HashCode> | ||
| <FileName>Views\TreeView\TreeView.cs</FileName> | ||
| </TypeIdentifier> | ||
| <ShowAsAssociation> | ||
| <Property Name="KeystrokeNavigator" /> | ||
| </ShowAsAssociation> | ||
| <Lollipop Position="0.2" /> | ||
| </Class> | ||
| <Interface Name="Terminal.Gui.ICollectionNavigatorMatcher" Collapsed="true"> | ||
| <Position X="9.5" Y="1.5" Width="2.75" /> | ||
| <TypeIdentifier> | ||
| <HashCode>AAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAA=</HashCode> | ||
| <FileName>Views\CollectionNavigation\ICollectionNavigatorMatcher.cs</FileName> | ||
| </TypeIdentifier> | ||
| </Interface> | ||
| <Interface Name="Terminal.Gui.IListCollectionNavigator" Collapsed="true"> | ||
| <Position X="3.75" Y="2.25" Width="2" /> | ||
| <TypeIdentifier> | ||
| <HashCode>AAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</HashCode> | ||
| <FileName>Views\CollectionNavigation\IListCollectionNavigator.cs</FileName> | ||
| </TypeIdentifier> | ||
| </Interface> | ||
| <Interface Name="Terminal.Gui.ICollectionNavigator" Collapsed="true"> | ||
| <Position X="3.75" Y="1.5" Width="2" /> | ||
| <TypeIdentifier> | ||
| <HashCode>AAgAAAAAAAAAAAAIAAAAAAAAAAAABAAAAAAAACgAAAA=</HashCode> | ||
| <FileName>Views\CollectionNavigation\ICollectionNavigator.cs</FileName> | ||
| </TypeIdentifier> | ||
| </Interface> | ||
| <Font Name="Segoe UI" Size="9" /> | ||
| </ClassDiagram> |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.