Commit 8058097
authored
vortex-tui: query tab should work for non-*.vortex files (#8473)
## Summary
Because of how ListingTable works, previously if we had a non-*.vortex
file (for example, a file downloaded via a presigned URL from S3) it
would open and otherwise be perfectly usable with the TUI, except the
query tab would fail to list it, for two reasons
1. HEAD only works for canonical paths
2. There was a filter for *.vortex files being applied by our format
By overriding the format file filter and canonicalizing the path, we can
force ListingTable to work with the single file we pass as the argument
to `vx browse`
## Testing
Tested with a local file without a `.vortex` file extension and
confirmed that before could not query, now I can.
Signed-off-by: Andrew Duffy <andrew@a10y.dev>1 parent 0ed06b3 commit 8058097
1 file changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
52 | 64 | | |
53 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
54 | 75 | | |
55 | 76 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 77 | + | |
59 | 78 | | |
60 | 79 | | |
61 | 80 | | |
| |||
0 commit comments