git-lens.vim icon indicating copy to clipboard operation
git-lens.vim copied to clipboard

Add options to customize symbols like `•`

Open satorunooshie opened this issue 1 year ago • 1 comments

What do you think to add options to customize symbols like as termdebug_signs does?

Change default signs 
							termdebug_signs
Termdebug uses the hex number of the breakpoint ID in the signcolumn to
represent breakpoints. if [it](https://vimhelp.org/motion.txt.html#it) [is](https://vimhelp.org/motion.txt.html#is) greater than "0xFF"[,](https://vimhelp.org/motion.txt.html#%2C) then [it](https://vimhelp.org/motion.txt.html#it) will be displayed
[as](https://vimhelp.org/motion.txt.html#as) "F+"[,](https://vimhelp.org/motion.txt.html#%2C) due to we really only have two screen cells for the sign.

If you want to customize the breakpoint signs: 
	let g:termdebug_config['sign'] = '>>'
If there [is](https://vimhelp.org/motion.txt.html#is) no g:terminal_config yet you can use: 
	let g:termdebug_config = {'sign': '>>'}

After this, breakpoints will be displayed [as](https://vimhelp.org/motion.txt.html#as) >> in the signcolumn.

satorunooshie avatar Apr 12 '24 18:04 satorunooshie

If I understand correctly, this option already exists

g:GIT_LENS_CONFIG = {
    blame_prefix: '••••',
}

Eliot00 avatar Apr 13 '24 13:04 Eliot00

Thanks for reply.

g:GIT_LENS_CONFIG = {
  blame_prefix: '    ---- ',
}

I'm pointing symbols at https://github.com/Eliot00/git-lens.vim/blob/508e85748e4fa2028a5eaf144adbe3659002b592/autoload/git_lens/blame.vim#L226 not prefix.

image

satorunooshie avatar Apr 13 '24 13:04 satorunooshie

I see, but adding a separate configuration for the separator seems not flexible enough...

I quickly did a minimal verification and added a 'blame_template' configuration item. The effect is as shown below

image

Eliot00 avatar Apr 14 '24 13:04 Eliot00