Questions tagged [surround]
91 questions
2
votes
2 answers
How to change 'S' to 's' in tpope/vim-surround - VIM
When we are in visual mode we have to press 'S' to surround the selected text.
How can I change 'S' to 's' in tpope/vim-surround plugin

whitesiroi
- 2,725
- 4
- 30
- 64
2
votes
4 answers
Surround region with dollar sign ($) in Emacs
There is built-in emacs function for surrounding a region with parenthesis, as I found it here: https://stackoverflow.com/a/2952021/1635919. Is there an analogous way to surround a region with dollar ($)?
C-h f insert-pair tells that this function…

danek
- 127
- 1
- 7
2
votes
2 answers
number of elements surrounding an element in a matrix, matlab
I need to write a function that finds the "deepness" of a cell (row,col) in a matrix.
Given any nxm matrix say mat = ones(6,6) for example..
mat =
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 …
user1676521
1
vote
1 answer
How do i use vim surround from the middle of a word to the end of a line?
printemployee.fullname(emp_1)
I want to use vs code vim-surround to give me this result:
print(emloyee.fullname(emp_1)
I've tried yss from the cursor on e but that wraps the whole line.
I've tried ysw from the cursor on e but that only wraps (…

arkosno
- 51
- 5
1
vote
0 answers
How can I use spatialization in Web Audio API?
Web Audio's PannerNode is supposed to allow placement of the sound source with the positionX, positionY and positionZ parameters, but I can't seem to get things to work consistently.
I've tested things using two different hardware setups: a…

TobyRush
- 654
- 4
- 20
1
vote
1 answer
visual studio code surround with extention can not find surround.custom snippets
The first time I use surround with after starting vs code, I can find the surround.custom scripts that I created, as indicated in the next image
After I use one of those custom surround with scripts successful, If I try to use again one of those…

Vitor Mira
- 93
- 10
1
vote
1 answer
Surrounding 3d sound effects using howler.js or another library?
I'm working on a project and I need to add 3d sounds effects, like the sound is continually moving around the listener effects. Is it possible to achieve that with howlerjs i see that with howler i'm able to play a sound from specific…

Mearc
- 11
- 3
1
vote
3 answers
Surrounding a latex equation in vim
I use vim (and the vim latex-suite) to edit latex documents. Something that occurs frequently is the need to change an inline equation into a displayed equation, as follows. I start with:
The most important equation is \(f(x)=x^2,\) but most…

joelwatsonfish
- 11
- 3
1
vote
1 answer
Search multiple fields using Surround Query Parser?
I have a the following surround query searching in the solr field content.
_query_:"{!surround maxBasicQueries=10000} content:5N(tru*,(equi* OR and*))
How do I submit a query which is ORed or ANDed with multiple fields.
Is something like this…

Yauza
- 180
- 1
- 13
1
vote
0 answers
Web Audio API play sound to specific speaker/channel
I am attempting to play sound out of a specific speaker other than left or right in a surround sound system. I can easily switch between left and right channel, but cannot get sound from any other speaker. Tried on Firefox and…

Daniel Boggs
- 61
- 1
- 6
1
vote
1 answer
CSCore - Convert stereo to surround
I have to decode a stereo mp4 file and map the L and R channel to 5.1 or 7.1 surround. In addition I have to provide a specific output format: 16bit pcm 44.1kHz.
Its no problem to convert the audio source to 44100Hz 16bit. The only problem is the…

john green
- 11
- 1
1
vote
1 answer
remove surrounding ERB tag just with vim plugin rails and surround
In vim, yss- can add the erb tag <% %> surrounding the current sentence.
If I want to do the opposite operation, ds<% doesn't work. I have to repeat these typing like: ds% followed by ds< to remove the erb tag completely.
Is there a more direct way…

canoe
- 1,273
- 13
- 29
1
vote
0 answers
How to search multiple fields using Surround QueryParser?
I have some queries regarding the Surround QueryParser. Could any of you please suggest?
How to search multiple fields at once?
As shown below, the syntax allows to search against one field. But how do I submit a query like "FIELD1:N(abc,corp)…

Raghavendra Rao
- 11
- 2
1
vote
0 answers
Custom surround with function
I wan't to create custom surround with function in Microsoft Visual Studio 12.
How can i do it?
My custom custom surround with function should do this:
**"some text"** //I mark the text and do the function
This happens:
console.log(**"some…

Lukas Naruševičius
- 111
- 9
1
vote
2 answers
Surround array on paste Sublime
I would like to set my sublime up to enter a mode where when I paste a set of data looking like this:
1234567 This is code 1
2345678 This is code 2
3456789 This is code 3
It will end up like this:
['1234567', 'This is code1'],
['2345678', 'This is…

user2408080
- 13
- 2