ref: rename pref key "articleTooltipLimit"
This commit is contained in:
@@ -112,7 +112,7 @@ defaults write de.relikd.baRSS shortArticleNamesLimit -int 50
|
||||
By default, the tooltip is limited to 2000 characters.
|
||||
You can change the limit with this command:
|
||||
```
|
||||
defaults write de.relikd.baRSS tooltipCharacterLimit -int 500
|
||||
defaults write de.relikd.baRSS articleTooltipLimit -int 500
|
||||
```
|
||||
|
||||
3. Limit the number of displayed articles per feed menu.
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
item.onStateImage = [NSImage imageNamed:RSSImageMenuItemUnread];
|
||||
item.accessibilityLabel = (self.unread ? NSLocalizedString(@"article: unread", @"accessibility label, feed menu item") : NSLocalizedString(@"article: read", @"accessibility label, feed menu item"));
|
||||
// truncate tooltip
|
||||
NSUInteger limit = UserPrefsUInt(Pref_tooltipCharacterLimit);
|
||||
NSUInteger limit = UserPrefsUInt(Pref_articleTooltipLimit);
|
||||
if (limit > 0) {
|
||||
NSString *tooltip = (self.abstract ? self.abstract : self.body); // fall back to body (html)
|
||||
if (tooltip.length > limit)
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
// ------ Hidden preferences ------ only modifiable via `defaults write de.relikd.baRSS {KEY}` ------
|
||||
/** default: @c 10 */ static NSString* const Pref_openFewLinksLimit = @"openFewLinksLimit";
|
||||
/** default: @c 60 */ static NSString* const Pref_shortArticleNamesLimit = @"shortArticleNamesLimit";
|
||||
/** default: @c 2k */ static NSString* const Pref_tooltipCharacterLimit = @"tooltipCharacterLimit";
|
||||
/** default: @c 2k */ static NSString* const Pref_articleTooltipLimit = @"articleTooltipLimit";
|
||||
/** default: @c 40 */ static NSString* const Pref_articlesInMenuLimit = @"articlesInMenuLimit";
|
||||
/** default: @c nil */ static NSString* const Pref_colorStatusIconTint = @"colorStatusIconTint";
|
||||
/** default: @c nil */ static NSString* const Pref_colorUnreadIndicator = @"colorUnreadIndicator";
|
||||
|
||||
@@ -29,8 +29,8 @@ void UserPrefsInit(void) {
|
||||
// Display limits & truncation ( defaults write de.relikd.baRSS {KEY} -int 10 )
|
||||
[defs setObject:[NSNumber numberWithUnsignedInteger:10] forKey:Pref_openFewLinksLimit];
|
||||
[defs setObject:[NSNumber numberWithUnsignedInteger:60] forKey:Pref_shortArticleNamesLimit];
|
||||
[defs setObject:[NSNumber numberWithUnsignedInteger:2000] forKey:Pref_tooltipCharacterLimit];
|
||||
[defs setObject:[NSNumber numberWithUnsignedInteger:40] forKey:Pref_articlesInMenuLimit];
|
||||
[defs setObject:[NSNumber numberWithInteger:2000] forKey:Pref_articleTooltipLimit];
|
||||
[defs setObject:[NSNumber numberWithUnsignedInteger:1] forKey:Pref_prefSelectedTab]; // feed tab
|
||||
[[NSUserDefaults standardUserDefaults] registerDefaults:defs];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user