Only some of the arrow icons in the gutter are rended; some aren't and, therefore, can't be clicked.
I have Emmet installed and its shortcuts don't work on those divs either.
Only the ones with adjacent arrows can be folded.
Any tips?
As I see you can only fold those divs that begin from that thick gray line. In bottom right corner you should see Spaces: X(X is a number, I guess you have 4), click on that and change it to 2 spaces. That should solve the problem.
EDIT: Also I guess it is a good practice to change indentation to spaces.
Related
When I add letter-spacing style to my text on path in D3, it tilts the letters and they don't follow nicely the circle anymore (see highlighted letters on image 2)
You can see my D3 code in this notebook
I've tried to do it in InkScape and it looks like it handles the letter-spacing differently (see image 3)
The style in the inkscape for the text is
font-size:17.6389px;line-height:1.25;text-align:center;text-decoration-color:#000000;letter-spacing:5.29167px;writing-mode:vertical-lr;text-anchor:middle;white-space:pre;fill:#990000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.77953;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers;stop-color:#000000
and for textPath is
font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17.6389px;font-family:Arial;-inkscape-font-specification:Arial
I've tried to use some of these attributes, but I cannot get the same result in D3. I would like the letters to be straight as in InkScape
Thanks for your help.
It might be impossible to center the letter with the letter-spacing attribute to be tilted symetrically.
I ended up creating a function that add non-breakable spaces between every character d.data.split("").join("\xa0".repeat(d.space)) where d.data is the text and d.space is the number of spaces inbetween every letter. This is just good for me now and give the following result.
How can I display zero width characters in (neo)vim? For example take this line:
This is ㅤsome textㅤ
... which actually has a zero width character before some:
This is \u3164some textㅤ
When I copy and paste the first line into my vim editor it is not displayed:
(It actually messes up the cursor, too: character count seems to be wrong and color column is offset.)
How can I make such zero width characters visible in (neo)vim? Is this possible?
It think it would be enough to display it as a question mark or maybe as ☒ or something, so it should actually not be zero width but be single width.
Update 11.11.2021:
I'm using NVIM v0.5.1 on MacOS 12.0.1 and iTerm2 as a terminal emulator.
I set tab configuration in ~/.vimrc as below:
set ts=4 sts=4 sw=4
I notice that if the word is 4 characters long or above, the cursor shift into right 4 spaces as in configuration for tabstop.
But if the word is less than 4 characters long, it didn't shift into 4 spaces.
Example:
'name' + <Tab>: tab produced correct number of spaces (i.e 4 spaces)
'age' + <Tab>: tab produced wrong number of spaces (i.e 1 space only)
Why is it ?
Does the word length effect tab?
What can I do if I want to shift the cursor to 4 spaces as configured regardless of the word length?
Thanks a lot
You’re probably inserting regular tabs, which display variable-width according to what’s before and after. I find having set list on is really handy for this (though you probably won’t like the default listchars settings).
If you really want spaces (which I find better anyway, set expandtab.
Also, most long-time users recommend leaving tabstop at 8, since you can’t control how wide every one’s tabs are.
The way that the tabstop, shiftwidth, and softtabstop options work is that they control indentation to certain points that are commonly referred to as "tab stops". In other words, they're designed to always indent to a column that's a multiple of the setting.
So if your tab stops are at multiples of 4, then hitting the Tab key will cause the cursor to indent to a column that is the next multiple of 4. This is the behavior of inserting a literal tab (U+0009, CHARACTER TABULATION) into a document and then rendering it on a normal terminal (except that the width is usually 8 there). This results in text that is aligned at fixed columns, which is the desired style for most programming languages and text markup formats.
As you've noted, this does result in different amounts of indent if the words are different lengths. Typically in code, we would just cause the second column to be at the next tab stop and not care that the indents are of different lengths. That is, in your example, we'd hit Tab once on the first line and twice on the second, and start the next column at column 8.
I'm not aware of any way to force Vim to insert a specific number of spaces other than the standard editing commands. Normally users who are in this situation just hit Space four times if they really want four spaces and not an indentation to the next tab stop. You can of course create a mapping if you need to do that a lot.
I am trying to add a short underline in the paragraph style for my inline headlines. At the moment I am doing it with Paragraph Rules - rule below + offset and right indent (see attached image, the orange line). But this solution only works if the columns are always the same width.
Is there a way to add a object/line, with a defined width, to a paragraph style?
Spontaneously, would say no. However that would be easy to set while adding some contents. You could however use a dedicated character style (underline) taht you would attach with agrep style to a tab character. Then you can control "rule" width with a tab position.
Sure. Here it is…(and now just adding characters so stackoverflow will accept my if not too brief message…)
The fact is that you need to add a new line and type in a tab character. The presence of that tab will draw the "rule".
Other solution is to use both "Above" and "Below" rules.
Playing with below's weight, color (white), offset and left indent would make it independent on column width (ruleAbove has entire column range)
Here is how I would solve it:
Create a Stroke Style with Pattern Length = to the page size of your document (not text frame or column) and Length = to whatever length of your line should be.
Example:
Pattern Length = 8.5in (letter size paper)
Length = 1in (width of line under paragraph)
Use Rule Under in the paragraph style and apply the stroke style you created. Make sure to set Width to "Text".
Apply any color/offset, etc. options.
This will work independently of the text column width and text length.
If I have this line visually selected
Alpha <-- selected
Bravo
Charlie
is there a vim command to move the selected area down, without adding to the original selection?
Alpha
Bravo
Charlie <-- selected
hjkl key will only add lines to your selection. And I didn't see anything in visual's help doc that indicated it could be done.
In selection mode, you can use o (lowercase o) to swap between moving the top and bottom boundary. So you can do this without leaving selection mode using jjojj.
This will certainly do it:
jjVV
But it isn't really any different from canceling the original selection first:
escjjV
Or:
VjjV
as far as I understand your question, you would like to select Alpha and move it down. Let us say move Alpha under Charlie. You need to select Alpha in visual mode and then type : (colon) and type m 3. So your typing format should like :m 3. This means that move selected text to line 3. I hope this will be your question answer. Have a great day.