How to remove a file with Kate
by Dominik • October 25, 2012 • Users • 6 Comments
KDE has all these little nifty features, and – guess what – Kate has them, too. Here, we’ll have a look at how to delete a file with Kate. We’ll start with opening the file we want to delete. Example:

Next, we open the menu File > Open With and choose Other… as follows:

We’re almost done: Type ‘rm’ in the Open With dialog:

Now click OK to perform the action, et voila:

Now as you can see, Kate notifies you about the successful deletion. In case you change your mind, you can write it to disk again by clicking Overwrite. Reloading will tell you, that the file can indeed not be found, proving that Kate did exactly what you want. You can also ignore what you just did, which is probably the best choice. Don’t tell anyone
PS: This tip comes from the KDevelop developers. So all Kudos and Cake go to them!
PPS: We are working hard at the Kate/KDevelop sprint in Vienna to provide the best tools for our users!
Another way to remove a file with Kate: Go to View->Tool Views->Show Terminal. From there you can do all kinds of interesting stuff…
I wouldn’t do that! And I alias rm to “rm -i”. This just doesn’t look good.
@xolve: Aliases should only be defined for interactive shell sessions.
Absolutely awesome. I use Kate for managing lots of files in elaborate directory structures. And I don’t clean up files I don’t need anymore because it is too much work to find them… This is far easier
So, super tip. Thanks!
Dude! Glad you find it useful.
We’re at the the KDevelop/Kate sprint in Vienna right now, and all had a good laugh about it
Even simpler:
1. Ctrl+O or Open to get to the file selection dialog (which open the directory in which the file is located)
2. Delete the file with Del, Shift+Del or with the usual contextual menu