• renzev@lemmy.worldOP
    link
    fedilink
    arrow-up
    7
    ·
    5 days ago

    Would be awesome if there was more software to bridge the gap between CLI and GUI workflows. trash-cli and dragon-drop are pretty useful to that extent, but there is still much that could work better. I want files I’ve touched in bash to appear in the “Recent” section in the GTK filepicker, and stuff like that.

    • pinball_wizard@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      5 days ago

      You may want to check out Ghost Commander and it’s many cross platform clones. They include a nice mix of graphical and batch command tools.

      • renzev@lemmy.worldOP
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        You could do it in any shell by replacing touch with a function or alias that sends a note to whatever GTK subsystem is responsible for the “recents” tab before making the file. A more comprehensive way would be either using inotify or kernel-level process tracing fuckery, but I’m not smart enough for that

        • thedeadwalking4242@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          5 days ago

          True, but I was thinking the shell would be the best place. You can have with watch for file modifications preformed by the user and reach out to nautilus to update its recents. That way you don’t have to watch for all inotify events on receiving user updates, and you get all tools not just touch