Giter Site home page Giter Site logo

brackets-indent-guides's People

Contributors

kennethsundqvist avatar lkcampbell avatar mikaeljorhult avatar omikorin avatar tweakimp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brackets-indent-guides's Issues

Ident-guides just for current block

It is posible to implement :hover color for the current block of code (where cursor is located)?

This can be used whit a second guideColorHover variable and is more easy to find the current indent.

Current:

current

New way:

new

User preferences not applied on startup or reload

OS: Mac OSX Mavericks

Brackets Version: Release 1.1 development build 1.1.0-0 (master d9bc65e1d)

Extension Version: 1.3.2

Repro Steps:

  1. Add "language": { "clojure": { "brackets-indent-guides.guideColor": "red" } } to brackets.json. Any color value that is not the default color value.
  2. Open a clojure file then restart or reload Brackets.

Observed Results:
Indent guides are the default color value.

Expected Results:
Indent guides should be red.

Other Notes:
If you navigate to a file written in a different programming language and then navigate back, the guides will turn red.

This isn't specific to the new language scope of preferences, it just happens to be a convenient way to reproduce the issue.

Also happens if you close all open files and then open a clojure file again. Don't even have to reload or restart.

Expand arrow

expand arrow is not working while the indent guide is enabled.

Question for you

Hi Lance,

I have a private question to ask you about the brackets project, but your e-mail address on github.com seems to be private. Can you send me an e-mail at redmunds at adobe dot com?

Thanks,
Randy

Bracket indent guide is not showing

I just installed Bracket " Release 1.14 build 1.14.0-17740 (release 329d08ffc)
build timestamp: Fri Apr 26 2019 18:14:42 GMT+0100 " and installed indent guide and no guide is showing up, I am using the default dark theme.

2019-05-09

Console error when selecting menu item

The extension itself installs just fine and it does create the View->Indent Guides menu option. But that's it. Selecting the menu option doesn't show anything that might be indent guides, nor does it place a check mark on the menu item...

In the Brackets console, I get this error when selecting the menu item:

Uncaught TypeError: Object #<Object> has no method 'setValueAndSave' main.js:130
handleToggleGuides main.js:130
Command.execute /command/CommandManager.js:90
execute /command/CommandManager.js:275
executeCommand /utils/ShellAPI.js:66

This is on Windows 7 x64, Brackets 37.

Less Obtrusive Styling

It would be great if you could either make the color blend in more with the background or use a dotted styling so as to not interfere with the overall look of the editor. Also, might want to add a condition to see if there is text ahead of the cursor and if not do not put the guides in. See Sublime Text for examples of both of these. Otherwise a really handy extension!

Empty lines do not display indent guides

OS: Mac OSX Mavericks

Brackets Version: Release 0.44 development build 0.44.0-0 (master 27e6c5abb)

Extension Version: 1.3.1

Repro Steps:

  1. Create a text file that contains blank lines.
  2. Enable the indent guides

Observed Results:
gapless-observed

Expected Results (from Sublime Text):
gapless-expected

Other Notes:
This is by design. Empty lines have no indentation, so they have no indent guides. Regardless, enough people have requested this behavior that I am trying to figure out how to include it as an Extension Preference.

CodeMirror mode overlays have a couple limitations that make these "gapless" indent guides difficult to implement. To start, although there is a way to add styles to empty lines, there are no DOM elements to stylize in the empty line. Also, the tokenizer function in the overlay mode only retains the context of a single line of characters at a time but "gapless" indent guides need to know the indentation level of the line just previous to the current line in order to draw the correct number of guides.

Show only one indent guide in hanging indent.

This is a feature suggestion.

A picture is worth a thousand words. What we have at the moment:
image

Looks prettier:
image

We could detect whether the next line is a hanging indent by checking the number of indent tabs compared to the previous line. If the difference is more than +1 tab, this is a hanging indent โ€“ we can show only one guide.

Have a guide at column 0

Sublime Text actually has a guide in column 0 in addition to the indented guides. I think this would actually be helpful for knowing where the boundary between the gutter and the code is, since there's no visible marker for that in Brackets by default.

Bold Guide on Item Select

When a object or line is selected such as a div and the closing tag is also highlighted by brackets in order to show the scope of the container bold the guide, making it easier to trace.

README.md needs screenshots

Not everyone understands what the phrase "Indent Guides" means.

I have been asked by multiple people to add screen shots so people understand visually what Indent Guides are.

Conflict with Emmet

Hey Hey,

If I try to install Emmet and Indent Guides only one of them works and the other throws a "Extension Error" in the Extension Manager.

Tried this on multiple computers with a up to date brackets version.

Would be absolutely brilliant if you could fix the conflict, as I love those two extensions.

Thanks a lot

Create Submenu folder to edit settings via menu

It would be neat to have the options to toggle the indent guides on and off ,switch between dotted and solid and choose a color via the menu.
Can you create a folder under View > Indent Gudes for this?

Add my own shortcut key

If I want to add my own shortcut to toggle the display of indent guides, is there a command I can target? Something like view.toggleIndentGuide?

Add multiple languages

Not a lot of text in this extension, but what the heck.

Let's add add as many languages for the limited text as we can.

Update preferences code for Sprint 37

OS: Mac OSX Mavericks

Brackets Version: sprint 37 development build 0.37.0-0 (master 715589c46)

Extension Version: 1.0.1

Repro Steps:

  1. Launch Brackets with Indent Guides extension installed.
  2. Open Dev Tools and review console

Expected Results:
No errors or warnings for the Indent Guides extension

Observed Results:
Several Preferences deprecation warning about Indent Guides extension.

This extension will break in Brackets Sprint 22

Lance,

I want to give you a head's up that this extension will break in Sprint 22 due to a recent change to Editor. The getIndentUnit() function was removed. I'm not sure if you want to use the new getSpaceUnits() or use CodeMirror.getOption("indentUnit").

You can test this against the current master in Brackets. Sprint 22 will be posted probably on Monday.

Regards,
Randy

Resize guide svg if font is resized

resize

When I zoom in to code, the guide is not resized. Please add this or at least an option to resize it on zoom in, so that the guide is bigger and scales with the rest of the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.