bibtex autocompletion doesn't have a correct insert positions

Bug #1184403 reported by Răzvan-Cosmin Rădulescu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit-latex-plugin (Ubuntu)
Fix Committed
Undecided
Pietro Battiston

Bug Description

1)
Description: Ubuntu 13.04
Release: 13.04

2) version 3.4.1-1

3)
when editing a *.bib file, the @ triggers pop-up snippets that should be inserted with insertion points (for example at ">>" here):

@Article{>>Identifier,
 title = {>>Title},
 author = {>>Author},
 journal = {>>Journal},
 year = {>>Year}
}

4)
it just adds in the following text (in this example):

@Article{${Identifier},
 title = {${Title}},
 author = {${Author}},
 journal = {${Journal}},
 year = {${Year}}
}

---------
The troublesome file is situated at /usr/lib/gedit/plugins/latex/bibtex/completion.py. I attached the patch (with "diff old_completion.py new_completion.py" - hope this is the correct way) after changing the file in order to have correct snippets. Anyway, the changes are minimal.

Revision history for this message
Răzvan-Cosmin Rădulescu (razvancosmin-radulescu) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "this patch fixes the problem with the snippets" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
tags: added: bibtex gedit-latex-plugin
Revision history for this message
Pietro Battiston (toobaz) wrote :

Ahem... fixed upstream, thanks for the patch, and thanks for your patience 😅️

https://gitlab.gnome.org/GNOME/gedit-latex/-/commit/7b683f1b6e7a4b0c0b771c10aaf55d6e6ccde58a

Changed in gedit-latex-plugin (Ubuntu):
assignee: nobody → Pietro Battiston (toobaz)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.