-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IDEA] Show last modified date and tiddler size when tiddler already exists on import #7211
Comments
I personally think there should be a "global setting", that defines the default, as shown above. AND there should be some tabs if the preview is visible. IMO it would make it much faster to switch between the different preview states. Especially useful for long lists, where atm we need to go up -- change setting -- go down again IMO you should rename the issue to |
Here is a quick hack of
Caveat emptor: I have no idea how the import mechanism really work. Like I wrote, this is a hack job. Maybe it breaks something, but I don't think so. PS: There is no filter operator to access subtiddler content directly, right? For some hint like "(newer)" I'd like access to the raw field values in a filter... |
That's a problem of your wiki's palette ... If you have a closer look at the WIP palette-manager edition you'll be able to fix this problem very fast. If you search for: |
I do try to use "positive" language in issues even if I'm frustrated. For me as a core contributor reading terms like "underwhelming" doesn't trigger motivation to engage with the problem. ... I do like to read stories about challenges and examples how to "may be" solve them ... So ... I do like the examples you posted ... especially the last one, which I think is relatively straight forward. ... The code for the $:/Import mechanism is one of the most complex in wikitext and in JS. ... So no promises here. |
Sorry about that. I will try to be more constructive in the future. |
Hacking a bit further, I arrived at a solution that I personally find useful (enough): The table inside the import table maybe takes a little too much space? But I guess for a limited number of duplicates during import this would be OK. For non-duplicates it's not shown. Here's the code for the modified
The nice thing is that it looks like no code for the actual importing mechanism has to be touched. It is all just inside the warning message macro. I just needed to find out how subtiddlers were used in the import process. Whoever wants to make a PR could use this as a starting point or inspiration, maybe. (I'm looking at you @pmario 😉) Have a nice day |
That looks interesting. As you found out the $:/Import tiddler is like "virtual / temporary" plugin with some extra functions to toggle import state. ... I'm not sure, how the message UI texts are created atm. ... I only know that it's an array with messages that is returned by the different import modules. So not sure atm if creating a table is easy or not. Your code tweaks will definitely help if anyone will have a closer look. ... I did add the idea to my bundler issues, so I don't forget about it. ... wikilabs/plugins#136 |
date format will probably need a configuration somewhere. Don't know if it works for everyone hardcoded. ... But will be good enough for a POC (proof of concept)
|
Let me make a PR for this, so we get the vercel preview to play around with... |
In a number of other places I have being discussing improving the differences methods available, one key reason is to support the import process. I would like information visible for existing tiddlers at import without needing to select different previews etc... We should show a total for the number of fields changed, a summary of the fields that contain differences and the ability to exclude fields such as created and modified (from the differences check) since if only these change, its a trivial difference. In a related way It would be good if incoming tiddlers could request expansion and rendering during import so the user gets to see pre-import notes, before importing. eg field display-on-import=yes then the Import process renders and displays that tiddlers body.
|
Hi @AnthonyMuscio, you're talking about a much larger project. Some of these ideas are certainly useful, but would be significantly more work with a separate UI to configure all that. My approach was to be minimally invasive while providing the most relevant information during the import process. I think that something like your idea could supercede my rather small change, if someone is willing to work on that, be it in a plugin or as part of the core. Also, I do think that the |
The differences component is in part addressed by the Levenshtein operator discussed here https://talk.tiddlywiki.org/t/what-if-we-would-implement-a-3-way-merge-system-into-tw/6248/11?u=tw_tones and the other modifications are in fact trivial given what I now understand about the Import process.
However please consider introducing this new element via a tag driven solution so I and others can add additional information to each import pending tiddler.
|
I have closed the PR. I will support you should you make another one to implement your idea. |
If one has multiple wikis and regularly copies some tiddlers from one to the other, it's hard to keep track of which is the newest version.
Import
only notifies that a tiddler already exists.Every file copy tool I know of will give the user some more information in that situation; at least the last modified date and object size, sometimes even a content comparison. That would be a good way to go for TW, too. I can imagine using a button pop-up or accordion thing to show this information only on demand and to not take up too much space in the UI. Personally, I'd be content with
modified
in a human-readably format and tiddler size in bytes (or maybe lines?).This could also be useful in the upgrade UI where people often get confused by the various messages. A date comparison could go a long way to clear that confusion.
The text was updated successfully, but these errors were encountered: