Paste NG

Paste NG

380k Downloads

Save the "Pastes".

Machou opened this issue · 20 comments

commented

Hello,

A feature that many players are waiting for is a kind of note, could you implement it for us? It's a great way to keep track of the progress of an achievement for example, so you don't have to go back and get the content, etc.

Thanks for taking over!

commented

I'll see what I can do, but I cannot promise anything.

commented

Good thanks

commented

Hi @Machou , I just stumbled across your post while browsing the issues here.

It is possible that I completely misread your suggestion…

A feature that many players are waiting for is a kind of note […] to keep track of the progress of an achievement for example

…, but it seems to me that you are trying to use PasteNG as sort of a notepad. There is already an excellent and actively developed in-game notepad addon: TinyPad really leaves nothing to be desired, IMHO.

You can even paste links into it, or you can use it to run scripts without the need to paste the script to the chat at all (for example such things like C_QuestLog.IsQuestFlaggedCompleted(questID).)

I’m not affiliated with the developer of TinyPad, just a user. Hope this helps!

commented

I know TinyPad, but I prefer Paste, much simpler, and the text is better arranged, I don't know why it's just a feeling.
But I made a note on Excel now I'm used to work with it :)

commented

Any ideas on how to implement that, so it stays centered, even when resized?

Sorry, i'm not Lua developper, i'm really newb with this code :P

fr_FR is updated

commented

No worries - I've just pushed the new version a few seconds ago.

Here is what I have added:

  • Don't hardcode Accept and Cancel.
  • Persist window size across logins.
  • Add config button to reset window size and position.
  • Warn if a paste is about to be overwritten.
commented

I have just pushed 11.0.2-20240921-1 which fixes the problems. Please test and reopen if the issue is still there. @Machou thanks for providing the frFR translation - please double check it, since I have renamed the string in the english version.

I have update fr_FR too !

And all is worked perfect !


Options that could be cool:

  • If i save a paste with the same name, this update the paste, but i didn't have message, nothing, It would be good to clarify this
  • Always center the note
  • Be able to lock it in a fixed position
  • Keep the same window size when disconnecting / reconnecting

2 missings translations:

When i want delete a note, Yes and No is not translated :p

WoWScrnShot_092124_140732

commented

Keeping the position is default, I'll add an option to save the size as well, along with an option to save position (both enabled by default).

I'll see if I can lock the window on screen, it depends on if Ace3 supports it for frames.

commented

Keeping the position is default, I'll add an option to save the size as well, along with an option to save position (both enabled by default).

I'll see if I can lock the window on screen, it depends on if Ace3 supports it for frames.

with Ace3 yes you can like:

local frame = AceGUI:Create("Frame")
frame:SetTitle("Frame Example")
frame:SetStatusText("Status text")
frame:SetCallback("OnClose", function(widget) AceGUI:Release(widget) end)

-- Lock the frame
frame.frame:EnableMouse(false)
commented

I see - however, resizing if it is locked on screen might prove a bad idea (since the top and left is locked).

Any ideas on how to implement that, so it stays centered, even when resized?

commented

Also, it doesn't seem like it wants to lock the dialog so it cannot be moved.

So, I think remembering positions between logins and warning about overwriting should be easy enough.

commented

I managed to get some of it done - I will release a new version later tonight.

@Machou I have added the following strings, if you want to translate them before I push the next release 🙂

L["Positions and coordinates"]
L["Reset window size and position"]
L["Resets the window size and position on screen to the default"]
L["This will overwrite an existing saved paste, are you sure?"]
L["Window size and position has been reset."]
commented

I just pushed 11.0.2-20240920-1 a few minutes ago 🙂

Check this out:

The main PasteNG window

commented

@GurliGebis Coool !

I seee 2 problems.

String en_US error :

Please enter the "content ???" of your paste:

https://legacy.curseforge.com/wow/addons/pasteng/localization/languages/92/phrases#460110


When i use /pasteng minimap or here:

Sans titre

Didn't work.


fr_FR is done. You can update =)

commented

Thanks, I'll fix both issues tomorrow and make a new release.

commented

I have just pushed 11.0.2-20240921-1 which fixes the problems.
Please test and reopen if the issue is still there.
@Machou thanks for providing the frFR translation - please double check it, since I have renamed the string in the english version.

commented

No worries - I've just pushed the new version a few seconds ago.

Here is what I have added:

* Don't hardcode Accept and Cancel.

* Persist window size across logins.

* Add config button to reset window size and position.

* Warn if a paste is about to be overwritten.

The main work has been done!

Improvements will follow, if the addon becomes an ‘essential’!

Thank you for all your hard work.

commented

Good news, I am close to having finished a complete rewrite of the PasteNG addon, which has save/load functionality 😃

commented

Good news, I am close to having finished a complete rewrite of the PasteNG addon, which has save/load functionality 😃

Glad to hear it! Can't wait to see the result!

commented

You're welcome, and if you get any ideas, just let me know 🙂
After the rewrite, maintaining and adding new features has become much easier