markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

How to edit url when previewing?

Open cold-soda-jay opened this issue 5 years ago • 8 comments

Hi,

I want to ask if there's any method that I can change the url?

Eg: change http://192.168.0.1:8080/page/2 to http://192.168.0.1:8080/filename

Thanks!

cold-soda-jay avatar Sep 25 '20 09:09 cold-soda-jay

Not supported now.

iamcco avatar Oct 09 '20 03:10 iamcco

Is this coming anytime soon? If not I could handle this. @iamcco

NullSense avatar Oct 14 '20 12:10 NullSense

I don't have time to do this.

iamcco avatar Oct 14 '20 13:10 iamcco

Could you give me some hints of where I should look into the code to make a MR for this feature?

NullSense avatar Oct 14 '20 14:10 NullSense

@NullSense It should be in the js files. I have tried but not really successful. If you know good about js you can check it in./app/

cold-soda-jay avatar Oct 14 '20 15:10 cold-soda-jay

I am aware it's in the js files, I was asking about more specific per-file locations of which code should be affected.

On Wed, Oct 14, 2020 at 5:06 PM Jay [email protected] wrote:

@NullSense https://github.com/NullSense It should be in the js files. I have tried but not really successful. If you know good about js you can check it in./app/

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iamcco/markdown-preview.nvim/issues/235#issuecomment-708465203, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMU77A2RNKCFKPM5UONH3DSKW5AHANCNFSM4RZK7ULA .

-- Matas Peciukonis +4917655027444 https://CuriosityOverflow.xyz

NullSense avatar Oct 14 '20 15:10 NullSense

Have a look at https://github.com/iamcco/markdown-preview.nvim/blob/master/app/server.js#L45

iamcco avatar Oct 14 '20 15:10 iamcco