Home Download Buy Blog Forum Support

Indent Guides

Re: Indent Guides

Postby jbrooksuk on Tue Feb 15, 2011 7:47 pm

adzenith wrote:Do you have any other data you can give me? It's hard for me to fix it if it works over here and I don't know why it doesn't work over there.
Thanks!

What do you want to know?
jbrooksuk
 
Posts: 765
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Indent Guides

Postby jps on Tue Feb 15, 2011 10:35 pm

It would be handy to include the contents of the console: it'll confirm that the plugin was actually loaded, and any python exceptions will be reported there.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Indent Guides

Postby jbrooksuk on Wed Feb 16, 2011 1:47 pm

jps wrote:It would be handy to include the contents of the console: it'll confirm that the plugin was actually loaded, and any python exceptions will be reported there.

Code: Select all
startup, version: 2024 windows x64 channel: dev
executable: /C/Program Files/Sublime Text 2/sublime_text.exe
working dir: /C/Windows/system32
packages path: /C/Users/James.Brooks/AppData/Roaming/Sublime Text 2/Packages
settings path: /C/Users/James.Brooks/AppData/Roaming/Sublime Text 2/Settings
package /C/Program Files/Sublime Text 2/Pristine Packages/ActionScript.sublime-package is newer than the installed version (/C/Users/James.Brooks/AppData/Roaming/Sublime Text 2/Pristine Packages/ActionScript.sublime-package), running PackageSetup
error parsing session: No data at: 0:0
PackageSetup returned: -1
scanning /C/Users/James.Brooks/AppData/Roaming/Sublime Text 2/Packages
scanned /C/Users/James.Brooks/AppData/Roaming/Sublime Text 2/Packages
catalogue loaded
found 1 files for base name Default.sublime-theme
found 2 files for base name Default (Windows).sublime-keymap
found 1 files for base name Main.sublime-menu
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\comment.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\copy_path.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\delete_word.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\detect_indentation.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\duplicate_line.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\exec.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\find_under_expand.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\font.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\goto_line.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\indentation.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\kill_ring.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\mark.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\scroll.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\sort.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\swap_line.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\switch_file.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\transform.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\transpose.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\Default\trim_trailing_white_space.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\User\indent_guides.py
Reloading plugin C:\Users\James.Brooks\AppData\Roaming\Sublime Text 2\Packages\User\insert_nums.py
loading bindings
theme loaded
app ready
scanning /X/tropicalwarehouse.co.uk
loaded 918 snippets
jbrooksuk
 
Posts: 765
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Indent Guides

Postby adzenith on Wed Feb 16, 2011 5:35 pm

Clearly it appears to be loading... and you've got the option to enable it set in your user file prefs...
Can you type the following in the console and tell me what comes out? I just want to confirm that the settings have managed to make it into this view.
Code: Select all
print(view.settings().get("show_indent_guides"))
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Indent Guides

Postby jbrooksuk on Wed Feb 16, 2011 7:18 pm

adzenith wrote:Clearly it appears to be loading... and you've got the option to enable it set in your user file prefs...
Can you type the following in the console and tell me what comes out? I just want to confirm that the settings have managed to make it into this view.
Code: Select all
print(view.settings().get("show_indent_guides"))

:shock:

It returned false, but then I realised I put the options in the wrong file...

Sorry about that!
jbrooksuk
 
Posts: 765
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Indent Guides

Postby jackhackett on Wed Mar 23, 2011 10:54 am

Sorry to revive a slightly older thread but I'm having trouble installing this plugin on the portable version of Sublime.

Can someone please give me a (quick) "installation guide for dummies"? (Yes I really have spent time trying and have RTFM :D)

Many thanks
jackhackett
 
Posts: 2
Joined: Tue Mar 22, 2011 4:51 pm

Re: Indent Guides

Postby adzenith on Wed Mar 23, 2011 4:42 pm

  • Download the source file from the link in the first post.
  • In Sublime Text 2, go to Preferences>Browse Packages...
  • Put the file you downloaded in Packages/User/.
  • In Sublime Text 2, open up the file you downloaded. It has instructions for lines to add to your user file prefs. If you don't add these lines to that file, nothing will happen (to get to your user file prefs, go to Preferences>User File Prefs).
Let me know if it doesn't work!
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Indent Guides

Postby ajpalkovic on Thu Aug 04, 2011 9:33 pm

Today I got to work on a clusterfuck of a file with a 76 space indent at one point (38 tabs).
As such, I modified the indent guides plugin a little bit so that it can also highlight the current indent guide.
The idea is that if my cursor is at column 4, all of the indent guides on column 4 are highlighted a slightly different color.
This is super useful if you are trying to balance tags or something, just click before a tag, and scroll down, following the highlighted indent guide.
The modified file is here: https://github.com/ajpalkovic/SublimePl ... _guides.py
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

Re: Indent Guides

Postby adzenith on Thu Aug 04, 2011 10:04 pm

Nice work! (sorry you have to edit such files, though).
Want to send me a pull request and I'll integrate it into my repo?
Thanks!
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Indent Guides

Postby ajpalkovic on Fri Aug 05, 2011 1:59 am

Hmm, idk, it seems to stop working for me every now and then. I have no clue why. It's a really hard thing to debug because I can add a print statement, but then it reloads the plugin and starts working again. Eugh.

But yea, I didn't fork your repo, so the diff of the file in mine is just gonna be 100% insertions, so it wouldn't merge cleanly. In other words, it's prolly either just to copy and paste it in and look at the diff with git diff.
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 8 guests