I use ripgrep for searching in a project and I want to save the ripgrep buffer with the links.

Simply saving the buffer just removes the links and leaves only plain text.

(The reason for this is, I want to go through several parts of the code which I found with ripgrep. This will take some days, and I want to be able to keep track of my progress by going through the search results and delete the ones I already worked on.)

  • vecksagos@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    using embark, you need to set a keybind to embark, then use the ripgrep normally, when the minibuffer returns the results, call the embark via keybind and use embark-export, that is bind to E, then embark will create a buffer with the results from minibuffer

  • jeenajeena@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I would use Embark for this:

    C-. (embark-act)

    follow by

    S (embark-collect)

    This will convert whatever content you have in the mini-buffer into an ordinary buffer that you can keep, browse and even save.

  • ayy_ess@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Saving and loading the *rg* buffer works for me as the saved file’s first line is -*- mode: rg; default-directory: "/path/to/dir/" -*- to enable rg-mode on load. How are you saving the buffer?