New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gq doesn't format text #333
Comments
yeah, missed that feature, too :/ |
I miss it too...but love VsVim overall. :) |
<voteup/> This is the number 1 feature I miss from regular vim. (one reason I bring this up now is that vsvim has gotten so good that I frequently block-select text and type 'gq' expecting it to do something, forgetting that vsvim doesn't do it yet :)) |
I'll look at getting that added. Getting |
I was looking at this tonight and I'm questioning whether or not I have the entire story with
the result was
Is this the behavior you were looking for with |
I guess the whole story would need to include Using gq with
Or as the documentation puts it:
Using gq with
|
Man I must have been asleep last night. I thought I had |
Hey @jaredpar. Really like VsVim; it's allowing me to enjoy using Visual Studio. Just curious; any progress on this issue? |
No recent progress. I lost track of this issue trying to get the 1.4.0 release out the door (should be released later this week). This high on the list for the next release after that though |
+1. Formatting documentation comments without this feature is just a plain PITA. |
👍 +1 for gq functionality! |
👍 |
@jaredpar I've had a refreshed hankering for this functionality; I would particularly like to get |
I do think something this big would need a full module. I've thought about On Thu, Oct 30, 2014 at 5:44 PM, Kazark notifications@github.com wrote:
Jared Parsons |
Okay, now that's really interesting, because I never use this to format code, only comments or blocks of text in a plain text or Markdown file. Is it intended to be for formatting code? I don't think I even realized that! Or am I misunderstanding...? Why would you need a C lexer? Also I see you talking about |
@Kazark i'm confusing it with another feature (not sure which one off hand). This particular one gets difficult around the use of |
Okay, gotcha. Yep, |
I think it's fine to start by simplifying the feature and expanding out My instinct would be to put this into a separate module / type. At the On Fri, Oct 31, 2014 at 10:41 AM, Kazark notifications@github.com wrote:
Jared Parsons |
Oh, okay! I was assuming there would already be some stuff built out for normal commands like |
This is being designed in such a way that it can hopefully be incorporated into VsVim in the future. VsVim/VsVim#333
@jaredpar Okay, I have the meat of what I consider the core cases implemented in the kata mentioned above. Care to take a look? |
Sure, do you have a branch I can look at? On Fri, Dec 12, 2014 at 10:03 AM, Kazark notifications@github.com wrote:
Jared Parsons |
Sorry, no, not yet; only in this repository... so far I have just built the code standalone from VsVim and would like some hints from you about how to start integrating it, if you have any tips. |
This feature would be very helpful. |
Is it too simplistic to just map gq to :noremap gq :vsc Edit.FormatSelection<CR> |
@mqudsi That kind of formatting (code formatting) is already support using |
I have a preliminary version of this working. I'll submit a PR when it is finished. |
@ricksladkey you are the 💣 |
Instead of fixing it so it's not a deal for new users anymore, one just closes this issue, because you can hack your way out. It just makes poor quality when this is a case for a dozen of things with this extension. I'm a Neovim user who needs to use Visual Studio code. I only pick VsVim, because it's the best I can have, it's not fulfilling on a wider scale, because of little things like this. |
@martin-braun did you read #2274? |
@mqudsi Missed that, but not working for me. I simply mapped Edit.FormatDocument or so on Visual Studio. Sorry about that comment, though. Assumed the issue was ignored, which was not. |
If you select a set of rows and press 'gq' the text isn't formatted into properly sized lines. In vim the width for the command is based on the 'textwidth' variable.
The text was updated successfully, but these errors were encountered: