Git Product home page Git Product logo

Comments (10)

sonnenkern avatar sonnenkern commented on May 27, 2024 1

Works! Awesome. Thank you. πŸ’―

You are welcome! Donβ€˜t forget to give me a star on GitHub πŸ˜‰

from quip-export.

sonnenkern avatar sonnenkern commented on May 27, 2024

Hi! Thank you for your feedback. Let's think about it. But I don't really understand what are you meaning. Try to explain it more precise, maybe with some example.

from quip-export.

josemdv avatar josemdv commented on May 27, 2024

Hi @sonnenkern, I'm referring to the comments and conversations of a Quip document, for example, https://www.quipsupport.com/hc/en-us/articles/360020735792-Comments-and-conversations.

Right now, when we export a document, we can't export the previous comments or conversation of the document, and it will be amazing if it was possible.

from quip-export.

sonnenkern avatar sonnenkern commented on May 27, 2024

Hi @josemdv, I have added the export of comments (v. 2.1.0, option '--comments'). In Quip you can add comments to whole document either to some parts of document (annotations).
The new option works only for document's own comments and conversations. Content based comments (annotations) are not supported. I hope you will be happy with the new feature.
Could you try it please? Thnx.

P.S. Actually it is possible to get out also annotations, but in that case they will loose the context. You can see the comments, but it will be difficult to distinguish which part of document they belongs to.

from quip-export.

vermavikrant avatar vermavikrant commented on May 27, 2024

Hi @sonnenkern Thank you for this awesome tool. May I ask if its possible to export the annotations as well? Is it a straightforward update to the code?
Probably its fine if we lose the context.
(or if possible then have Line number or Line text if thats supported by Quip APIs to export annotations)

from quip-export.

sonnenkern avatar sonnenkern commented on May 27, 2024

from quip-export.

vermavikrant avatar vermavikrant commented on May 27, 2024

Hi @sonnenkern, I am not familiar with NodeJS code but happy to look into the code location if I can.

I didn't know about Browser-version of the tool. I used CLI version (npm install -g quip-export) and ran command in following format:
quip-export --token "quip_api_token" --embedded-styles --embedded-images --comments --folders "folder_id"
It exported Global comments minus the annotations and hence came across this closed issue.

I can try to setup project locally later this week. Meanwhile please point me in the right direction. Thanks.

from quip-export.

sonnenkern avatar sonnenkern commented on May 27, 2024

from quip-export.

vermavikrant avatar vermavikrant commented on May 27, 2024

Works! Awesome. Thank you. πŸ’―

from quip-export.

ibrahima avatar ibrahima commented on May 27, 2024

Thanks for making this addition, I think it's pretty handy! Sometimes a lot of the value in historical documents is in the comments/annotations.

I do want to point out that it is actually feasible to attach the comments to the place in the document that they were annotating - the annotation object includes a highlighted_section_ids field which can be used to refer back to the original section that was annotated. It'd probably be annoying to make them show up as annotations like they do on Quip, but it is pretty feasible to include a link back to the referenced section since the sections have anchors. I have a hacky version of it working locally and would love to contribute a PR back to add those links. Here's a snippet of that code below:

  async _getThreadMessagesHtml(quipThread, path) {
//...
// put this near the bottom of `_getThreadMessagesHtml
      let highlightedSections = "";
      if (
        message.annotation &&
        message.annotation.id &&
        message.annotation.highlight_section_ids
      ) {
        highlightedSections = message.annotation.highlight_section_ids
          .map((sectionId, index) => {
            // Not sure if there can be more than one highlight section, but if so, we can number the reference links
            const suffix =
                  message.annotation.highlight_section_ids.length == 1
                  ? ""
                  : index + 1;
            return `<a href="#${sectionId}">ref${suffix}</a>`;
          })
          .join(" ");
      }

// This replaces the last conditional of this function
      if (text) {
        html += `\n<div class="message"><span class="message--user">${message.author_name}${dateStr} ${highlightedSections}<br/></span>${text}</div>`;
      }

Also, it seems to me that currently this might only include the first 25 annotations per thread/document since I believe that's the default limitation in the API.

In any case, thanks for this project!

from quip-export.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.