openstenoproject / plover

Open source stenotype engine
http://opensteno.org/plover
GNU General Public License v2.0
2.37k stars 278 forks source link

Sort Dictionary Entries by Date #933

Open gdwaynewarner opened 6 years ago

gdwaynewarner commented 6 years ago

Summary

I just attempted to add an outline to one of my dictionaries, only to find that the entry didn't work.

Curious, I tried to find the entry using the Search field, but nothing came up -- yet I'm pretty sure something got entered; I just can't seem to find it.

If I were to be able to view the dictionary entries by date entered, then I would have been able to find and delete the non-functioning entry, which is why I think this would be a great addition to Plover.

Reproducing

Unfortunately, I'm not really sure what happened with my original entry, so I can't really provide any steps to repeat what I did.

Plover Version

v4.0.0.dev8+8.ge062cda6

System

Mac OS X 10.10.5

benoit-pierre commented 6 years ago

We don't have this kind of metadata, so it's not possible.

marnanel commented 6 years ago

Not at present, but I thought the feature request was to make it possible.

morinted commented 6 years ago

I think a general-purpose dictionary/stroke stats plugin would be cool.

On Fri, Apr 6, 2018, 1:50 PM Marnanel Thurman notifications@github.com wrote:

Not at present, but I thought the feature request was to make it possible.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openstenoproject/plover/issues/933#issuecomment-379327850, or mute the thread https://github.com/notifications/unsubscribe-auth/AFkgSvUfSJuWcOgUTv5A0ov8wf_P-SgRks5tl6rvgaJpZM4TKWjH .

mulka commented 6 years ago

It would be nice to record the timestamp of when a dictionary entry was made, at least for recent entries to facilitate what @gdwaynewarner is asking for. I can imagine using this myself to find recent entries I made.

Greygal commented 6 years ago

What about just creating a log file that tracks dictionary changes? So anytime you make a change to the dictionary using the "Add Translation" tool, it updates the log file also, tracks the last XX number of changes?

This way no need to add additional fields/metadata or otherwise change the dictionary file format (I shudder at the thought of that!)

(Perhaps this is possible to do with a plugin?)

SeaLiteral commented 5 years ago

In the default JSON dictionary format, each entry is a stroke-translation pair. A dictionary format plugin could have strokes, translations and times. But dictionary format plugins don't change how the dictionary editor works. Maybe a tool plugin could make an alternative dictionary editor that lets one filter and sort entries by date. Another option is, as @Greygal suggests, to log dictionary changes. That too would probably require a dictionary format plugin even if the logging is actually done to a separate file.