Commit 771b78f
committed
vortex-tui: query tab should work for non-*.vortex files
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`
Signed-off-by: Andrew Duffy <andrew@a10y.dev>1 parent f0b8fb9 commit 771b78f
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