See number of lines in diodon

Asked by Thomas Güttler

I have a feature request:

I would like to see the number of lines each copy+paste snippet inside diodon has.

Example:

One item contains an entire python file:

{{{
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals, print_function

import codecs
import inspect
import os
import random
import re
import shutil
... many lines following
}}}

The other contains just the first two lines:
{{{
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals, print_function
}}}

My use case: I want to insert the two-line snippet, not the big snippet. But the preview for both looks the same.

Can you understand my issue?

Is there a way to fix this?

Question information

Language:
English Edit question
Status:
Answered
For:
Diodon Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Oliver Sauder (sao) said :
#1

Certainly this is a great idea. I have created a bug report from this question.

A workaround for now would be to use the Diodon Unity Scope which can show you the whole content.

Not as handy so will need to think about it how to show it in the indicator so it is easily understandable. Is related with Bug #1417820

Revision history for this message
Jameson Butler (jamebuter) said :
#2

I used to make the same mistake and I have corrected it many times to succeed, I believe you can use it too.
https://badicecream.io/

Can you help with this problem?

Provide an answer of your own, or ask Thomas Güttler for more information if necessary.

To post a message you must log in.