Re: Useful to know how many branch insets are used?

2022-02-13 Thread Scott Kostyshak via lyx-users
On Sat, Feb 12, 2022 at 06:34:40PM +0100, Peter GAAL via lyx-users wrote:
> For me, the main use of branches is to separate the single language versions
> of a document needing to be translated into multiple languages. In this
> specific use case, it is extremely important that all languages have the
> /same/ number of branch insets, but this holds in my opinion even for the
> exemplary question-answer branches described in the LyX docs.
> 
> So yes, I think it’s a /very/ good idea to show the number of branch insets
> in the dialog.

Thanks, PG. This is helpful feedback and I hadn't thought of that use case.

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Useful to know how many branch insets are used?

2022-02-12 Thread Peter GAAL via lyx-users
For me, the main use of branches is to separate the single language 
versions of a document needing to be translated into multiple 
languages. In this specific use case, it is extremely important that 
all languages have the /same/ number of branch insets, but this holds 
in my opinion even for the exemplary question-answer branches described 
in the LyX docs.


So yes, I think it’s a /very/ good idea to show the number of branch 
insets in the dialog.


PG

/What you see is what you get—it's ALL you get./

On Fri, Feb 11, 2022 at 8:48 PM, Scott Kostyshak via lyx-users 
 wrote:

I use a lot of branches in my documents. I don't think many others do,
so I'm not sure how relevant this will be. But occasionally I find I
want to remove unused branches. Does anyone else come across this?

It would be pretty easy to write a Python script that does this
externally. That's my current plan.

However, I wonder if it would be useful more generally to display in
Document > Settings > Branches how many times each branch is used 
(i.e.,

how many insets of each branch there are). It would be a column, along
with the current columns "Activated", "Color", and "Filename Suffix".
For example, one could sort the branches by clicking on the column
header.

Would others find this useful? I'm guessing it's just me and maybe one
or two others, in which case it might be best not to propose this
feature on lyx-devel and just take the easy approach of writing the
Python script. Nonetheless I thought I would ask for feedback since
branches are such a flexible tool I'm not sure how others use them.

Scott
--
lyx-users mailing list
lyx-users@lists.lyx.org 



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Useful to know how many branch insets are used?

2022-02-12 Thread Jean-Marc Lasgouttes via lyx-users

Le 11/02/2022 à 20:48, Scott Kostyshak via lyx-users a écrit :

However, I wonder if it would be useful more generally to display in
Document > Settings > Branches how many times each branch is used (i.e.,
how many insets of each branch there are). It would be a column, along
with the current columns "Activated", "Color", and "Filename Suffix".
For example, one could sort the branches by clicking on the column
header.

Would others find this useful? I'm guessing it's just me and maybe one
or two others, in which case it might be best not to propose this
feature on lyx-devel and just take the easy approach of writing the
Python script. Nonetheless I thought I would ask for feedback since
branches are such a flexible tool I'm not sure how others use them.


While I am not sure I would use it, it is pretty easy to implement in 
the updateBuffer machinery. I can give guidance if needed.


JMarc
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Useful to know how many branch insets are used?

2022-02-11 Thread Scott Kostyshak via lyx-users
I use a lot of branches in my documents. I don't think many others do,
so I'm not sure how relevant this will be. But occasionally I find I
want to remove unused branches. Does anyone else come across this?

It would be pretty easy to write a Python script that does this
externally. That's my current plan.

However, I wonder if it would be useful more generally to display in
Document > Settings > Branches how many times each branch is used (i.e.,
how many insets of each branch there are). It would be a column, along
with the current columns "Activated", "Color", and "Filename Suffix".
For example, one could sort the branches by clicking on the column
header.

Would others find this useful? I'm guessing it's just me and maybe one
or two others, in which case it might be best not to propose this
feature on lyx-devel and just take the easy approach of writing the
Python script. Nonetheless I thought I would ask for feedback since
branches are such a flexible tool I'm not sure how others use them.

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users