you are viewing a single comment's thread
view the rest of the comments
[–] [S] 7 points 2 years ago (5 children)

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.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 2 years ago (2 children)

    Does bash have extensions? If not I know other shells do. Definitely something you could do there

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 2 points 2 years ago (1 child)

    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

  • source
  • parent
  • hideshow 1 child comment
  • 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

  • source
  • parent