-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Enhancement] Drop common column prefixes when prettifying column names #26
Comments
Thanks for this suggestion! There are also some users who prefer to turn off the "prettificiation", so I will have to figure out how to best let users configure this. |
I too wish for more control of "prettifying" column names. Specifically, I would like to preserve the up/down case of the characters, but replace underscore and period with whitespace (allowing text wrapping in column titles to occur, which is very nicely handled). edit: perhaps allowing user preference of a expression substitution operations. Expressed using perl's syntax in my case would be |
@malcook Is the motivation for replace-symbol-with-whitespace primarily to enable line wrapping? There's actually some code in Ultorg already to permit line wrapping around e.g. periods and underscores, and evenInCamelCaseNamesLikeThis, without the need to insert visible whitespace. (You can test this by renaming a column in a perspective.) Would you still want the symbols to be replaced with whitespace, for cosmetic/readability purposes? |
@eirikbakke - yes that is the motivation, but only partially. Additionally your name parser Capitalizes Each Parsed Word which I find problematic. I often use mixed case in my identifiers which generally I want preserved. For example, a source column of |
As mentioned on #49, there is now an option to turn the "prettification" of table/column names on and off in Ultorg 1.2.7. The option to drop common column prefixes remains on the TODO list (tracked by this issue). |
Often, people will create a table such as RENTAL, and then prefix all columns with the table name, such as RENTAL_ID, RENTAL_DATE, RENTAL_TITLE, etc. It seems that Ultorg already does some prettification of these column names, but it would be nice for it to check whether all columns have a common prefix and drop it before prettifying the table names.
Thanks!
The text was updated successfully, but these errors were encountered: