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

Feature Request: Import/Export from a file #13

Open
jbarzilai opened this issue Nov 22, 2016 · 4 comments
Open

Feature Request: Import/Export from a file #13

jbarzilai opened this issue Nov 22, 2016 · 4 comments

Comments

@jbarzilai
Copy link
Owner

Allow the user to import encounters from a file that was exported.

@Asmor
Copy link

Asmor commented Nov 23, 2016

Just wanted to mention that one rule I have is everything has to be pure JavaScript... In particular, no flash. I bring this up because chances are someone might ask for a copy-to-clipboard button, and AFAIK the only way to copy something to someone's clipboard (besides them doing it themselves) is via flash.

That said, it might be nice to have an option that would put up a modal with a text area and the encounter info in plain text. Handy for people that want to put the data into some other note-taking tool, and could also be parsed programatically if e.g. Improved Initiative wanted to handle that sort of thing. See: https://www.reddit.com/r/DnD/comments/5e6vhx/welcome_to_the_new_kobold_fight_club_encounter/dad2t1m/?context=3

@jbarzilai
Copy link
Owner Author

I think this might be possible with HTML 5 nowadays. I found https://github.com/zenorocha/clipboard.js/ with a bit of searching. I'm sure there are other good ways to do it if Github uses a button to do it.

@Asmor
Copy link

Asmor commented Nov 24, 2016

Huh, so it is. Weird. I feel like I researched this not too long ago and a pure JS was impossible, but it looks like it's been well supported for quite a while (chrome 43, firefox 41, IE 9). My bad.

@jbarzilai
Copy link
Owner Author

More context: cynicaloptimist/improved-initiative#46

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

No branches or pull requests

2 participants