From 2ad153a68ad9c6476c8ad6cb976cb8e8f019d239 Mon Sep 17 00:00:00 2001 From: k-ueki Date: Fri, 20 Jan 2023 16:12:05 +0900 Subject: [PATCH] update output format --- chrome-cli/App.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome-cli/App.m b/chrome-cli/App.m index f8d0413..12a2b54 100644 --- a/chrome-cli/App.m +++ b/chrome-cli/App.m @@ -174,9 +174,9 @@ - (void)listTabsWithLink:(Arguments *)args { for (chromeWindow *window in self.chrome.windows) { for (chromeTab *tab in window.tabs) { if (self.chrome.windows.count > 1) { - printf("[%ld:%ld] %s:%s\n", (long)window.id, (long)tab.id, tab.title.UTF8String, tab.URL.UTF8String); + printf("[%ld:%ld] title: %s, url: %s\n", (long)window.id, (long)tab.id, tab.title.UTF8String, tab.URL.UTF8String); } else { - printf("[%ld] %s:%s\n", (long)tab.id, tab.title.UTF8String, tab.URL.UTF8String); + printf("[%ld] title: %s, url: %s\n", (long)tab.id, tab.title.UTF8String, tab.URL.UTF8String); } } }