Navigation Menu

Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Double click select a part of a var #10936

Open
djondi opened this issue Apr 18, 2015 · 6 comments
Open

Double click select a part of a var #10936

djondi opened this issue Apr 18, 2015 · 6 comments

Comments

@djondi
Copy link

djondi commented Apr 18, 2015

This one is simple. Double clicking on a variable "$var" selects only the "var" without the $ sign :)

@marcelgerber
Copy link
Contributor

What language is your file written in?
It should already work with JavaScript, PHP and Perl files. If it doesn't, what version of Brackets are you using? See Help > About Brackets.

@djondi
Copy link
Author

djondi commented Apr 19, 2015

I'm writing in PHP. I'm using version 1.2 build 1.2.0-15697. Believe that's the latest one.
Here's a screenshot just so we can understand each other better :)
https://www.dropbox.com/s/zf6dbljzqkdkbp6/Screenshot%202015-04-19%2008.40.07.png?dl=0

@marcelgerber
Copy link
Contributor

Yeah, I get what you want (and that's also the expected behavior). For me, it definitely select $komentar rather than just komentar.
Could you just try Debug > Reload without extensions to make sure it's not caused by an extension?

@djondi
Copy link
Author

djondi commented Apr 19, 2015

I did try to reload without any extension and it didn't help. The thing that bothers me is still there. It's just I've spent many years with other text editors (Notepad++, Sublime Text etc) and they all did select only the text without the variable sign. It's hard to start doing different things now. Is there any extension that could help me?

@marcelgerber
Copy link
Contributor

Ah, from your description I thought you meant it the other way round.

You could write a very simple extension to fix that. This should suffice:

define(function (require, exports, module) {
    var CodeMirror = brackets.getModule("thirdparty/CodeMirror2/lib/codemirror");
    CodeMirror.registerHelper("wordChars", "php", /\w/);
});

@djondi
Copy link
Author

djondi commented Apr 19, 2015

Hahahaha so simple yet caused so many problems. I've been Sublime Text fan for a year or two (before that used Dreamweaver), but the thing that bothered me about Sublime Text is it's looks, I'm not sure how to put it, but it looks rather childish to me. Environment is very important for creating code, at least for me. All other text editors have flaws, Atom without an option to load last project on startup, UltraEdit with it's complexity (simplicity is better^^), Vim with DOS kinda look and so on... Spent good amount of hours in past days to find the perfect editor. Brackets is the best so far that I've found :)

Thank you very much for helping me, I really appreciate it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants