warp icon indicating copy to clipboard operation
warp copied to clipboard

Add the ability to delete a block

Open narner opened this issue 5 years ago • 33 comments

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

CleanShot 2021-07-22 at 15 53 03@2x

narner avatar Jul 22 '21 22:07 narner

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?

gagata avatar Jul 22 '21 23:07 gagata

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.

narner avatar Jul 22 '21 23:07 narner

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

simjnd avatar Jul 23 '21 11:07 simjnd

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.

zachlloyd avatar Jul 23 '21 20:07 zachlloyd

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

gagata avatar Jul 28 '21 23:07 gagata

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)

donaldguy avatar Jul 29 '21 22:07 donaldguy

Linking:

  • #46

elviskahoro avatar Nov 07 '21 22:11 elviskahoro

@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".

elviskahoro avatar Jan 04 '22 19:01 elviskahoro

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.

braykov avatar Nov 29 '22 20:11 braykov

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

dannyneira avatar Nov 30 '22 21:11 dannyneira

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.

yarseyah avatar Dec 05 '22 18:12 yarseyah

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.

owenblacker avatar Jun 23 '23 14:06 owenblacker

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.

dannyneira avatar Jun 23 '23 16:06 dannyneira

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!

Mbladra avatar Oct 19 '23 07:10 Mbladra

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

pnlinh avatar Nov 24 '23 01:11 pnlinh

I have 3 use cases:

  • Remove a block with a password in it. This does not happen very often and can require some more complex user interaction, like clicking. [remove a block and from history]

  • Hide a block which I don't care about any more. For example a file listing; it takes up a lot of space and when I am finished with said file name the listing is of no value any more. The same when I list my kubernetes pods. When I have checked the presence or name of the pod the list is of little use. So I'd like to just hide it. This happens quite often; even very often. The best solution, for me that is, is to have a shortcut. [hide a block]

  • Remove a block with speling eror in, like a mistyped command. This happens wy to offten. So a shortcut would be prefereble. preferebel. referable. I'd like to remove it from history in the same keystroke. No reason to have to search or arrow-up through erroneous commands. [remove a block and from history]

LosManos avatar Dec 28 '23 07:12 LosManos

@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 avatar Jan 23 '24 08:01 LosManos

@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

pnlinh avatar Jan 23 '24 09:01 pnlinh

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

gavrilikhin-d avatar Feb 12 '24 11:02 gavrilikhin-d

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".

avanavana avatar Apr 24 '24 05:04 avanavana