Git Product home page Git Product logo

obsidian-copy-url-in-preview's People

Contributors

luckman212 avatar mara-li avatar mnaoumov avatar nomarcub avatar waterproofsodium 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

Watchers

 avatar  avatar  avatar

obsidian-copy-url-in-preview's Issues

Null errors

I got these errors on console when hovering above normal links. There was no visible malfunctioning.

Pasted image 20220715193251

Pasted image 20220715143827

Also I recently added strictNullChecks to tsconfig.json and made the existing code able to compile in a crude way in this commit: f6f9ef4.
But the errors come with the version before strictNullChecks too.

@mnaoumov would you take a look at this? You'd probably know what can and can't be null around the PDF feature better than me.

Feature request: Open image in a new tab

Hello,
First, great plugin. Extremely useful.

Just a quick "Feature request".
Include an option to open image in a new tab.

I use the theme Minimal, and when I click on an image, this will temporary, overlay in full screen.
So, I cannot keep the image as full screen.

Workaround:

  • Click on the image
  • Ctrl+Click on the image name
  • The images open in a new tab

Thank you for your consideration.

Error, could not copy the image!

Error, could not copy the image!
The above error occurs when I right-click to copy the picture in Obsidian. It should be noted that my picture is a link.
How to solve it? Thank you very much.

image

TypeScript compilation issue

(!) Plugin typescript: @rollup/plugin-typescript TS2345: Argument of type 'Notice' is not assignable to parameter of type '(value: void) => void | PromiseLike<void>'.
  Type 'Notice' provides no match for the signature '(value: void): void | PromiseLike<void>'.
main.ts: (48:17)
rovides no match for the signature '(value: void): void | PromiseLike<void>'.

48           .then(new Notice("Image copied to the clipboard!", SUCCESS_TIMEOUT))
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PDF bug on mobile

The problem appears as soon as you are back from the PDF editor.

If you tap on the three-dot menu to close the PDF file, the "Opening PDFs externally: line" appears again and again.

The only way to get out is via "Hamburger menu - Command palette - Close current tab" or via the Add new tab button.

Otherwise: the plugin is great; you can edit your PDF file in the PDF editor and immediately have the changes under obsidian. For this my thanks and appreciation !

Open Image Externally on right click

Hello,
Would like to see if it's possible to add the ability to "Open image externally" when an attached image is right clicked. Ideally this option would be added below "Copy image to clipboard" when the image is right clicked which would reduce the steps from four to two to open the image externally.

Currently the user has to switch to editing view, click image, right click the image URL and finally selecting "Open in default app".

Thank you,
Matt

Feature request: resize image

I came across the idea of adding the "resize image" option in the menu, which will be much faster than typing the words myself. Its basic function will include:
![[image.jpg]] to ![[image.jpg|300]]
![[image.jpg|200]] to ![[image.jpg|300]]
![[image.jpg|200]] to ![[image.jpg]]
adding ![[image.jpg|left]]![[image.jpg|+grid|200]] could also be useful.

I imagine the UI can look like the example below, the resize image will expand into options, ranging from 100 to 500 and none.
There can also be an option of customizing frequently used sizes.
An adjusting bar will be even more amazing, but I don't know if that's feasible.
image

Anyway, thanks for the great plugin! It is definately one of the plugins that obsidian should have built-in long ago.

Open image in new tab functionality

Copy the behaviour of middle clicking / using "Open link in new tab" / "Open link" when right clicking the image's embed text in edit mode.
This may suit some people's workflows more, as it stays within Obsidian rather than opening the image in the default app.

In addition to new context menu item(s), it would be nice to be able to optionally middle click on the image directly to open in a new tab.

Implementation: maybe getLeaf could get us there.

Preview PDF Externally with right click instead of hover?

Frequently you'll have a PDF inline with your notes so that you can preview it while reading. This means that the context menu will be enabled and you can no longer scroll (both for the PDF content, and the Note you're embedding a PDF in) and you need to click somewhere to disable the context menu. Currently it hinders the workflow a little bit.

I also feel like it goes against the general philosophy of this plugin, where you can copy image to clipboard by right clicking, and copy url by right clicking, but on PDFs, you hover instead of right clicking.

This plugin is great regardless, I use it daily!

double overlapping context menus (on Mac)

hey @NomarCub thank you for making this !! I have wanted this for a while. Hope they make it a native function one day.

One thing though, not sure it's fixable... on macOS, I now get 2 menus when right clicking a link: the system-level one and the Electron one beneath it.

see video:

CleanShot.2021-07-15.at.18.26.39.mp4

Feature requests: reload image

Another quick "Feature request".
Include an option to reload or refresh the current image.

Steps:

  • Right click on an image
  • Click on "Open on default app"
  • Make changes to the image using the external image editor
  • Save the changes
  • The changes are not updated in Obsidian

Workaround:

  • Close the current note
  • Reopen the note

Thank you for your consideration.

FR - Add "reveal in finder" to plugin context menu

First thank you for the plugin! It saved me already hours of looking trough the enormus context menu.

A thing that I do really often, is to reveal images in the finder, because I have to edit them in a different application. For that I have to go trough the obsmd context menu.
I habitual try to use the context of the plugin and then have to select the image link to get the option. So having it on a right click there as well would be neat!

I don't now if there is anybody out there, wishing for the same, but I would love to have it!

Best Regards. :)

Use native Obsidian file opening for `Open in new tab`

Opening image in new tab creates tab named "New Tab" instead of naming the tab after the image.
The tab is also a web browser like tab with url field.
image

Intuitive behavior would be opening image the same way as from file navigation - image path is shown, file is highlighted in navigation
image

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.