Sublime 3 - Gist is Not Inserted Properly
Closed this issue · 18 comments
Hi,
I noticed the Gist plugin for Sublime 2 is not quite Sublime 3 ready yet. I gave it a go anyways... and noticed couple of things right away. The Keyboard shortcuts are not working from the getgo and noticed something funky while inserting a Gist.
I tried to insert this gist https://gist.github.com/rooseveltrp/6453919 but the plugin did not grab all of its contents and the formatting is quite poor.
Any updates and fixes would be greatly appreciated. It is an awesome plugin!
same problem here - formatting doesnt work @st3
By the way I tested the plugin and noticed the formatting issue happens only on a Mac. I am using 10.8.4. But on my Cent OS machine the formatting is perfectly fine.
no, it happens on a windows machine too :(
Am 25.09.2013 um 18:06 schrieb rooseveltrp notifications@github.com:
By the way I tested the plugin and noticed the formatting issue happens only on a Mac. I am using 10.8.4. But on my Cent OS machine the formatting is perfectly fine.
—
Reply to this email directly or view it on GitHub.
I have this problem with ST3 3047 @ W7 x64 aswell.
Lubuntu 32-bit ST3 build 3047, everything works ok here, although I did change the default keyboard shortcuts to a single key combo ("ctrl+shift+super+alt+[t,g,h,j,k,l]")
Same issue here :(
Same here, OS X 10.7 Lion, ST3 Build 3047.
Also, the syntax highlighting is not set automatically for the gist – this is not a big problem though :)
Same for me on Windows 7. Slightly annoying
Same here, Windows 7.
Same issue here Mac OS X Mavericks 10.9.1, ST3 Build 3059.
To all people missing ST3 support: Have a look at the Sublime Github plugin, which have som Gist handeling features (albeit not as many as this plugin), and will allow you to put place a gist in your clipboard.
The Sublime Github plugin you mentioned above did exactly what I was looking for.
Thank you Allan.
@rooseveltrp I tried to reproduce the issue without any luck. Could you share your sublime user settings as the issue can be depend on some specific setting like detect_indentation
or auto_indent
.
I have the same problem – here's my user settings – hope it helps :)
{
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": false,
"auto_complete_triggers":
[
{
"characters": "figs/",
"selector": "meta.group.braces.tex"
},
{
"characters": "/",
"selector": "meta.group.braces.tex"
}
],
"auto_complete_with_fields": true,
"auto_indent": true,
"binary_file_patterns":
[
"*.exe",
"*.o",
"*.bin",
"*.a",
"*.psd",
"*.db",
"*.gz",
"*.idraw",
"*.pdf",
"*.tar",
"*.zip",
"*.png",
"*.jpg",
"*.gif",
"*.eps",
"*.dvi",
"*.ps",
"*.mmap"
],
"bold_folder_labels": true,
"caret_style": "wide",
"color_scheme": "Packages/Color Scheme - User/Tomorrow.tmTheme",
"default_encoding": "UTF-8",
"default_line_ending": "unix",
"detect_indentation": true,
"draw_indent_guides": true,
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.dll",
"*.obj",
"*.lib",
"*.so",
"*.dylib",
"*.ncb",
"*.sdf",
"*.suo",
"*.pdb",
"*.idb",
".DS_Store",
"*.class",
"*.fdb_latexmk",
"*.tex.swp",
"*.*~",
"*.aux",
"*.fls",
"*.cls",
"*.asv",
"*.m~",
"*.pdf",
"*.sublime-workspace",
"*.sublime-project"
],
"find_selected_text": false,
"fold_python_docstrings_onload": false,
"font_face": "Source Code Pro",
"font_options":
[
"subpixel_antialias"
],
"font_size": 10.5,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"EasyMotion",
"HexViewer",
"LaTeXSQ",
"Pylinter",
"ColorSchemeEditor-master",
"Vintageous",
"OpenCL",
"Vintage",
"PlistJsonConverter",
"SublimeLinter-cppcheck",
"SublimeCodeIntel",
"ChangeList",
"AlignTab",
"SublimeLinter",
"SublimeLinter-flake8",
"SublimeLinter-chktex",
"RegReplace",
"SublimeLinter-contrib-mlint",
"SublimePythonIDE",
"SublimeLinter-contrib-clang"
],
"inactive_panes_dim_strength": 0.14,
"indent_guide_options":
[
"draw_normal"
],
"indent_to_bracket": false,
"line_padding_bottom": 0,
"line_padding_top": 1,
"move_to_limit_on_up_down": false,
"open_files_in_new_window": false,
"overlay_scroll_bars": "enabled",
"preview_on_click": true,
"revert_font_size": 10.5,
"scroll_past_end": true,
"show_full_path": true,
"show_line_endings": true,
"show_panel_on_build": true,
"smart_indent": true,
"soda_classic_tabs": false,
"tab_size": 4,
"theme": "Ayin.sublime-theme",
"todo":
{
"binary_file_patterns":
[
"*.hdf",
"*.mat"
],
"case_sensitive": true,
"patterns":
{
"BUG": "\\WBUG[\\s]*?:+(?P<bug>.*)$",
"CHANGED": "\\WCHANGED[\\s]*?:+(?P<changed>\\S.*)$",
"FIXME": "\\WFIX ?ME[\\s]*?:+(?P<fixme>\\S.*)$",
"NOTE": "\\WNOTE[\\s]*?:+(?P<note>.*)$",
"STUB": "\\WSTUB[\\s]*?:+(?P<stub>.*)$",
"TODO": "\\WTODO[\\s]*?:+(?P<todo>.*)$"
},
"result_title": "TODO Results"
},
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"use_simple_full_screen": true,
"word_wrap": "auto"
}
@AllanHansen I tried to change settings completely to yours except color_scheme
and theme
and can't reproduce the same. Could you please try to reproduce the issue on the last version I added. In case the it is still there please share the link to the gist that affects.
Just ran an "Package Control: Upgrade/ Overwrite all packages", but the problem persists.
Someone mentioned that this issue happens when auto_indent is set to true and when doing Gist insert. Happens to me as well and the auto_indent false seems to work, so I've made a pull request which sets auto_indent to false temporarily and then sets it back after the gist is inserted.
Similar issue to #124