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
21.58k stars 379 forks source link

Pin blocks #275

Open elviskahoro opened 3 years ago

elviskahoro commented 3 years ago

Describe the solution you'd like?

Ability to pin a block so that it is always in focus and other blocks just move past it.

Need to workshop what will happen when that same block is unpinned:
1. Will it be promoted to be the last recently run block?
2. Will it revert back to it's original position?
   Suppose it was block 10 in history and since then we've run 7 more blocks? Will it jump back to position 10 in the view or will it become position 17 (as if it was the recently run block)

Is your feature request related to a problem? Please describe.

N/A

Additional context

Related Issues:

JosephTLyons commented 3 years ago

This is a really cool feature idea. This could be super useful.

I think it makes sense to allow the unpinned block to go back to its original location. I imagine in the case of unpinning items and having them just go next in line, vs back to their original locations, could get pretty confusing, when it comes operations that were performed in a specific sequence. It would be hard to follow the history, IMO.

stabai commented 2 years ago

My imagined experience for a pinned block was that it would behave like a "sticky" header that becomes fixed to the top of the viewport when it would have scrolled out of view. That does however create the possibility that pinning a block that's taller than the viewport would completely render the viewport unusable (or it could shrink down and have its own scrollbar).

Another possibility is that you can "pop out" a block. The "Share Block" experience almost does this, but it also pops up in a modal inside the app window, so I can't continue using the terminal while it's there.

My use case is a command that spit out a bunch of information I'll need to reference as I continue to do work:

Screen Shot 2022-06-04 at 9 00 31 PM
elviskahoro commented 2 years ago

Some folks made a prototype of bookmarking Blocks during our hackathon. Hopefully it's something we can share soon!

kevinyang372 commented 2 years ago

We just launched the bookmark feature in the latest version of Warp! You could find documentation for this feature at: https://docs.warp.dev/features/blocks#bookmarking-a-block

mark-jordanovic-lewis commented 4 weeks ago

The bookmark feature is brilliant. Pinning blocks to the top of the viewport is a very desirable feature too.