Bug 104134 - Wishlist - Add insert content file from git repository
Summary: Wishlist - Add insert content file from git repository
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.3.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2016-11-23 23:08 UTC by Javi Barroso
Modified: 2019-01-17 09:49 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Javi Barroso 2016-11-23 23:08:55 UTC
Description:
Hello,

It would be very useful, for technical documents writers to be able to insert a file content from a git repository.

I can see https://bugs.documentfoundation.org//show_bug.cgi?id=77255 where https://skyfromme.wordpress.com/2014/04/07/announcing-bundesgit-for-libreoffice is mentioned.

The idea is:

* From Edit Menu, select Insert, and then git file. Then fill file with git file path (git://xxx.yy/path/to/file)

A new "frame"? (the same that index) would be populate with git file content. It would be static until somebody pick right mouse button and choose update content (like update index). Maybe a new item on menu with "update all git references" would help to be productive.

It would be perfect if you were popup asked when you write git:// on a document.

I'm not sure if credentials could be saved on actual odt format

Thank you very much

Steps to Reproduce:
This is a whishlist

Actual Results:  
Not git integration at all

Expected Results:
git integration would be nice


Reproducible: Always

User Profile Reset: No

Additional Info:
Thank you for consideration


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Comment 1 Bastián Díaz 2016-11-24 02:15:10 UTC
The idea seems interesting, but something more "simple" as an access to a GIT account from "Remote Files" in LibreOffice would be great. For example Sparkleshare is an easy-to-use Dropbox-style application for the average user.
Comment 2 Björn Michaelsen 2016-11-29 11:52:16 UTC
Hmm, I dont quite get the intention here: right now 99% of all git repositories also have a http frontend of some kind (cgit, gitweb, github ...) so adding an http-link should work fine.

The https://skyfromme.wordpress.com/2014/04/07/announcing-bundesgit-for-libreoffice stuff was more about adding a complete set of data to LibreOffice, possibly including their relation (Bundesgit e.g. is either a collection of small text blobs or a very, very simple database).
Comment 3 Javi Barroso 2016-11-29 12:07:30 UTC
Our git repository is not available via http / https, but if libreoffice could have this feature, we would add http support to git

For a better understand of the problem. Imagine I'm writting a doc:

The script fill_bug[1] helps you to to fill a bug on bugs.*.org
See download_bug[2] script for how automatice the download of text bug.

[1] and [2] are cross references to a doc chapter, which would have the git copy text from git://git/fill_bug or git://git/download_bug.

If you update the script you need to edit the doc, if it have a copy, you only need update git links like update index do.

Thank you very much
[1] fill_bug
#!/usr/bin/perl 
,.....
[2] download_bug
#!/bin/bash 
....
Comment 4 Jean-Baptiste Faure 2018-06-19 16:55:12 UTC
(In reply to Javi Barroso from comment #3)
> Our git repository is not available via http / https, but if libreoffice
> could have this feature, we would add http support to git

I do not understand what you mean. If you add http support to your git repository, there is no need to have git support in LibreOffice.

Please explain why you prefer a change in LibreOffice instead of a change in your git repository configuration.

Status set to NEEDINFO, please set it back to UNCONFIRMED once requested
informations are provided.

Best regards. JBF
Comment 5 Javi Barroso 2018-06-19 22:18:37 UTC
Hello,

(In reply to Jean-Baptiste Faure from comment #4)
> (In reply to Javi Barroso from comment #3)
> > Our git repository is not available via http / https, but if libreoffice
> > could have this feature, we would add http support to git
> 
> I do not understand what you mean. If you add http support to your git
> repository, there is no need to have git support in LibreOffice.
> 
> Please explain why you prefer a change in LibreOffice instead of a change in
> your git repository configuration.
When I document, at our job, is needed to include scripts on the document, because maybe people without (full) access to the source. Currently we create annexes and copy-paste the code, but when we modify the code at the server, the document is difficult to have updated (you will forgot that the script is in the document)

> 
> Status set to NEEDINFO, please set it back to UNCONFIRMED once requested
> informations are provided.
> 
> Best regards. JBF

Hello,

Imagine, I want to have the updated content of a file inside a doc. Libreoffice could add an option to load a section from an URI.

For example I could write:

"See the source code of vibreoffice:" and then insert a section with the next URL:

https://github.com/seanyeh/vibreoffice/blob/master/src/vibreoffice.vbs

Then libreoffice download the file and mark the section as updated at 2018/06/20 00:08 (and show you the new session with the content of the file)

Next time that I will open the document, it should be configurable to tell what to do about every section:

- update on startup
- update on demand
- update when visualize the section
- show cached file when there is not network connection

The same can be applied with git://xxx, scheme or other URIs

Thank you!
Comment 6 Buovjaga 2018-06-25 17:52:43 UTC
(In reply to Javi Barroso from comment #5)
> Imagine, I want to have the updated content of a file inside a doc.
> Libreoffice could add an option to load a section from an URI.

This somehow brings to my mind https://fosdem.org/2018/schedule/event/ode_odf_toolkit/attachments/slides/2632/export/events/attachments/ode_odf_toolkit/slides/2632/FOSDEM_2018_ODF_Toolkit.pdf (slide 17)
Slides from this talk https://fosdem.org/2018/schedule/event/ode_odf_toolkit/

But now you are kind of combining git with this other idea of yours.
Comment 7 Heiko Tietze 2018-06-26 07:02:45 UTC
BundesGit is an extension and that's how I would see any implementation- not to the core because out-of-scope. So in my opinion it's a WF.

But we have a fairly good interface to access remote files with several types of connections. Maybe it's even possible to connect out of the box via ssh. Samuel, what's your take?
Comment 8 QA Administrators 2019-01-11 15:22:50 UTC Comment hidden (obsolete)
Comment 9 Javi Barroso 2019-01-17 09:45:13 UTC
Well the input needed is from Samuel. I am not sure why this wishlist cannot be integrated into libreoffice without any extension. It would make libreoffice better.

But if you think it will not be possible, please close the bug as "WONT FIX", better than wait until some bot close it because of inactivity

Thank you very much
Comment 10 Samuel Mehrbrodt (allotropia) 2019-01-17 09:49:32 UTC
Agree with Heiko, this is a very very special use case and I can't see this in core.
This is a good thing for an extension though :)