Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couple of suggestions and a question: add menu, export to hosted doc. #20

Open
ghost opened this issue Dec 2, 2013 · 2 comments
Open

Comments

@ghost
Copy link

ghost commented Dec 2, 2013

Firstly, thanks for this great script.

1: Did you know you can add a menu very simply?

function onOpen() {
  DocumentApp.getUi().createMenu('Markdown Conversion')
      .addItem('Convert and email', 'ConvertToMarkdown')
      .addToUi();
}

2: Does anyone know a way of adding this script so it's globally available to all docs in my account rather than adding per doc? I've been trawling through https://developers.google.com/apps-script/scripts_containers and sadly it doesn't look like it can be. I hope I'm wrong though.

3: Would you consider adding support for automatically "pushing" the page to a Google Hosted folder so it can be easily published in 2 clicks using something like Markdown-js.

Finally, thanks again!

@suntong
Copy link

suntong commented Dec 13, 2013

  1. Done by lpanebr already in this pull request 4 months ago: Add menu and prepare extension #17
  2. lpanebr knows how: Enable batch editing files #14 (comment)
    but maybe because his simple pull request was ignored made him reluctant to go any further.

@suntong
Copy link

suntong commented Dec 25, 2013

Does anyone know a way of adding this script so it's globally available to all docs in my account rather than adding per doc?

Update on this -- Just write one script and use Google Picker for Google Drive (https://gist.github.com/suntong001/8049824) to pick whatever doc you want to convert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant