This may be hacky but it works! I save the dired buffer at the beginning and then switch back to it right at the end.
(defun find-file-dired-ace-window ()
"Use ace window to select a window for opening a file from dired."
(let ((file (dired-get-file-for-visit))
(if (> (...
Don't use find-file (or find-file-other-window).
Use find-file-noselect to obtain a buffer visiting the file. Then use display-buffer-pop-up-window to display it in another window.
There are other buffer-display functions you can use, if you want to show it in some existing window. C-h f display-buffer tells you about them.
Dunno what aw-switch-to-window ...
I can't reproduce your error, and want to suggest that you're possibly using xclip incorrectly. This answer should also benefit others because no-one needs to create a custom emacs function for this to work.
From a dired buffer, I select a small-sized file, and enter & to get the async dialog. Then I enter xclip -i. That sends the contents of the ...
I am open to any other suggestion of workflow to reach a recent (or any) directory quickly.
Dired+ lets you open a Dired buffer that shows recently used directories (commands diredp-dired-recent-dirs and diredp-dired-recent-dirs-other-window, bound globally to C-x D r and C-x 4 D r).
This is similar to the commands showing recent files (C-x D R and C-x 4 D ...