warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.94k stars 358 forks source link

'Open in Warp' does not check for active instances #4741

Open Gabriel-p opened 5 months ago

Gabriel-p commented 5 months ago

Discord username (optional)

No response

Describe the bug

I'm running elementary OS. Right clicking on a folder in Files (the default file explorer) and selecting 'Open in Warp' always opens a new Warp window instead of a new tab in the already opened Warp window

To reproduce

  1. Open an instance of Warp
  2. Go to a folder in Files
  3. Right click and select 'Open in Warp'

Expected behavior

A new tab should open in the instance of Wap that is already active. Instead a new Warp window is generated

Screenshots

No response

Operating system

Linux

Operating system and version

elementary OS 7.1 Horus

Shell Version

zsh 5.8.1 (x86_64-ubuntu-linux-gnu)

Current Warp version

v0.2024.04.09.08.01.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

dannyneira commented 5 months ago

Hi @Gabriel-p thanks for submitting. Warp will open in a new window by default, but that could be helped by some sort of setting or options like open in new tab, which we have support for in our URI scheme. https://docs.warp.dev/features/uri-scheme

This may be used as a workaround to open in the existing window as a new tab.

Gabriel-p commented 5 months ago

Hi @dannyneira I use Linux, I'm not sure but is that a Mac only app?

jontstaz commented 3 months ago

@dannyneira - Any update? I'm also on linux and I'm struggling to find answers. Most terminals support the -e parameter. Eg. if I execute warp-terminal -e "ls -all" from kitty terminal, it should open up a new warp terminal and execute ls -all. Is there some equivalent already implemented?

dannyneira commented 3 months ago

Hi @jontstaz Warp does support a few URI schemes you can use to make scripts. https://docs.warp.dev/features/uri-scheme

Unfortunately, you cannot run commands directly with them, but you can have it launch a Launch Configuration which can be set up to run scripts/commands.

jontstaz commented 3 months ago

Hi @jontstaz Warp does support a few URI schemes you can use to make scripts. https://docs.warp.dev/features/uri-scheme

Unfortunately, you cannot run commands directly with them, but you can have it launch a Launch Configuration which can be set up to run scripts/commands.

Ok so there's no Linux support for being able to programmatically interact with Warp Terminal which is a shame. I've looked through those resources previously but they don't cover what we're looking for.

FiXz1621 commented 2 months ago

Are there any plans to implement a similar thing to -e in many other terminals to execute commands in the near future?