After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 672320 - Popup for default selections not appearing
Popup for default selections not appearing
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: snippets
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2012-03-18 00:58 UTC by Joseph Reagle
Modified: 2012-08-14 12:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joseph Reagle 2012-03-18 00:58:04 UTC
"Using the syntax ${n:[value1,value2,value3]}, you can provide multiple choices for the default value. When you tab into this placeholder, a completion popup will show you the available choices so that you can quickly pick one."

Can anyone confirm that default selections work in gedit 3's snippets? Since upgrading to v3, I can't select options anymore.

That is, for HTML, given:

<input type="${1:[button,checkbox,file,hidden,image,password,radio,reset,submit,text]}" name="${2:some_name}" value="$3" id="${5}" />

if you type "inputTAB" you should get a choice of the type, but I don't.
Comment 1 andreas 2012-08-11 17:24:36 UTC
The selection does not work on my system either (using gedit 3.4.2 on Fedora 17):
tested with:
  <snippet>
    <text><![CDATA[${1:[hello,world]} $0]]></text>
    <tag>test</tag>
    <desc>test</desc>
  </snippet>
Comment 2 jessevdk@gmail.com 2012-08-14 12:54:04 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

There were two issues, non-updated API in snippets for completion and wrong memory transfer annotations in gtksourceview.