I would like to know if it's possible to use shortcuts to paste user defined text in the atom-editor. And if possible I'd like to know how.
An example would be, pressing Alt-Shift-F would paste \frac{}{} into the editor.
This is a sample that insert html non breakable space with shift+space.
In your init script:
atom.commands.add 'atom-text-editor', 'custom:html-hard-space',->
editor = atom.workspace.getActiveTextEditor()
editor.insertText(' ')
In your keynmap:
'atom-text-editor:not([mini])':
'shift-space': 'custom:html-hard-space'
Related
I usually want to find and replace all, but it looks like it has been set to current/highlighted cell only (https://github.com/jupyter/notebook/pull/2131). jupyter also doesn't remember the option after the dialog goes away. Is there a way to change this behavior? Thanks.
Select all the cells where you want to perform Find/Replace
Shift + Arrow key Down or Up
and then,
Menu: Edit -> Find and Replace
Press ctrl+shift+F.
Then type "find and replace".
In order to rename a variable in all cells, click on the arrow as shown in the image
Steps
1.Go to edit -> Find and Replace -> click on it
See the highlighted option. Use this to replace in complete notebook.
I just had to do it urgently so shut down the notebook kernel did it from the terminal with sed like this:
sed -i "" 's/oldword/newword/g' mynotebook.ipynb
That was on a mac which am using at the moment, but if you do it on ordinary linux the "" should be left out ie
sed -i 's/oldword/newword/g' mynotebook.ipynb
First time I ever needed to do such a thing in years but if it happened more often would be good if it could be done from the browser.
First select all the cells (Esc->Ctrl+Shift+arrow_down_key).
Then Edit-> Find and Replace.
If only in one cell, then use the shortcut 'F' key.
Just do ctr+a outside the cell thats all:-
It will select all the cells and perform find and replace
Can i make look like root#arch$.
Instead if [root#arch~],
I don't like square braces.
Help me if you know i want to remove square[] bracess.
The prompt you're talking about is named PS1, and you can customise its appearance in your .bashrc file.
So edit that file and add something like the following:
PS1="\\u#\\h:\\w"
The next time you log in you should have your new appearance.
PS1="\[\e[1;31m\]\u\[\e[0;15m\]#\\h \\w "
Insert the above code in '~/.bashrc' file, whenever you open a terminal '~/.bashrc' file will be executed hence you get custom prompt.
Tinker with numbers above to get desired colors.
I have a textpad file that has rows of text. For e.g.
Cat: Meaning - animal. The cat ran up the house
Rat: Meaning- rodent. The rat lives in the borough and feeds on leftovers
Word 3: Description
Word 4: Description
I have many such record in my file. I want to insert a line break at the end of every record for proper presentation. Doing it manually is tedious. Please help if you know an automated process to insert line break.
You can quickly do this by using a feature called "Regular Expressions" to find and add empty lines.
Open up the Find/Replace (Search menu > Replace)
In the "Find what" field, type the following: (^.+$)\n(^.+$)
In the "Replace with" field, type the following: \1\n\n\2
Tick the "Regular expression" checkbox
Click the Replace All button at least twice, but perhaps 3 times, until you get the message Cannot find the Regular Expression
Untick the "Regular expression" checkbox
Close the Replace dialog
Confirm the file is formatted as you are expecting
Save the file.
You can write a simple C# prgram that uses a loop that adds this code after every line :
But first add the namespace using System.Enviorment
Enviorment.NewLine;
If you have any more trouble i'll help with some code to get started
Open up the Find/Replace (Search menu > Replace)
In the "Find what" field, type the following so that the replace occurs at the end of each line: $
In the "Replace with" field, type the following. Note each 'n' represents a <return>. In this instance, I added a return at the end of a SQL statement, the word 'GO' on the next line and another <return>: \n\GO\n
Started with text file containing:
select * from <tablename>
select * from <tablename>
Ended with text file containing:
select * from <tablename
GO
select * from <tablename>
GO
Hope that helps.
from your text it is difficult to understand what you are intending to do. I'll give you some questions. The answers will help others to help you.
Do you really mean textpad as the product from company helios in UK or do you use this word as a general word for a class of tools (like notepad - but there is a general definition AND the tool as part of Windows).
Your file hase line breaks yet. You don't see them, but in the file itself they are present (in Unix systems line feed (hex code 0A) or in the windows world carriage return followed by line feed (hex code 0D 0A)).
Or would you like to publish your text in HTML? So you have to put the necessary tags around each line like paragraph, line break, list item etc.?
When I mark a string within a php file and then type a ', ", ( or [, then the marked text will not be replaced by the typed in character. Instead it well be enclosed by '…', "…", …
I know this is a feature, of course. But I want to turn off this feature because I don't like it. Can you tell me how?
Window > Preferences > Aptana Studio > Editors - Deselect 'Wrap selected text with matching characters'.
This used to drive me crazy too, but it has grown on me.
I Have Just Gone Through to this Sphinx4 Speech Recognition,I had implemented it with the helloworld demo of sphinx4,
Now What is Want is To create A dynamic dictionary For the text file given as input,
Right now What i need to do is just create a text file and uplaod in IMTOOLS and then They provide me a .Dict File.
But My requirement is like as the user Type any text in textbox and click a convert button then it automatically convert that word in to WSJ Dcitionary like prounounciation Words,\ E.G. User Type in textbox with the word he want to recognize Let say its a " ANKIT" then it automaticaly convert that word in to wsj dicionary like format as "AE NG K AH T" . please Anyone Can help me Out?or Any suggestion?i want to do That way...hope i explained in good way that you can understand in proper way and give me reply.. "
If any one Providing this service with the payment.then even its ok...
Here is an easy website that allows you to do that to create a .dic file: http://www.speech.cs.cmu.edu/tools/lmtool-new.html . Just upload a .txt file with what you would like to add to the dictionary. You can do this multiple times if you have more than a few thousand sentences and then converge them into one file.