In the depth of the internet I found this function which I need foremost but you could see it as an example for any function that can be applied on a buffer.
(defun open-in-desktop () "Open the containing directory of the current file in desktop. Works in Microsoft Windows and Mac OS X." (interactive) (cond ((string-equal system-type "windows-nt") (w32-shell-execute "explore" (replace-regexp-in-string "/" "\\" default-directory t t))) ((string-equal system-type "darwin") (shell-command "open ."))))
Now I use
ibuffer and I would like to execute that function on the buffer where the cursor is currently located (using a keybinding).
Currently I mark the buffer (m),execute
ibuffer-do-eval (E) and then type (
open-in-desktop). This works but is quite tedious.
I have no coding skills therefore, I would appreciate any help on that.