I came from vim. Its biggest win is commands like ci< when <this text is removed if cursor is placed inside angle brackets>
How can I do that in hackable editor for the XXI century?
You can do this using the vim-mode-plus plugin. It natively supports your example, and many other text-object style commands taken straight from Vim, e.g. all of these would work as well:
di<
da<
ca<
And it should work with ', ", (, and other delimiters, just like Vim.
There is a function that comes with the editor named bracket-matcher:select-inside-brackets that highlight everything inside the bracket (but not the bracket itself). You may then press backspace or delete button to remove the content, or any other button to replace the content. For windows, the default key combination is ctrl-alt-m.
If you are not using windows, or you may have accidentally overwritten the settings, you may open Setting > Keybindings and search bracket-matcher:select-inside-brackets. It should tell you what is the correct key combination.
Related
See below for a screenshot of my brackets editor in a css file.
I see the colored highlighting for all file types. I am not sure what to call it.
I have been downloading extensions lately so it could be one of them but not sure what its called and thus can't search online for how to disable it.
Those colored marks are the "gutter marks" from the Brackets Git extension. They indicate added (green), modified (yellow/orange), or deleted (red) lines in the current file.
Personally, I find them very helpful. In case you still want to turn them off, go to the Git Settings and check the box for "Use Git gutter marks".
I'm interested in switching to the Atom text editor, but one thing that's keeping me with Vim is vim-notes, a plugin that automatically highlights names of your notes and allows you to jump to them by positioning your cursor over them and pressing gf (go to file under cursor). Is there a way to make Atom:
Read all the filenames in my ~/Notes directory
Highlight or underline any text in any .note file that's the name of a file in the ~/Notes directory, even if that note title has spaces.
Allow me to jump to the highlighted note by pressing some kind of key combination while the cursor is over it
I don't think there's a plugin for this, but if it's possible, I might be able to make one.
I'm trying to bulk remove all that appear inside the from my WordPress Posts XML template. I have a huge file and since I'm changing of layout, all the and tags inside a quote should be removed, as the quote is already styled. How can I remove the tags without affecting the rest of my template?
You can make a search and replace (Ctrl+H) on your template file, using Regex mode :
Search for :
<blockquote>(.*?)<i>(.*?)</i>(.*?)</blockquote>
And replace by :
<blockquote>$1$2$3</blockquote>
EDIT :
This method will partially work for patterns like :
<blockquote>foo <i>bar</i> baz <i>qux</i></blockquote>
(ie. multiple <i> in a single <blockquote>). You just have to launch the search and replace several times, or use the recursive tag (?R) in your regex (not tested).
Open the file in notepad++
Select all <blockquote> sections
Press Ctrl+H to open the Replace dialog box
Find <i>
Replace with nothing
Be sure to click the 'In selection' checkbox
Click Replace All
PROFIT!
Example:
<p style="color:blue; font-family:Consolas">blue text</p>
The user select the text, copy and paste (wysiwyg, word, etc). And the text comes without blue color and consolas font?
From browser to browser = simple content to wysiwyg
From browser to word
There's a manual with keywords that can be used on content.
The users usually copy the keywords directly from manual and paste in the editor. So the editor assumes the style of the manual. And that's what I don't want.
I can disable the select or change the tags of keywords to input and style it, but exists a easy way?
This is a native OS/software feature. This is not something you can control via js/html.
You can however build a function via javascript that copies that text to clipboard.
Or search for the native feature in your options to turn it off.
This is default in all the windows operating systems. when ever you select the text the blue color will occur in select area. manually we never change the color. i think this answer very usefull to you.....
I'm trying to paste text into heroku vi editor, like the code snippet from facebook tutorial, but I cant seem to figure it out.
I have tried
:"*P
:"*p
:p
etc, i'm using windows 7 for all it matters? any ideas
open the vi editor, you want to start with an empty, unnamed document
type ':set noai nosm' (without the single-quotes) (you need the ':' char)
press the enter key
press the letter i (for insert)
now use the appropriate mouse click to paste your text
type ':wq myFileName.php' (no single-quotes)
# this 'w'rites the filename and 'q'uits the editor
Now you should have a file with the code you wanted.
Incidentally, this doesn't really qualify as a programming question, in the future, use the related site, superuser.com to post this sort of question.
I hope this helps.
at first You have to copy the text to the buffer pressing yy on the line you want to copy, after that You will be able to paste it anywhere with p .
Hope it helps :)
Just select and copy normally from the webpage ..And right click at the cursor position you want to paste at in your Unix terminal..(i.e vi editor) .
It'll get pasted.