Repository navigation
IFS shortcuts can now have a filename pattern - #3573
Open
andreas-prouza wants to merge 3 commits into
Open
andreas-prouza wants to merge 3 commits into
andreas-prouza wants to merge 3 commits into
Conversation
Member
|
Hi @andreas-prouza, I really like this feature especially when you have tons of ifs files in a directory. @sebjulliand @SanjulaGanepola The only thing I've been thinking about is whether it makes sense to keep the two-step process as it is now, or to rethink filters and shortcuts in IFS just as we did for the object browser... |
This branch was successfully deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes
IFS shortcuts can now have a filename pattern, so a shortcut can show only the files you care about (e.g. only
*.rpgle, *.sqlrpglein a source directory).*matches any characters,?matches a single character; a name without wildcards matches exactly. An empty pattern (or*) shows all files.Storage / compatibility:
ifsShortcutsstays astring[], so extensions using the API are not affected. Patterns are stored in a new optional connection setting,ifsShortcutPatterns({ [shortcutPath]: pattern }). The trade-off is one pattern per directory.Patterns are removed with their shortcut (when removing the shortcut or deleting the directory). They are copied together with IFS shortcuts when profiles are assigned/cloned and when a connection is copied, and shown in a new column of the profile editor.
The matcher is
parseFileNamePattern()insrc/api/Filter.ts.Bevore change:
After change:
I added

t*as file patternHow to test this PR
*.rpgle, *.sqlrpgle: the pattern shows next to the shortcut and only matching files are listed, also inside subdirectories.Filter Testssuite (newFilename patterntest case).Checklist
console.logs I added