Skip to content

Commit

Permalink
update output format
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ueki committed Jan 20, 2023
1 parent 2250f01 commit 2ad153a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome-cli/App.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 2ad153a

Please sign in to comment.