-
Notifications
You must be signed in to change notification settings - Fork 36
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
Allow for end user fine-tuned title replacements #7
Comments
I dont have any problem to add this but hidden from the simple user. It means that the user should be able to access that functionality on purpose. How this can be set:
@kupiqu what is your opinion? [2] is easy and could be a start... but for [3] I will need something beautiful or if it does not look nice to be hidden from the user somehow... |
Some on how to do it here: kupiqu/plasma-active-application#1 Function:
|
I prefer a nice way [3] (the way I did is not nice) but let's start with [2] for now if you like... |
the current version of the function parses a single array but can be easily modified |
why regular expressions? is this needed? |
IMHO you could create a new Config tab, like SystemTray: Config General, Config Entries. In that new tab, you show a table that has columns like "Match", "Replacement". The input value should be Regexp. |
why? |
Because it's powerful for string substitutions. |
I'm in a hurry so I cannot develop this much now, but: Regexp are convenient, so you don't have to write so many replacements Examples:
etc etc |
If you worry about the performance reduction, you could disable that tab by default. |
My main concern is how this will look nice to the user... |
I think @trmdi had a great idea about having a table similar to what the weather applet ( https://github.com/kotelnik/plasma-applet-weather-widget) does. |
Also, this could appear only under enabling advanced options, perhaps? |
too crowded...
I want to avoid advanced options for applets |
Ok, I am sure you will find the best way for it
|
I tried to simplify it a lot... the regexps code is at: https://github.com/psifidotos/applet-window-title/blob/master/contents/tools/Tools.js I cant test regular expressions because I dont know much... please test and report back... |
It works great, thank you! |
Why not a table? It could look better. |
not in my opinion... it would look heavy loaded... |
I sort of agree with @trmdi on this one :) although it will be more difficult to implement, I guess. This is how the table looks like in the weather plasmoid: Imagine sth similar but only with two fields: original string and new string. |
I cant even look at that image... |
Mmm... beauty is in the eyes, I guess :) |
Anyways, it's fine for me either way. the priority is the functionality behind :) |
How about this? I think it looks more professional but still keeps being simple. Maybe the last row displays an Add icon button in the Action column. For each cell: click to enter the edit mode |
I don't like the actions in the end of the row and I would like to see how you imagine the Add to be done |
Things for improvement:
|
|
I would like also someone to tell me the benefits between the current and the proposed ui |
|
It looks more professional. It shows the relationship between Match and Replacement value in each row. |
@trmdi even though I believe there will be many issues with your proposal, |
Off topic: please correct the typo: |
Also, upgrading the applet (or perhaps this was after restarting my system, not sure) deleted all my substitutions. Is there a way to prevent this to happen? |
I changed the string names in the xml file... It shouldnt happen again. |
ok, no problem |
Thank you |
There are a few reasons for why end user fine-tuned title replacements are important:
My examples summary (other users may have others):
Firefox web browser --> Firefox
Chromium web browser --> Chromium
Google Chrome --> Chrome
Gimp-2.10 --> Gimp
Telegram Desktop --> Telegram
MATLAB --> Matlab
I have this implemented in a very minimalistic function in https://github.com/kupiqu/plasma-active-application.
If implemented, it seems you prefer not having the replacements in the window settings but in the config file. This is the missing component that would need adjustment.
The text was updated successfully, but these errors were encountered: