Open the last printed URL #9393

Open
opened 2026-01-31 01:53:22 +00:00 by claunia · 0 comments
Owner

Originally created by @thiagolunardi on GitHub (Jul 2, 2020).

Description of the new feature/enhancement

As a developer, is quite often that I have some URL's being displayed/printed after a command. Eg:

  • After a git push to GitHub I have the link to create a new Pull Request
➜  my-git-repository git:(my-branch-name) ✗ git push --set-upstream origin my-branch-name
Enumerating objects: 23, done.
Counting objects: 100% (23/23), done.
Delta compression using up to 8 threads
Compressing objects: 100% (11/11), done.
Writing objects: 100% (12/12), 1.29 KiB | 1.29 MiB/s, done.
Total 12 (delta 9), reused 0 (delta 0)
remote: Resolving deltas: 100% (9/9), completed with 9 local objects.
remote: 
remote: Create a pull request for 'my-branch-name' on GitHub by visiting:
remote:      https://github.com/ThiagoLunardi/my-git-repository/pull/new/my-branch-name
remote: 
To github.com:ThiagoLunardi/my-git-repository.git
 * [new branch]      my-branch-name -> my-branch-name
Branch 'my-branch-name' set up to track remote branch 'my-branch-name' from 'origin'.
➜  my-git-repository git:(my-branch-name) _
  • After creating a PR using GitHub CLI I have the link to open the created PR
➜  my-git-repository git:(my-branch-name) gh pr create 

Creating pull request for my-branch-name into master in ThiagoLunardi/my-git-repository

? Title Add HealthChecks for persistency layer
? Body <Received>
? What's next? Add metadata
? What would you like to add? Reviewers
? Reviewers MyCoWorkerUsername
? What's next? Submit
https://github.com/ThiagoLunardi/my-git-repository/pull/1227
➜  my-git-repository git:(my-branch-name) _
➜  app git:(my-git-repository) ✗ dotnet run
info: Microsoft.Hosting.Lifetime[0]
      Now listening on: https://localhost:5001
info: Microsoft.Hosting.Lifetime[0]
      Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
      Content root path: /home/thiago/github.com/thiagolunardi/my-git-repository/src/app

I would be great if at one key shortcut I could open the last printed URL with my default browser.

Proposed technical implementation details (optional)

The possibility to add this feature as a key shortcut, then we would be able to open the link with my default browser without using the mouse for it.

Originally created by @thiagolunardi on GitHub (Jul 2, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement As a developer, is quite often that I have some URL's being displayed/printed after a command. Eg: - After a `git push` to GitHub I have the link to create a new Pull Request ```bash ➜ my-git-repository git:(my-branch-name) ✗ git push --set-upstream origin my-branch-name Enumerating objects: 23, done. Counting objects: 100% (23/23), done. Delta compression using up to 8 threads Compressing objects: 100% (11/11), done. Writing objects: 100% (12/12), 1.29 KiB | 1.29 MiB/s, done. Total 12 (delta 9), reused 0 (delta 0) remote: Resolving deltas: 100% (9/9), completed with 9 local objects. remote: remote: Create a pull request for 'my-branch-name' on GitHub by visiting: remote: https://github.com/ThiagoLunardi/my-git-repository/pull/new/my-branch-name remote: To github.com:ThiagoLunardi/my-git-repository.git * [new branch] my-branch-name -> my-branch-name Branch 'my-branch-name' set up to track remote branch 'my-branch-name' from 'origin'. ➜ my-git-repository git:(my-branch-name) _ ``` - After creating a PR using GitHub CLI I have the link to open the created PR ```bash ➜ my-git-repository git:(my-branch-name) gh pr create Creating pull request for my-branch-name into master in ThiagoLunardi/my-git-repository ? Title Add HealthChecks for persistency layer ? Body <Received> ? What's next? Add metadata ? What would you like to add? Reviewers ? Reviewers MyCoWorkerUsername ? What's next? Submit https://github.com/ThiagoLunardi/my-git-repository/pull/1227 ➜ my-git-repository git:(my-branch-name) _ ``` - After building and running an App, usually I have the exposed URL - eg http://localhost:5000/ ```bash ➜ app git:(my-git-repository) ✗ dotnet run info: Microsoft.Hosting.Lifetime[0] Now listening on: https://localhost:5001 info: Microsoft.Hosting.Lifetime[0] Now listening on: http://localhost:5000 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Development info: Microsoft.Hosting.Lifetime[0] Content root path: /home/thiago/github.com/thiagolunardi/my-git-repository/src/app ``` I would be great if at one key shortcut I could open the last printed URL with my default browser. # Proposed technical implementation details (optional) The possibility to add this feature as a key shortcut, then we would be able to open the link with my default browser without using the mouse for it.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:53:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9393