Code Monkey home page Code Monkey logo

createlink's People

Contributors

hnakamur avatar ku avatar milligramme avatar myakura avatar patkujawa-wf avatar rinopo avatar setomits avatar tobynet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

createlink's Issues

'Filter' is not working

Create Link 0.5.5 (0.5.1 から発生していたと思われます)

README.md にある以下のサンプルのように Filter を入力しても、機能しません。

Name Format Filter
HTML %title% return s + ' ' + (new Date().toJSON().substring(0, 10))

0.4.1 の頃はFilterは機能していました。
同じように機能することを期待します。

Copy as rich HTML

One feature I've been unable to find in this and its competing extensions is to copy HTML like " ku/CreateLink " into the clipboard.

This way i can paste directly into gmail or somewhere else easily. I'd love to see this feature available.

Thanks for the great extension.

feature: default link type support

It would be great if choosing a format from the pull-down not only put a link in the clipboard in that format, but also set the current format to be used when just clicking the extensions icon in the toolbar (or via keyboard short=cut, as suggested in other request)

Does not work with only one format

If you remove all but one of the formats (for example, all but "Plain text") then the non-hierarchical menu item "Copy link as Plain text" does not update the clipboard as expected. In fact, it does not seem to touch the clipboard.

keyboard shortcuts failed on v0.5.7 ,chrom99,win10; mouse works fine.

thanks for the great extension..

i changed several keyboard shortcuts combination, all failed with : either 'undefined' or empty can pasted.

moreover, is the captioned issue conflict with some other extensions? with vimium-c disabled, the keyboard shortcuts still failed, with mouse always works fine.

Not clear how to use filters

In the options section there's a place where you can add filters to a given configuration. I'd like to be able to filter out " by *PhoenixHawke on deviantART" from the page title in the link below (the "13" could be any of my deviant art gallery titles):

13 by *PhoenixHawke on deviantART

However it is not clear how to do this. Advice?

Thanks,
~Brian

First use of Create Link on a page returns the previous string

This is with Version 0.5.5.

Recently, I notice that the first time that I use Create Link on a particular web page it returns the previous text in the system clipboard, rather than the text that should be generated for that page. The second and later times I use Create Link on that page it returns the correct text, generated from that page.

can't build

make watch
./node_modules/.bin/webpack -w
make: ./node_modules/.bin/webpack: No such file or directory
make: *** [watch] Error 1

npm install

make watch
./node_modules/.bin/webpack -w
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.output.path: The provided value "extension/js" is not an absolute path!

html links no longer copy to the windows clipboard properly

As of December 20, 2021, when links are copied as html on Windows 10 - the Windows clipboard no longer recognizes them as html links

For example, if an html link is created for this web page
https://tidesandcurrents.noaa.gov/sltrends/globalregionalcomparison.html

And then I paste it into the WordPress editor, it appears like this :

Image 108

The code which is getting embedded as html now (incorrectly) looks like this

Image 109

The pasted link used to appear in the WordPress editor (correctly) as a link :
Image 107

%text_n% doesn't work with selected text

I was trying to copy text from stackoverflow and include a comment with the source url.
This tool looked simple and promising, but it didn't format the copied text, nor did it let me do a ctrl-c shortcut.
I ended up using the auto-copy plugin and it was easy to configure with an "informational comment" of "$crlf#$url"
This worked without any drama.
It seems to be way overkill, and I would prefer a lighter weight open-source solution, but for now I'll use auto-copy until I'm motivated to fix this and put in a PR.

https://chrome.google.com/webstore/detail/auto-copy/bijpdibkloghppkbmhcklkogpjaenfkg

url plain text copy/paste not working

Hi! This is an essential extension for me as I really need a lot to copy links from address bar in chrome in plain text to other apps and simply paste it. But now with the latest version of chrome it does not work as it used to work. Even if I just leave %url% in the format field, the result of pasting is always (added blank spaces so code is not parsed): "< m e t a h t t p - e q u i v = " c o n t e n t - t y p e " c o n t e n t = " t e x t / h t m l ; c h a r s e t = u t f - 8 " > w w w . s i t e u r l . c o m" is there some configuration I am missing so I can overcome this problem? Thanks and kind regards, David

Provide keyboard driven means for changing default format (without having to visit options screen)

I would like a quick way to switch the default format, preferably including a mouse-free way of doing so.

For example, if it were possible to activate the extension (with keyboard), then navigate the menu (with keyboard), and change the default link type to whatever is selected if the control key is held down while selecting - that would be great.

Motivation

I find that most of the time I am not switching between formats allot, but when I do switch format, I am going to use the new format for a while. This would serve such needs perfectly.

I tend to create many links using the same format in a row. Say I am pasting into a google doc, I want html links. Later, I am filing bugs in JIRA and want to paste many JIRA formatted links. Then, I want my org-mode formatted links for a while. Etc. I might switch back and forth between JIRA and HTML and org-mode formats a few times in a day.

So having a quick keyboard driven way of switching the default would be grand.

Also, i really like the way you confirm the format created link with a quick colorful wink of the format's name. If you make the icon change color to agree with the current default, that would provide advance reminder of what the current default is.

HTML stopped working in Chrome on Windows.

I had been using this extension for a year and it worked fine. A few weeks ago the HTML stopped working
instead of a nice clickable link I get embedded HTML like this:

<a href="https://www.nytimes.com/">The New York Times - Breaking News, US News, World News and Videos</a>

Possible to create custom format utilizing "URL Fragment Text Directives" for html links, but not markdown.

URL Fragment Text Directives are supported in Chrome.

Here is an example of one formatted as markdown (and rendered by github's markdown rendering):

create a shareable link

Such links can be created in HTML format using Chrome by following instructions Share or link to quotes & text in Chrome

They can also be created using the CreateLink chrome extension by defining in its options the following link format:

Name Format Filter
HTML highlighted <a href="%url%#:~:text=%htmlEscapedText%">%htmlEscapedText%</a>  

With it, the following HTML link is put in the clipboard:

<a href="https://support.google.com/chrome/answer/10256233#:~:text=[create a shareable link](https://support.google.com/chrome/answer/10256233#:~:text=create%20a%20shareable%20link)">create a shareable link</a>

However, the following analogous definition for a "markdown highlighted" link format fails:

Name Format Filter
markdown highlighted [%text%](%url%#:~:text=%htmlEscapedText%)

For some reason, the %htmlEscapedText% variable is percent-encoded in my HTML highlighted format but not my markdown highlighted format where the following incorrect text is placed in the clipboard:

[create a shareable link](https://support.google.com/chrome/answer/10256233#:~:text=create a shareable link)

This issue is possibly related to closed #37

Allowing char '%' to be escaped in the format column

Hi!

I fount that in some cases it's not possible to write format using % while not making it to be interpreted as predefined variables.
For example, if I literally want to include a string "%title%" in the format, it cannot be done because every time I use this format to copy things, the %title% will always be replaced to the page title (but I actually just want the pure string "%title%"!)

Possible solution may be allowing char % to be escaped in the format column, for example, maybe %% will be interpreted as a char %. In the previous case, I can then just write %%title%% to get what I want.

Please consider this request.
Also thanks for the great work!

Default Font and Size for HTML Link

First, thanks for making this useful tool available in Chrome.

Is there a way to set the default font and size for a HTML link? A pasted link now becomes 12pt Times. My default otherwise in macOS 10.14.3 is 13pt Georgia.

Suggest adding URL-encoded text variable to enable deep-linking features

Hi! I really enjoy using this extension to copy text as Markdown to further make notes. One of the features I'd really like to have for this extension is deep-linking as in "Copy link to highlight" in the right-click menu in Chrome. Therefore, I suggest adding a URL-encoded text variable, where some special characters in selected text are encoded using URL encoding, aka percent-encoding. For example, spaces in a string are encoded with %20, and colons signs (:) encoded with %3A.

Example:

Default Markdown Format: [%text_md%](%url%)
Current result: In the United States, about 80% of household cats are neutered.
Source mode: [In the United States, about 80% of household cats are neutered\.](https://en.wikipedia.org/wiki/Cat)

Desired Markdown Format: [%text_md%](%url%#:~:text=%text_urlenc%)1
Suggested result: In the United States, about 80% of household cats are neutered.2
Source mode: [In the United States, about 80% of household cats are neutered\.](https://en.wikipedia.org/wiki/Cat#:~:text=In%20the%20United%20States%2C%20about%2080%25%20of%20household%20cats%20are%20neutered.) 3

Thank you in advance for your attention to this matter.

Footnotes

  1. The proposed %text_urlenc% variable denotes selected text that is URL-encoded.

  2. This URL would be directed to selected (highlighted) text.

  3. Spaces in selected text ( ) are encoded with %20, commas (,) with %2C, and percent signs (%) with %25.

Add support for org-mode format

Org mode for Emacs is a highly flexible structured plain text file format used in Emacs.

In essence, it will be similar to what markdown produces. Should be an easy feature to add.

Markdown produces:

[Nix manual](https://nixos.org/manual/nix/stable/#chap-introduction)

org-mode should produce:

[[https://nixos.org/manual/nix/stable/][Nix Manual]]

Input window

Pop-up window for %input% does not work in Windows 7 and 8. Did appear att first, but then duble, the second popup window had a "do not show" box and when clicked no popup window thereafter appeared (instead of only one as desired). But 2 are better than none. But no way can be found to turn it back on.

[feature] option "selected_text_only", useful to avoid duplicating title in [%selected_text_only% %title%](%url%)

D20200421T183444
I have this default:
[%text% : %title%](%url%)
which works great to get all the context (selected text, page title, and url)
however it's not great for creating link when no text is selected, as it'll result in title being duplicated.

proposal:

add option selected_text_only which solves this problem:
[%selected_text_only% : %title%](%url%)
only drawback is it'll add a : in case no text is selected, but that's better than duplicating the title.

As an enhancement, this could (later...) be supported too:

[%selected_text_only text_that_occurs_conditionally%%title%](%url%)
eg:
[%selected_text_only : %%title%](%url%)
which does the right thing, all the time.

Marked text not substituted for `%text%` when activated via a shortcut key

Conditions:

  • Format item Text: URL = %text%: %url%, set as default.
  • Shortcut key is Ctrl+Shift+U.
  • We're standing on a page having the title "The title".
  • A fragment of text is selected, namely "Selected text".

Steps to reproduce:

  1. We use the extension via a mouse click: "Text: URL".
    Result: "Selected text: [url]" -- OK.
  2. We use the extension via a shortcut.
    Result: "The title: [url]" -- NOT OK.

Cheers!

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.