Don't you hate it when your mining and need to sell everything I suggest I command such as /lock hand that prevents what ever is in your hand to be able to be sold when you do such command as /sell all
That sounds like a nice idea, but I believe it would be quite hard to implement. But I'm no developer. XD
So you're suvgesting a command that sells everything in your inventory except the item in your hand? Not really needed if you're using enchanted tools to mine.
That isn't quite what Fishie is suggesting- it's more like when you want to keep a certain item, but not everything else. As for the suggestion, I personally think that this idea would work a lot better and would be far easier to code.