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

Request: a browser add-in that lets you highlight any text and lets you send it to QOwnNotes #330

Open
Weej1 opened this Issue Sep 18, 2016 · 36 comments

Comments

Projects
None yet
4 participants
@Weej1
Copy link

Weej1 commented Sep 18, 2016

Hi,
I've been hunting around for quite sometime for a notetaking app that could work both on my windows work PC and Ubuntu personal one. I finally settled on QOwnNotes, so thank you for the amazing app!
As the title says I'm requesting a feature that currently has me using 2 separate systems and I'd much rather port ALL of it into QOwnNotes and just run one note taking system.

The other 2 systems I use are the Firefox addons on QuickFox and Gkeep Panel. The reasons for keeping them around are:

  • Browser integration. Both QuickFox and Gkeep Panel connects to Firefox so you can grab text. Gkeep Panel's plus point is that a "window-within-a-window" pops up instantly whenever I click on it Here's what that looks like:
    screenshot from 2016-09-19 04-20-32
  • QuickFox Notes takes a little time to load itself and opens up as a separate window however functionally it beats GKeep Panel (really the only plus point of Gkeep panel is it's instantly appearing panel!) The biggest feature I use of QuickFox Notes is its right click context "send to" option. I just need to highlight text from the browser, right click, and I get an option to either create a new note from the selection or append the selected text to a list of already existing notes. Here's what that looks like:
    screenshot from 2016-09-19 04-33-20

I know it looks like I'm making demands, but really it's just an idea. If any of these options could be implemented in any way, shape or form I'd be getting rid of the other 2 options in a heartbeat! As it stands Im loving qOwnNotes right now, here's to it being the only app that gets my love instead of sharing it with 2 others! Thanks for reading! :bowtie:

@Weej1 Weej1 changed the title Request: a browser add-in that lets you highlight any text and lets you send it to Ownnote Request: a browser add-in that lets you highlight any text and lets you send it to QOwnNotes Sep 18, 2016

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Sep 19, 2016

Thank you for your kind words and your suggestion.
QuickFox and Gkeep are both web-services, aren't they? I don't think there is a unified way to "talk" to a desktop app on Linux, Mac and Windows, plus I don't know if the browser is allowed to use them if there would be a way. And then there also would be integration for other browsers...

@Maboroshy

This comment has been minimized.

Copy link
Contributor

Maboroshy commented Sep 19, 2016

I've added something like this for QOwnNotes with my Bash-note shell script. You can give it a try on your Linux system.

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Sep 19, 2016

Clipnote? Sounds great, @Maboroshy! You should give it a try, @Weej1.

@Maboroshy

This comment has been minimized.

Copy link
Contributor

Maboroshy commented Sep 19, 2016

I called it so. Set inbox note in the script, bind bash-note -c to some key, KDE easily do this, and it pastes any selected web page part including images as markdown.

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Sep 19, 2016

You really are crafty! 🎉

@Maboroshy

This comment has been minimized.

Copy link
Contributor

Maboroshy commented Sep 19, 2016

I'm still to implement pasting to current note instead of predefined one though.

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Sep 21, 2016

I will close this issue until there is more information.

@pbek pbek closed this Sep 21, 2016

@Weej1

This comment has been minimized.

Copy link

Weej1 commented Sep 22, 2016

Hi Patrizio and Maboroshy

My apologies for the late reply. I'm currently out of country and my personal Linux laptop is back home. I intend to try this solution out when I return. @pbek To answer your question yes Google Keep is a web service however However QuickFox is not, it saves notes either in Firefox's Bookmarks OR in an sqlite file. As for the rest of your post I'm guessing you're probably right on all counts!

The issue is primarily my work laptop which is windows 7 based. It has many IT policies governing it so installing software isn't easy (Thankfully QON has a portable version option).

Currently to get around this "clipnotes" issue on the work laptop I use the right click context menu option called "Save To Keep" which saves a highlighted clip of text to Google Keep, then I copy each one by one into QOwnNotes when I have the free time.

@Maboroshy Thanks for the scripts! I'm not very Bash savvy but I'm sure I'll get through them and find out exactly what I need from them. Thanks again for sharing them!

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Sep 22, 2016

@Weej1 as you was suggesting I guess the extension doesn't "talk" to QuickFox directly.
I guess your safest call is with the solution of @Maboroshy.

portable mode

Yes, the portable mode came into existence recently. ;)

clipnotes

if you find an extension that stores text files to disk you could use that too...

@Maboroshy

This comment has been minimized.

Copy link
Contributor

Maboroshy commented Sep 22, 2016

@Weej1 feel free to ask me anything and open any issues.
Remember you need xclip, iconv, pandoc and wget packages installed to run clipnote module of the script. The script is just a glue, all the job done by this wonderful apps.

@Weej1

This comment has been minimized.

Copy link

Weej1 commented Sep 27, 2016

Alright, this is an update for those who have this issue and are searching for a "fix" with Windows+Chrome.

My solution isn't great but it was the easiest I could think of.

Context

Firefox has plenty of addons that lets you select text in your browser and save it as a plain text file. Many even give options such as "Append to existing text file" etc. This is all great since it means QOwnNotes can access those files direct.

Yet Chrome is a different beast altogether. I've found many "note clipper" extensions for it but they all didn't have the option to save to a plain text file! (except for this one but I'll explain why I skipped it).

At best the extensions saved to a format like XML or some Database. At worst they saved to a proprietary format that could be read by some "reader" extension or website by the same author/company.

  • The Solution *

The "fix" I came up with is down to the latest version of QOwnNotes. * It now can parse and save Evernote files! * This is why I skipped the extension I linked above. While I could "export all to text" with ease I was running into issues like: "How well updated is this extension?" " Will it break with the next version of chrome?"etc

Since I was installing an extension to parse the text later on and put in someplace QOwnNotes could use it. I thought it better to just install the Evernote extension (and the portable app too!) and just save my notes in Evernote's Format (.enex ). From that point I direct QOwnNotes to its notes folder and have it auto-import! It does a pretty good job so for now Im sorted I guess! I have a few more suggestions but I'll open up those as other tickets.

For Linux users just use Maboroshy's stuff it's very modular and you can set it up any way you want.

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Dec 26, 2018

18.12.6

  • start of QOwnNotes websocket server integration for implementing a
    Web Scraper browser extension
    • you should already be able to "talk" to your QOwnNotes application by
      connecting to ws://127.0.0.1:22222, for example with Echo Test

@pbek pbek reopened this Dec 26, 2018

pbek added a commit that referenced this issue Dec 26, 2018

pbek added a commit that referenced this issue Dec 26, 2018

pbek added a commit that referenced this issue Dec 26, 2018

pbek added a commit that referenced this issue Dec 26, 2018

pbek added a commit that referenced this issue Dec 26, 2018

pbek added a commit that referenced this issue Dec 26, 2018

pbek added a commit that referenced this issue Dec 26, 2018

pbek added a commit that referenced this issue Dec 27, 2018

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Dec 27, 2018

18.12.7

@pbek pbek added this to the 18.12.7 milestone Dec 27, 2018

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Dec 27, 2018

There now is a new release, could you please test it and report if it works for you?

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Dec 27, 2018

18.12.8

  • improved note name filtering to prevent troubles on Windows for the QOwnNotes Web Companion Chrome extension
    • the name and note text will be trimmed to prevent wrong newlines
    • the QOwnNotes Web Companion Chrome extension was updated to version 18.12.1
      • fixed the default port
      • the url of the page will now also be written to the note
      • restructured the context menu
      • added an context menu entry to reset the settings
      • download the latest version on QOwnNotes Chrome Web Companion releases
  • the amount of = characters added for the headlines of new notes are now
    limited to 40 to prevent too long headline lines
    • the name will be trimmed to prevent wrong newlines in the headline
@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Dec 27, 2018

There now is a new release, could you please test it and report if it works for you?

@pbek pbek modified the milestones: 18.12.7, 18.12.8 Dec 27, 2018

@woodworker

This comment has been minimized.

Copy link

woodworker commented Dec 27, 2018

Works now, but the Headline is a bit strange when there are 2 pipes in the Title

image

pbek added a commit that referenced this issue Dec 28, 2018

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Dec 28, 2018

@woodworker, which webpage did you use? I guess I will stop converting "dangerous characters" to _ and use spaces instead.

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Dec 28, 2018

18.12.9

  • "dangerous" characters will now be converted to whitespaces instead of _ in
    filenames and headlines to prevent underline formatting in headlines if two _
    characters are present

@pbek pbek modified the milestones: 18.12.8, 18.12.9 Dec 28, 2018

pbek added a commit that referenced this issue Dec 28, 2018

pbek added a commit that referenced this issue Dec 28, 2018

pbek added a commit that referenced this issue Dec 28, 2018

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Dec 28, 2018

18.12.9

  • "dangerous" characters will now be converted to whitespaces instead of _ in
    filenames and headlines to prevent underline formatting in headlines if two _
    characters are present (for #330)
  • added support for converting html to markdown when a page is created as new
    note for the QOwnNotes Web Companion Chrome extension
    (for #330)
  • inline images will now be automatically transformed to real images if html is
    converted to markdown (for #330)
  • the QOwnNotes Web Companion Chrome extension
    was updated to version 18.12.2
    • added support to import pages as new note
      • the html will be converted to markdown and images of the page will be
        downloaded (might take a while)
    • added support to add a screenshot of the visible area as new note
    • selected text will now be created as new note with newlines if possible
    • download the latest version on QOwnNotes Chrome Web Companion releases
@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Dec 28, 2018

Still no luck with capturing the selection as html... Tried finding something several hours again.

There now is a new release, could you please test it and report if it works for you?

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Dec 31, 2018

I now also added the extension to the Chrome Web Store.

pbek added a commit that referenced this issue Dec 31, 2018

pbek added a commit that referenced this issue Jan 1, 2019

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Jan 1, 2019

19.1.0

  • you can now change the socket server port for connecting with the
    QOwnNotes Web Companion Chrome extension in the new Chrome extension settings
  • fixed some possible crashes if a socket client disconnects from the socket server

@pbek pbek modified the milestones: 18.12.9, 19.1.0 Jan 1, 2019

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Jan 1, 2019

There now is a new release, could you please test it and report if it works for you?

pbek added a commit that referenced this issue Jan 3, 2019

pbek added a commit that referenced this issue Jan 3, 2019

pbek added a commit that referenced this issue Jan 8, 2019

@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Jan 8, 2019

19.1.1

  • the Chrome extension settings got renamed to Browser extension
  • added Firefox Add-ons page
    to the Browser extension settings page (for #330)
  • the QOwnNotes Web Companion browser extension
    was updated to version 19.1.1
    • the extension now also works with Firefox (for #1,
      thank you @Offerel for your Firefox changes)
    • reimplementation of extension with webextension-toolbox, webpack and VueJS
      for Google Chrome and Mozilla Firefox
      • creating notes from the current selection, the whole page and as
        screenshot now works with Firefox and Chrome
    • there now is a browser option page to set and reset the server socket port
    • the text of the extension can now be translated
    • download the latest version on QOwnNotes Web Companion releases
@pbek

This comment has been minimized.

Copy link
Owner

pbek commented Jan 8, 2019

There now is a new release, could you please test it and report if it works for you?

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