Skip to content

Commit 2992e55

Browse files
authored
Minor optimization of the hint texts (#76)
Placeholder texts slightly improved and standardized, with an additional hint text added to the replace:find input box.
1 parent 1d1f2bb commit 2992e55

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

usr/lib/bulky/bulky.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,10 @@ def on_scope_changed(self, widget):
633633
self.preview_changes()
634634

635635
def on_widget_change(self, widget):
636+
if self.replace_regex_check.get_active():
637+
self.find_entry.set_placeholder_text("Enter a regular expression; example: .+")
638+
else:
639+
self.find_entry.set_placeholder_text("Enter a search string; wildcards ? and * are supported.")
636640
self.preview_changes()
637641

638642
def preview_changes(self):

usr/share/bulky/bulky.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
<property name="visible">True</property>
362362
<property name="can-focus">True</property>
363363
<property name="hexpand">True</property>
364-
<property name="placeholder-text" translatable="yes">Use %n, %0n, %00n, %000n to enumerate.</property>
364+
<property name="placeholder-text" translatable="yes">Use %n, %0n, %00n, etc. to enumerate.</property>
365365
</object>
366366
<packing>
367367
<property name="left-attach">1</property>
@@ -489,7 +489,7 @@
489489
<property name="visible">True</property>
490490
<property name="can-focus">True</property>
491491
<property name="hexpand">True</property>
492-
<property name="placeholder-text" translatable="yes">Use %n, %0n, %00n, %000n to enumerate.</property>
492+
<property name="placeholder-text" translatable="yes">Use %n, %0n, %00n, etc. to enumerate.</property>
493493
</object>
494494
<packing>
495495
<property name="left-attach">1</property>

0 commit comments

Comments
 (0)