We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4d2b14 commit 553530eCopy full SHA for 553530e
4 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@meshtastic/cli-viewer",
3
- "version": "1.6.3",
+ "version": "1.6.4",
4
"type": "module",
5
"scripts": {
6
"dev": "bun run src/index.ts",
src/ui/App.tsx
@@ -2286,6 +2286,18 @@ export function App({ address, packetStore, nodeStore, skipConfig = false, skipN
2286
fetchNodeFromMeshView(msg.fromNode);
2287
return;
2288
}
2289
+ // 'p' to go to packet
2290
+ if (input === "p" && filteredMessages[selectedChatMessageIndex]) {
2291
+ const msg = filteredMessages[selectedChatMessageIndex];
2292
+ const packetIndex = packets.findIndex(p => p.meshPacket?.id === msg.packetId);
2293
+ if (packetIndex >= 0) {
2294
+ setSelectedPacketIndex(packetIndex);
2295
+ setMode("packets");
2296
+ } else {
2297
+ showNotification("Packet not found in history", theme.status.offline);
2298
+ }
2299
+ return;
2300
2301
2302
} else if (mode === "dm") {
2303
const selectedConvo = dmConversations[selectedDMConvoIndex];
@@ -2393,6 +2405,18 @@ export function App({ address, packetStore, nodeStore, skipConfig = false, skipN
2393
2405
2394
2406
2395
2407
2408
2409
+ if (input === "p" && dmMessages[selectedDMMessageIndex]) {
2410
+ const msg = dmMessages[selectedDMMessageIndex];
2411
2412
2413
2414
2415
2416
2417
2418
2419
2396
2420
2397
2421
2398
2422
src/ui/components/HelpDialog.tsx
@@ -67,6 +67,7 @@ const chatKeys = [
67
{ key: "r", desc: "Reply to message" },
68
{ key: "R", desc: "Resend failed message" },
69
{ key: "n", desc: "Go to sender node" },
70
+ { key: "p", desc: "Go to packet" },
71
{ key: "d", desc: "DM the sender" },
72
{ key: "u", desc: "Update node from MeshView" },
73
{ key: "Enter", desc: "Focus input" },
@@ -83,6 +84,7 @@ const dmKeys = [
83
84
85
86
{ key: "n", desc: "Go to node" },
87
88
89
{ key: "#", desc: "Delete conversation" },
90
src/ui/components/PacketInspector.tsx
@@ -269,8 +269,9 @@ function InfoView({ packet, nodeStore, height, scrollOffset, bruteForce, spinner
269
<>
270
<Text color={theme.fg.muted}> Hops: </Text>
271
<Text color={mp.hopStart - mp.hopLimit === 0 ? theme.packet.direct : theme.fg.primary}>
272
- {mp.hopStart - mp.hopLimit}/{mp.hopStart}
+ {mp.hopStart - mp.hopLimit === 0 ? "direct" : mp.hopStart - mp.hopLimit}
273
</Text>
274
+ <Text color={theme.fg.muted}> (max {mp.hopStart})</Text>
275
</>
276
)}
277
</Box>
0 commit comments