sioyek icon indicating copy to clipboard operation
sioyek copied to clipboard

Adding bullet items to bookmark list

Open A3EKV opened this issue 4 years ago • 12 comments

Hello, When I press gb to bring the bookmarks list, they look indistinguishable. image

Therefore, I suggest Adding bullet to the items to make them clear and stand out.

Below I am adding the ▶ symbol as a prefix: image

It would be very useful if Sioyek adds that automatically (of course excluding it from search).

Thank you

A3EKV avatar Oct 10 '21 23:10 A3EKV

Added in 45400325b6670199ed7efe066d22414378162fbf.

ahrm avatar Oct 11 '21 10:10 ahrm

Added in 4540032.

Thank you very much! Is it possible to change that string representing the symbol from the settings? such as prefs.config

A3EKV avatar Oct 11 '21 11:10 A3EKV

Added in 4540032.

Thank you very much! Is it possible to change that string representing the symbol from the settings? such as prefs.config

Yes. You can add this to your prefs_user.config:

item_list_prefix	*

ahrm avatar Oct 11 '21 12:10 ahrm

@ahrm Adding that to prefs_user.config doesn't work. I had to add it to prefs.config instead to work.

A3EKV avatar Oct 11 '21 19:10 A3EKV

I have tried to use an emoji or any other unicde character but it doesn't work but using ascii characters such as * etc. works. Is there any reason to restrict it to this set of characters only?

Thank you

A3EKV avatar Oct 11 '21 19:10 A3EKV

I have tried to use an emoji or any other unicde character but it doesn't work but using ascii characters such as * etc. works. Is there any reason to restrict it to this set of characters only?

Thank you

This should be fixed in b3186f57b8e3473c36fe06f9df20f722772b1e49. Note that the default font does not have emoji support, therefore I have added a preference to configure the font used by the program. For example here is the relevant part in my prefs_user.config:

ui_font		Segoe UI Emoji
item_list_prefix	▶

ahrm avatar Oct 12 '21 09:10 ahrm

This should be fixed in b3186f5. Note that the default font does not have emoji support, therefore I have added a preference to configure the font used by the program. For example here is the relevant part in my prefs_user.config:

ui_font		Segoe UI Emoji
item_list_prefix	▶

Great! Can I use that font in Linux (Ubuntu 20.04)? because my guess is that font is available only in Windows?

Thank you

A3EKV avatar Oct 12 '21 09:10 A3EKV

This should be fixed in b3186f5. Note that the default font does not have emoji support, therefore I have added a preference to configure the font used by the program. For example here is the relevant part in my prefs_user.config:

ui_font		Segoe UI Emoji
item_list_prefix	▶

Great! Can I use that font in Linux (Ubuntu 20.04)? because my guess is that font is available only in Windows?

Thank you

I don't think so, you just have to replace Segoe UI Emoji with some system font that supports emoji. (It is even possible that the default font in linux already supports emoji in which case you don't need to specify ui_font at all)

ahrm avatar Oct 12 '21 10:10 ahrm

I have tried Noto Color Emoji font that seems to support emojis but as you can see in the recording below, it doesn't work:

https://user-images.githubusercontent.com/90999345/136937997-b40fa6e0-ca9a-412b-b627-be05bee7fe1e.mp4

A3EKV avatar Oct 12 '21 10:10 A3EKV

Update: I have managed to install Segoe UI and Segoe UI Emoji on ubuntu and it seems to work but the symbols are not colorful. Here how the following symbol:

image

Appears as:

image

A3EKV avatar Oct 12 '21 10:10 A3EKV

Update: I have managed to install Segoe UI and Segoe UI Emoji on ubuntu and it seems to work but the symbols are not colorful. Here how the following symbol:

image

Appears as:

image

I guess that's a font-related thing? I have the same issue where for example this emoji [📕] is displayed as a blank square but this emoji [✔️] is displayed correctly.

ahrm avatar Oct 12 '21 11:10 ahrm

@ahrm : I have no idea if that's an issue with the font itself or with Qt. Maybe this is related to this : https://stackoverflow.com/a/25732050

A3EKV avatar Oct 12 '21 12:10 A3EKV