{"action":"created","issue":{"url":"https://api.github.com/repos/cboxdoerfer/fsearch/issues/127","repository_url":"https://api.github.com/repos/cboxdoerfer/fsearch","labels_url":"https://api.github.com/repos/cboxdoerfer/fsearch/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/cboxdoerfer/fsearch/issues/127/comments","events_url":"https://api.github.com/repos/cboxdoerfer/fsearch/issues/127/events","html_url":"https://github.com/cboxdoerfer/fsearch/issues/127","id":304989219,"number":127,"title":"«Open Folder» should also SELECT current file in file manager","user":{"login":"al-mission-2016","id":23720516,"avatar_url":"https://avatars3.githubusercontent.com/u/23720516?v=4","gravatar_id":"","url":"https://api.github.com/users/al-mission-2016","html_url":"https://github.com/al-mission-2016","followers_url":"https://api.github.com/users/al-mission-2016/followers","following_url":"https://api.github.com/users/al-mission-2016/following{/other_user}","gists_url":"https://api.github.com/users/al-mission-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/al-mission-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/al-mission-2016/subscriptions","organizations_url":"https://api.github.com/users/al-mission-2016/orgs","repos_url":"https://api.github.com/users/al-mission-2016/repos","events_url":"https://api.github.com/users/al-mission-2016/events{/privacy}","received_events_url":"https://api.github.com/users/al-mission-2016/received_events","type":"User","site_admin":false},"labels":[{"id":312553991,"url":"https://api.github.com/repos/cboxdoerfer/fsearch/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-14T01:11:34Z","updated_at":"2018-03-16T20:11:43Z","closed_at":null,"author_association":"NONE","body":"When «Open Folder»-action opens system default  file manager (FM) for selected/found file it would be also convenient to SELECT that file in FM, especially for heavily populated folders.\r\n\r\nMany file managers accept full file path as a command line argument and not only open file’s directory but also select that file there. It has been tested with «nemo», «nautilus», «double commander»).\r\n\r\nExample:\r\n$nemo '/usr/include/GL/gl.h'\r\nopens “nemo” FM with current dir = “/usr/include/GL/” and sets selection bar on file «gl.h».\r\n\r\nTo implement this in “fsearch”, it is probably necessary to use\r\n\"xdg-mime query default inode/directory\"\r\nto get the default FM string, e.g. \"nemo.desktop\". If the action is “Open Folder”, not “Open File”, then instead of \"xdg-open\" you may invoke system FM with full-file-path as param.\r\n\r\nHere is a few appropriate links on the subject:\r\nhttps://unix.stackexchange.com/questions/364997/open-a-directory-in-the-default-file-manager-and-select-a-file\r\nhttps://superuser.com/questions/465495/how-to-find-the-default-file-manager\r\nhttps://wiki.archlinux.org/index.php/default_applications\r\nhttps://wiki.archlinux.org/index.php/desktop_entries\r\n\r\nGlück zu!)\r\n"},"comment":{"url":"https://api.github.com/repos/cboxdoerfer/fsearch/issues/comments/373831449","html_url":"https://github.com/cboxdoerfer/fsearch/issues/127#issuecomment-373831449","issue_url":"https://api.github.com/repos/cboxdoerfer/fsearch/issues/127","id":373831449,"user":{"login":"al-mission-2016","id":23720516,"avatar_url":"https://avatars3.githubusercontent.com/u/23720516?v=4","gravatar_id":"","url":"https://api.github.com/users/al-mission-2016","html_url":"https://github.com/al-mission-2016","followers_url":"https://api.github.com/users/al-mission-2016/followers","following_url":"https://api.github.com/users/al-mission-2016/following{/other_user}","gists_url":"https://api.github.com/users/al-mission-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/al-mission-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/al-mission-2016/subscriptions","organizations_url":"https://api.github.com/users/al-mission-2016/orgs","repos_url":"https://api.github.com/users/al-mission-2016/repos","events_url":"https://api.github.com/users/al-mission-2016/events{/privacy}","received_events_url":"https://api.github.com/users/al-mission-2016/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T20:11:43Z","updated_at":"2018-03-16T20:11:43Z","author_association":"NONE","body":"Godlike)\r\n\r\nIt's more flexible than just hardwired approach.\r\n\r\n--- --- ---\r\n\r\nI've tested the feature with \"nemo\" and \"doublecmd\" with following results.\r\n\r\n1) **{path_full}** - OK! No problems with DoubleCommander (doublecmd);\r\n        some warnings in console with \"nemo\" (if this can somehow help):\r\n\r\n>         Initializing nemo-image-converter extension\r\n>         (nemo:23105): Gtk-CRITICAL **: gtk_widget_get_settings: assertion 'GTK_IS_WIDGET (widget)' failed\r\n>         sys:1: Warning: g_object_get: assertion 'G_IS_OBJECT (object)' failed\r\n>         (nemo:23105): Gtk-CRITICAL **: gtk_widget_get_mapped: assertion 'GTK_IS_WIDGET (widget)' failed\r\n>         (nemo:23105): Gdk-CRITICAL **: gdk_window_is_visible: assertion 'GDK_IS_WINDOW (window)' failed\r\n>         (nemo:23105): Gdk-CRITICAL **: gdk_window_show_internal: assertion 'GDK_IS_WINDOW (window)' failed\r\n>         (nemo:23105): Gtk-CRITICAL **: gtk_widget_set_opacity: assertion 'GTK_IS_WIDGET (widget)' failed\r\n>         (nemo:23105): Gtk-CRITICAL **: gtk_widget_queue_draw: assertion 'GTK_IS_WIDGET (widget)' failed\r\n>         Initializing nemo-image-converter extension\r\n>         (nemo:23243): Gtk-CRITICAL **: gtk_widget_get_settings: assertion 'GTK_IS_WIDGET (widget)' failed\r\n>         sys:1: Warning: g_object_get: assertion 'G_IS_OBJECT (object)' failed\r\n>         (nemo:23243): Gtk-CRITICAL **: gtk_widget_get_mapped: assertion 'GTK_IS_WIDGET (widget)' failed\r\n>         (nemo:23243): Gdk-CRITICAL **: gdk_window_is_visible: assertion 'GDK_IS_WINDOW (window)' failed\r\n>         (nemo:23243): Gdk-CRITICAL **: gdk_window_show_internal: assertion 'GDK_IS_WINDOW (window)' failed\r\n>         (nemo:23243): Gtk-CRITICAL **: gtk_widget_set_opacity: assertion 'GTK_IS_WIDGET (widget)' failed\r\n>         (nemo:23243): Gtk-CRITICAL **: gtk_widget_queue_draw: assertion 'GTK_IS_WIDGET (widget)' failed\r\n>         (nemo:23243): Gtk-CRITICAL **: gtk_widget_get_settings: assertion 'GTK_IS_WIDGET (widget)' failed\r\n>         (nemo:23243): Gtk-CRITICAL **: gtk_widget_get_mapped: assertion 'GTK_IS_WIDGET (widget)' failed\r\n\r\nI'm not sure if these warnings are relevant to FSearch. Otherwise {full_path} does exactly what is wanted :)\r\n\r\n2) **{path}** - OK! No warnins in console for both \"nemo\" & \"doublecmd\".\r\n\r\n3) **{path_raw}** - NO! Tested with \"nemo\" & \"doublecmd\".\r\n    Console message: \r\n\r\n> \"Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.\"\r\n4) **{path_full_raw}** - NO! I tested with \"nemo\". Paths with spaces can't be processed correctly.\r\n    Console message: \r\n\r\n> Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.\r\n\r\nObviously **unquoted (raw) path** can not be processed properly. FM stumbles upon spaces. IMHO, {*_raw}-family arguably useless.\r\n\r\n\r\nChristian, thanks a lot).\r\n"}}
{"actor":{"display_login":"al-mission-2016"}}