-
Notifications
You must be signed in to change notification settings - Fork 106
feat(uss): Add navigation history and commands to traverse it #3597
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
base: main
Are you sure you want to change the base?
Changes from 21 commits
347ef06
3ba2383
194a5a0
2fa377c
4c73f88
1928223
9c12d6e
99e4a33
fd50033
337bc02
ff7e2b5
9710f71
f796a46
94d730a
1369698
4e6c48b
4db7b2d
1033350
a8b6d92
09fa49f
498f1d9
e97a06a
a71591d
f41aaa8
d4d4734
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -462,6 +462,23 @@ | |
| "category": "Zowe Explorer", | ||
| "icon": "$(arrow-up)" | ||
| }, | ||
| { | ||
| "command": "zowe.uss.back", | ||
| "title": "%uss.back%", | ||
| "category": "Zowe Explorer", | ||
| "icon": "$(arrow-left)" | ||
| }, | ||
| { | ||
| "command": "zowe.uss.forward", | ||
| "title": "%uss.forward%", | ||
| "category": "Zowe Explorer", | ||
| "icon": "$(arrow-right)" | ||
| }, | ||
| { | ||
| "command": "zowe.uss.resetTempHistory", | ||
| "title": "%uss.resetTempHistory%", | ||
| "category": "Zowe Explorer" | ||
| }, | ||
| { | ||
| "command": "zowe.uss.refresh", | ||
| "title": "%uss.refreshAll%", | ||
|
|
@@ -771,10 +788,20 @@ | |
| "group": "inline" | ||
| }, | ||
| { | ||
| "when": "viewItem =~ /^(?!.*_fav.*)ussSession.*isFilterSearch/ && !listMultiSelection", | ||
| "when": "viewItem =~ /^(?!.*_fav.*)(ussSession.*_isFilterSearch)/ && !listMultiSelection", | ||
| "command": "zowe.uss.cdUp", | ||
| "group": "inline" | ||
| }, | ||
| { | ||
| "when": "viewItem =~ /^(?!.*_fav.*)(ussSession.*_isFilterSearch_ussTempNavHistory)/ && !listMultiSelection", | ||
| "command": "zowe.uss.back", | ||
| "group": "inline" | ||
| }, | ||
| { | ||
| "when": "viewItem =~ /^(?!.*_fav.*)(ussSession.*_isFilterSearch_ussTempNavHistory)/ && !listMultiSelection", | ||
| "command": "zowe.uss.forward", | ||
| "group": "inline" | ||
| }, | ||
|
Comment on lines
+824
to
+833
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In the past, we used to have 4+ icons at all times and people complained that it was a bit hard to remember their purposes (if they were not often used). So, if we plan to keep them, I rather give people the ability to customize which icons they want to keep Otherwise, I'd vote for option 3: |
||
| { | ||
| "when": "view == zowe.uss.explorer && viewItem =~ /^(?!.*_fav.*)(textFile.*|binaryFile.*|directory.*)/", | ||
| "command": "zowe.addFavorite", | ||
|
|
@@ -816,10 +843,15 @@ | |
| "group": "000_zowe_ussMainframeInteraction@0" | ||
| }, | ||
| { | ||
| "when": "viewItem =~ /^(?!.*_fav.*)ussSession.*isFilterSearch/ && !listMultiSelection", | ||
| "when": "viewItem =~ /^(?!.*_fav.*)(ussSession.*_isFilterSearch)/ && !listMultiSelection", | ||
| "command": "zowe.uss.cdUp", | ||
| "group": "000_zowe_ussMainframeInteraction@1" | ||
| }, | ||
| { | ||
| "when": "viewItem =~ /^(?!.*_fav.*)(ussSession.*_isFilterSearch_ussTempNavHistory)/ && !listMultiSelection", | ||
| "command": "zowe.uss.resetTempHistory", | ||
| "group": "000_zowe_ussMainframeInteraction@1" | ||
| }, | ||
| { | ||
| "when": "view == zowe.uss.explorer && viewItem =~ /^(?!.*_fav.*)ussSession.*/ && !listMultiSelection", | ||
| "command": "zowe.issueMvsCmd", | ||
|
|
@@ -1482,6 +1514,18 @@ | |
| "command": "zowe.uss.cdUp", | ||
| "when": "never" | ||
| }, | ||
| { | ||
| "command": "zowe.uss.back", | ||
| "when": "never" | ||
| }, | ||
| { | ||
| "command": "zowe.uss.forward", | ||
| "when": "never" | ||
| }, | ||
| { | ||
| "command": "zowe.uss.resetTempHistory", | ||
| "when": "never" | ||
| }, | ||
| { | ||
| "command": "zowe.uss.copyPath", | ||
| "when": "never" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,9 +89,23 @@ export class USSInit { | |
| context.subscriptions.push( | ||
| vscode.commands.registerCommand("zowe.uss.cdUp", async (node: IZoweUSSTreeNode): Promise<void> => ussFileProvider.cdUp(node)) | ||
| ); | ||
| context.subscriptions.push( | ||
| vscode.commands.registerCommand("zowe.uss.back", async (node: IZoweUSSTreeNode): Promise<void> => ussFileProvider.navigateBack(node)) | ||
| ); | ||
| context.subscriptions.push( | ||
| vscode.commands.registerCommand( | ||
| "zowe.uss.forward", | ||
| async (node: IZoweUSSTreeNode): Promise<void> => ussFileProvider.navigateForward(node) | ||
| ) | ||
| ); | ||
| context.subscriptions.push( | ||
| vscode.commands.registerCommand("zowe.uss.fullPath", async (node: IZoweUSSTreeNode): Promise<void> => ussFileProvider.filterPrompt(node)) | ||
| ); | ||
| context.subscriptions.push( | ||
| vscode.commands.registerCommand("zowe.uss.resetTempHistory", (node: IZoweUSSTreeNode): void => | ||
| ussFileProvider.resetNavigationHistory(node) | ||
| ) | ||
| ); | ||
|
||
| context.subscriptions.push( | ||
| vscode.commands.registerCommand( | ||
| "zowe.uss.filterBy", | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that we have made some efforts to reduce the number of notifications/pop-up messages that show up in order to minimize distractions. I understand that there need to be some sort of feedback for these buttons, but I'd personally prefer to gray-out/disable them instead of a pop-up saying that we didn't do anything. If we must keep a subtle message, perhaps we could use the status bar (e.g. same thing as uploading content).
I'd vote for option 2. Perhaps we can replace the icon (or overlay a 🚫 icon to it) if we know they are already at the root 😋
If that ends up being too complex, then option 3 with a status bar message. 🙏