See https://www.drupal.org/project/drupal/issues/3089751 & https://www.drupal.org/forum/support/theme-development/2018-12-08/prevent-form-actions-from-appearing-in-a-modal-dialog
In mytheme.libraries.yml
dialog.ajax:
js:| # commands to ignore | |
| cmdignore=(htop tmux top vim) | |
| # end and compare timer, notify-send if needed | |
| function notifyosd-precmd() { | |
| retval=$? | |
| if [[ ${cmdignore[(r)$cmd_basename]} == $cmd_basename ]]; then | |
| return | |
| else | |
| if [ ! -z "$cmd" ]; then |