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.38k stars 373 forks source link

Add the ability to delete a block #50

Open narner opened 3 years ago

narner commented 3 years ago

Would love the ability to delete a block via the menu-bar here:

CleanShot 2021-07-22 at 15 53 03@2x
gagata commented 3 years ago

hey @narner mind giving more context on the feature request? do you just not want to see the block or do you want to completely 'erase it' from the history?

narner commented 3 years ago

Oooh good question; I think more like just not to see the block in a pane --- I've only just started using Warp, but I can easily see something where it would be useful to have different panes with different blocks depending not the context.

simjnd commented 3 years ago

I think that both should be cool: having both a "Hide Block" option (simply visually removes it, like a finer grained CTRL + L), and a "Delete Block" (erases it from history, an easy way to cleanup misspelled commands and such from your history so that it doesn't pollute your CTRL + R)

EDIT: Noticed this request is very similar to #23

zachlloyd commented 3 years ago

Right, one feature we could easily add here is the ability to collapse blocks, so you can just see the input and not the output. We could do it globally or on a per block basis.

Curious if this would be useful.

gagata commented 3 years ago

I just noticed that #46 duplicates this task. will keep this one, since it has more discussion already

donaldguy commented 3 years ago

on Discord, @s278gupt, shared some mock-ups of

Deleting/Hiding: image

As well as

Collapsing: image

As I (amongst other things) described in #23 (and Zach mentioned above)

elviskahoro commented 3 years ago

Linking:

elviskahoro commented 2 years ago

@manuelblancovalentin From #493

More general:

Ability to delete/hide any block you want. Just click on it and either hide after 2-click or click the three buttons of the menu and then select "hide".

braykov commented 1 year ago

I instinctively went to the menu to delete a block. This is because I was imputing my password with the -p flag of some tool. I wanted this totally removed/deleted from screen and history too.

dannyneira commented 1 year ago

Thanks for letting us know @braykov, we will post updates here. We appreciate your patience.

yarseyah commented 1 year ago

I found this issue as I was looking for a way to delete a block that contained passwords too.

I'm sure I could purge everything, but given I use a tool to generate passwords and licences, it would be better to have the level of control such that I could delete things I don't ever want preserved.

owenblacker commented 1 year ago

Right, one feature we could easily add here is the ability to collapse blocks, so you can just see the input and not the output. We could do it globally or on a per block basis.

Curious if this would be useful.

I would absolutely love this. It's the one thing I keep going to do (over and over again) and then remembering isn't a supported functionality.

dannyneira commented 1 year ago

Hey Folks, CMD-K clears all the blocks in a session, there isn't a way to delete individual blocks at this time, but the shortcut should help with the use case for the time being.

Mbladra commented 1 year ago

I'd just like to add to this that frequently use CMD + L in OSX terminal as part of my workflow to peek the output of a certain command, without having it persist on my screen - I find it incredibly useful. For the time being I'll probably stick with my existing terminal setup because I use CMD + L so often, but would love to see it added to warp!

pnlinh commented 11 months ago

Hi all, I can't find the way to delete shared block. Is there any other way to delete it?

image
LosManos commented 10 months ago

I have 3 use cases:

LosManos commented 9 months ago

@pnlinh Your question does not belong to this issue really but here is the answer: You have a kebab menu with what you seek. image

pnlinh commented 9 months ago

@pnlinh Your question does not belong to this issue really but here is the answer: You have a kebab menu with what you seek. image

@LosManos It works. Thank you

gavrilikhin-d commented 9 months ago

Are there any ETAs for this feature? It's been 3 years. Doesn't look like a reasonable time for such a simple feature

avanavana commented 6 months ago

I would really love to see a "delete block(s)" feature.

Everybody knows ctrl+k / clear terminal, but sometimes you get junk blocks or make a mistake, or you just want to clear one or a few items from your terminal history, and—especially because in Warp you can select blocks, you should be able to delete them. The blocks paradigm is similar to code blocks in IPYNB/Jupyter notebooks as well—which allow you to delete blocks. This would be a very natural feature. I completely expected it to already be implemented in Warp, and I was surprised when I selected multiple blocks and then went to the blocks menu, looking for this feature, and selected "Clear Blocks", when it just cleared my terminal. The wording "clear blocks", especially in the context of having one or more blocks selected, gives the impression that the selected blocks will be deleted from the terminal, and does not give the impression of "clear the whole terminal", which in most terminals is called "clear terminal". Alternatively, using the block paradigm, one might expect such a command to be labeled "Clear all blocks".

wmcnamee-coreweave commented 6 months ago

similarly, sometimes I want to print a piece of sensitive information, for troubleshooting purposes, but then make the output disappear (permanently) without closing and re-opening my terminal.

seanparkross commented 6 months ago

+1 If I screw something up in a video demo I want to delete the block and do it again, in context of all the blocks before it. Not need to open a new tab and recreate everything again. It would be a game changer for me.

Even Hide Block would work 🥺

gavrilikhin-d commented 3 months ago

Warp would be much better, if it was open source...

On Tue, Jul 23, 2024, 06:21 janu @.***> wrote:

in settings > shared blocks shows: image.png (view on web) https://github.com/user-attachments/assets/9723a644-60e5-4e89-ab37-48f13ca41507 but, those shared block link always can be accessed, as image.png (view on web) https://github.com/user-attachments/assets/7af506a8-c91b-454c-9162-b881b59c2c89

Let users manage their own data is expected

— Reply to this email directly, view it on GitHub https://github.com/warpdotdev/Warp/issues/50#issuecomment-2244125869, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR5SO7UQ3LTFK46H2HIRUPTZNW435AVCNFSM5A25VJSKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRUGQYTENJYGY4Q . You are receiving this because you commented.Message ID: @.***>

seanparkross commented 3 months ago

I don't understand how this one is so hard. It seems to be the fundamental way Warp is built? Isolated blocks?

gavrilikhin-d commented 3 months ago

They just don't care and don't find this feature important.

On Tue, Jul 23, 2024, 14:46 Sean Park-Ross @.***> wrote:

I don't understand how this one is so hard. It seems to be the fundamental way Warp is built? Isolated blocks?

— Reply to this email directly, view it on GitHub https://github.com/warpdotdev/Warp/issues/50#issuecomment-2244878286, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR5SO7WRLU6RPWHD4VHVAUTZNYYABAVCNFSM5A25VJSKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRUGQ4DOOBSHA3A . You are receiving this because you commented.Message ID: @.***>