Giter Club home page Giter Club logo

nppurlplugin's Introduction

nppurlplugin's People

Contributors

singhrajenm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pruthig

nppurlplugin's Issues

Encode URL doesn't encode plus (+) sign

Encoding a plus (sign) results in a pop-up "Nothing to Convert" - selected text appears to be already encoded.
a "+" sign should convert to %2B

Version URL Plugin 1.1.0.0

URL Encode prepending FFFFFF

Notepad++ v8.1.6
URL Plugin v1.1.0.0

Decoding from percent-encoding to text works just fine.

  • https://wiki.%E3%83%9D%E3%82%B1%E3%83%A2%E3%83%B3.com/ → decode:
  • https://wiki.ポケモン.com/

Encoding results in a string that cannot be decoded. Here, I select just the ポケモン part and press Ctrl+Alt+Shift+E to encode. Alternatively, I select just the ポケモン part and select Plugins → URL Plugin → Encode URL.

  • https://wiki.ポケモン.com/ → encode:
  • https://wiki.%FFFFFFE3%FFFFFF83%FFFFFF9D%FFFFFFE3%FFFFFF82%FFFFFFB1%FFFFFFE3%FFFFFF83%FFFFFFA2%FFFFFFE3%FFFFFF83%FFFFFFB3.com/

Attempting to decode the above results in a mess.

  • https://wiki.%FFFFFFE3%FFFFFF83%FFFFFF9D%FFFFFFE3%FFFFFF82%FFFFFFB1%FFFFFFE3%FFFFFF83%FFFFFFA2%FFFFFFE3%FFFFFF83%FFFFFFB3.com/ → decode:
  • https://wiki.ÿFFFFE3ÿFFFF83ÿFFFF9DÿFFFFE3ÿFFFF82ÿFFFFB1ÿFFFFE3ÿFFFF83ÿFFFFA2ÿFFFFE3ÿFFFF83ÿFFFFB3.com/

If I first apply a regex to remove all instances of FFFFFF, decoding can succeed.

  • https://wiki.%FFFFFFE3%FFFFFF83%FFFFFF9D%FFFFFFE3%FFFFFF82%FFFFFFB1%FFFFFFE3%FFFFFF83%FFFFFFA2%FFFFFFE3%FFFFFF83%FFFFFFB3.com/ → regex to remove FFFFFF:
  • https://wiki.%E3%83%9D%E3%82%B1%E3%83%A2%E3%83%B3.com/ → decode:
  • https://wiki.ポケモン.com/

Suggestion:

The encoding feature should not prepend FFFFFF.

Plugin stores config file in wrong folder

Actually, this is a two-part issue, but both parts can be fixed with the same change.

  1. When the plugin is used in a portable version of Notepad++ it nevertheless stores its config file in the location of an installed version of Notepad++ (i.e. the user profile of the user currently running Notepad++).
  2. The plugin creates the folder for its config file under plugins instead of plugins\config.

I guess both issues can be fixed by using NPPM_GETPLUGINSCONFIGDIR API.

Doesn't work on npp 7.2 (x32). What is the minimum npp version required for a plugin?

Doesn't work on npp 7.2 (x32). What is the minimum npp version required for a plugin? I get an error that MSVCP140.dll is missing and this popup :

C:\Program Files (x86)\Notepad++\plugins\urlPlugin.dll

Не найден указанный модуль.

urlPlugin.dll is not compatible with the current version of Notepad++.
Do you want to remove this plugin from the plugins directory to prevent this message from the next launch?

Indicate that 64-bit versions of 1.2.0 require N++ 8.3 or greater

urlPlugin 1.2.0 is ABI-incompatible with 64-bit Notepad++ 8.2.1 and older 1. (I'm unable to test the ARM64 release, but assuming the intptr_t type is 8 bytes long on that ISA, the same concern applies).

Steps to reproduce:

  1. Install a portable release of 64-bit Notepad++ 8.2.1
  2. Download the appropriate urlPlugin 1.2.0 release and extract to <NPP_DIR>\plugins\urlPlugin
  3. Start <NPP_DIR>\notepad++.exe, type and select an encoded URL, e.g.
    https://google.com/search%3Fq%3Dpancakes%20and%20syrup
  1. Click the 🔗 toolbar button ("Decode URL")
  2. The application crashes

The user manual now includes guidance on how to restrict a plugin to certain Notepad++ version ranges (see esp. n0. 7 of the "Rules for adding your plugins into list").

Please consider updating notepad-plus-plus/nppPluginList#432 with compatibility metadata for the affected releases (i.e., at least the x64 version).

Footnotes

  1. https://github.com/SinghRajenM/nppURLPlugin/blob/4f4f0e894767593ac960562e8bc194d00e9dab34/src/urlPlugin/external/npp/Sci_Position.h#L23

Using plugin Shuts down Notepad++

I used this a couple of weeks ago and now when I click on it, Notepad_++ shuts down when I try to encode a file. I think there was a NotePad++ installed after the last time this worked successfully about 3 weeks ago.

Bypass 7000 lines limit

I'm trying to decode 5 million lines XML file and the plugin does nothing to all text below 7000 lines. Is there any wokaround?

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.