Questions tagged [text-editing]
Text editing is the process of selecting and preparing text [files].
52
questions
25
votes
8
answers
116k
views
Find and Replace several several different values all at once
I have a file with multiple instances of Text_1 and Text1 and I need to replace both those strings with Text_A and TextB respectively.
Currently I'm doing two Find and Replace functions on each ...
100
votes
10
answers
498k
views
How can I split a large file on Windows?
Is there a tool to split large text file (9 GB) into smaller files, so that I can open it and look through?
Is there anything usable from the command line that comes with Windows (XP)?
Or what's the ...
32
votes
2
answers
102k
views
How to change the text direction on Windows?
Sometimes when I'm typing, text orientation changes from LTR to RTL, but I am not able to find any shortcut to change the text direction on Windows.
How can I change the text direction inside a text ...
86
votes
4
answers
82k
views
How can I filter a file for lines containing a string in Sublime Text 2?
I want to filter a file I'm editing in Sublime Text 2 for lines contain a certain string, if possible including regular expressions.
Consider the following file:
foo bar
baz
qux
quuux baz
When ...
1
vote
1
answer
763
views
Wrapping word configuration in mac
When i am using TextWrangler and double-click a word "game" in a sentence like "game.score", the word game is selected, but the both words and dot "game.score" is selected instead in some other editor ...
62
votes
5
answers
66k
views
Ctrl+Backspace inserts a small box instead of erasing
When I press Ctrl+Backspace, sometimes a small square is inserted, instead of the entire word being erased.
The problem only happens in some text boxes; in others the shortcut works like it should.
...
46
votes
14
answers
101k
views
Convert Unix line endings to Windows
I recently moved back to Windows from Linux. I have some files with CRLFs, some with LFs and some that are mixed. Is there a utility that will help me find all my Unix-touched files and convert them ...
4
votes
3
answers
20k
views
How to search and replace a string in multiple text files (within a directory) with Windows CMD? Part 2
This is in relation to this question .
Unfortunately, PowerShell scripts are disabled on the system I am working on. I can't even use a simple (Get-Content).
I did figure out how to do change ...
4
votes
4
answers
1k
views
VERY large text files and Snow Leopard
Sometimes I need to work on EXTREMELY large text files. 200-300 megs or more.
My favorite text editor on my MacBook Pro is TextMate. However, TM chokes on very large text files. Even ones around ...
65
votes
4
answers
66k
views
How to make cut/copy/paste in GVim on Ubuntu work with Ctrl+X,Ctrl+C,Ctrl+V?
By default, the cut/copy/paste short-cuts in GVim on Ubuntu are:
Cut "+x
Copy "+y
Paste "+gP
I would like to use control key combos in GVim, like I use in Firefox and othe gnome ...
52
votes
5
answers
194k
views
Notepad++ inserting special Unicode characters in UTF-8
What's the best ways to enter special Unicode characters into a Notepad++ document? Do I have to rely on the operating system (Windows)?
Looking for a see-and-click solution.
I can bring up the ASCII ...
18
votes
6
answers
159k
views
How Can I Type A Checkmark (✓) Via Alt Code?
Presently, every time I want to check something off I have to Google "checkmark", copy the symbol from a 3rd party website, paste it into a text editor to remove formatting, and then copy ...
18
votes
4
answers
12k
views
Show/Hide function folding margin on Notepad++
Is it possible to get rid of the function folding margin on Notepad++? It seems like the sort of thing that should be in the prefs but I'm not seeing it anywhere.
14
votes
4
answers
36k
views
Selecting range of lines in Notepad ++
How do I select specific range of lines in Notepad++ quickly? I have a text file that has over 1M of lines and I need to delete some fragments from it, but selecting lines manually just takes too much ...
2
votes
2
answers
4k
views
How to remove blank lines in .txt files
I want to change a text file's format, removing all blank lines. How can I do that?
(2) 5. The function of the condenser is to:
a) vapourise the liquid refrigerant
b) change high ...
1
vote
4
answers
122
views
awk, sed, or other text processing suggestions, please
I have the following repeating pattern of text that needs to be reformatted.
Normally this should be easy, even with a standard text editor, but in this case I need to expand the information in the ...
48
votes
3
answers
19k
views
Turn Off Parenthesis Matching in Sublime Text 2
I have questions about turn off parenthesis matching. Does anyone know how to turn off parenthesis matching?
example:
When I type a (, it will automatically add ), becomes ().
It's pretty nice for ...
36
votes
3
answers
17k
views
In Sublime Text 2, how can I indent out to a straight column with multiple cursors on a ragged edge?
Suppose I've got multiple cursors along several lines, like this:
foo|
barr|
foobar|
baz|
How can I automatically push the whitespace at the end of each line out to a flat edge, like this?:
foo |...
23
votes
8
answers
13k
views
How can I justify plain text in Linux?
I'm composing a plain text (.txt) document that has left-and-right justified paragraphs. I manually add spaces, breaking words with hyphens if necessary, until the lines are uniform length. To use an ...
13
votes
5
answers
23k
views
Text / log editor with auto-refresh support [closed]
I'm looking for a text editor / log manager of some kind that will automatically refresh a file's contents when it changes.
I have a single target log file (e.g. current.log) that is overwritten ...
12
votes
5
answers
11k
views
Where's my Open-With gVim context menu option in Windows 7?
I have gVim installed. Under Vista and XP, this offered me an addition to either the object context menu of "Edit with gVim", or an addtion to the "Open With" context menu of "gVim". This would let ...
10
votes
6
answers
25k
views
What is a good, simple and free HTML editor for Windows? [closed]
Are there any good, simple and free HTML editors for Windows out there?
Something that a user with no experience can build a simple page with.
I'm looking for something like the old FrontPage ...
8
votes
3
answers
14k
views
Find repeated words in a text
One of most common typos is to repeat the same word twice, as as here.
I need an automatic procedure to remove all the repeated words in a text file.
This should not be a strange feature for a modern ...
7
votes
2
answers
57k
views
How to search and replace a string in multiple text files (within a directory) with Windows CMD?
I have multiple text files within a directory, each of which I want to replace every occurrence of the string 1 setlinewidth to 10 setlinewidth. How do I do this via Windows cmd? Please help.
5
votes
4
answers
12k
views
How to replace a list of strings by another list
I have a file which has (many) strings I'd like to replace, so I thought about using a simple command like:
sed 's/string1/string2/g' file1 > out
However, there are too many strings for that ...
5
votes
4
answers
12k
views
Delete blank lines from a text file
I am trying to delete all the blank lines in a text file. Is there a quick way to do this?
What I have
line one
line two
What I want
line one
line two
I am using Notepad++, so a solution using ...
4
votes
3
answers
9k
views
Find and replace text in a file after match of pattern only for first occurrence using sed
Let's say I have the following input file:
Server 'Test AB'
option type 'ss'
option port '1234'
option timeout '60'
Server 'Test CD'
option type 'ss'
option port '1234'
option ...
4
votes
1
answer
3k
views
Automatic text replacement in Ubuntu
So, I'm looking for a software native to gnome that provides automatic text replacement. Something similar to autohotkey would be great, though I really don't care about all that extra autohotkey ...
4
votes
1
answer
2k
views
How do I get Dash Doc App to respect indentation?
When I expand an abbreviation with Dash Doc App it starts at the cursor location in my text editor (Sublime Text), but then ignores the original placement of the cursor and the next lines begin on the ...
4
votes
5
answers
36k
views
How to split a text file into multiple text files
I have a text file called entry.txt that contains the following:
[ entry1 ]
1239 1240 1242 1391 1392 1394 1486 1487 1489 1600
1601 1603 1657 1658 1660 2075 2076 2078 2322 2323
2325 2740 2741 2743 ...
3
votes
3
answers
69k
views
Can Notepad++ automatically split a text file into multiple files?
I have a text file that contains a massive amount of words that I would like to make into a number of different text files. Specifically I need to take every 100 words in this file and make a ...
3
votes
1
answer
1k
views
Editing searchable .pdf OCR
My case is quite specific so I'll try to explain it quickly and precisely.
I have to digitalize several old paper sheets of 230mm x 268mm (~ 9" x 27,7") folded in 4 parts; you can find a quick drawn ...
3
votes
2
answers
13k
views
Exclude some matches with sed
I have a series of files with entries(namespaces in source code) like
FW.WGS.Web.HHH.Controls,
FW.WGS.Web.HHH.Email,
FW.WGS.Web.HHH.Account, etc
and some with entries
FW.WGS.Web.Controls,
...
2
votes
1
answer
299
views
Make cursor not select a text field when switch browser tabs
I started using Vimium for Google Chrome and it is great.
There is only one problem: When I cycle through my open tabs and I visit a tab like facebook, the cursor goes immediately into a textbox of a ...
2
votes
2
answers
178
views
How do I split a wrapped numeric list into several lines?
I have some text in this format all on 1 line:
1v YHWH said, Let us make man in our image, after our likeness, and God created man in his own image. 2v And God formed man from the ground, and he ...
2
votes
2
answers
7k
views
Is there any way to reverse text and *character* direction in a pure text document?
I have some text in Latin script (English transcription of Farsi) that I would like to display right-to-left in ordinary text documents (and on my iPod) – is that possible? How?
Here’s an example of ...
2
votes
1
answer
4k
views
Importing textfile with leading 0's to excel
Have a number of text files which have numbers next to names, tab delimited:
000454 Name1
005005 Name2
000643 Name3
4043 Name4
33643 Name5
I ...
2
votes
4
answers
7k
views
Cut a part from a filename
I got files named like this:
cam1(word1 word2 wordN) (24-04-2012 00-11-13).mpg
cam2(word1 word2 wordN) (24-04-2012 00-11-13).mpg
cam3(word1 word2 wordN) (24-04-2012 00-11-13).mpg
Need to cut (word1 ...
2
votes
2
answers
2k
views
Command-A doesn't select text in several Mac OS X text edit fields
I'm trying to make my Mac follow behavior I know it must have done in the past where, when one presses ⌘ + A, it will select all the text.
The problem has started recently and I think it might be ...
1
vote
2
answers
1k
views
How to remove lines that not containing any uppercase letters or lowercase letters or numbers notepad++
I want to keep only lines that contain
at least 1 uppercase letter
at least 1 lowercase letter
at least 1 number
Example:
:soTest.@1rTr
:$TEST%.TER12TB&
:-G5O6D$G%R@RS
:sbg^45re$55
:@65RR$#...
1
vote
1
answer
62
views
Copying specific field of a website in a word file with a single operation
I'd like to copy the field title of each occurences here in a word file with a single operation. Example of titles:
Bilocale piazza del Popolo, Piazza del Popolo, Roma
Trilocale via dei Banchi Vecchi,...
1
vote
6
answers
18k
views
Add text to the beginning of every other line in Notepad++
What I want to do is:
Add <title> to the beginning of lines 1, 3, 5, etc...(hundreds of lines in a notepad++ file)
Add </title> to the end of lines 1, 3, 5, etc...
Then:
Add <link>...
1
vote
6
answers
667
views
Software to store frequently used text in PC [closed]
I am a looking for a free software that can run on the task bar (near the system time) where I can store frequently used text like my full street address, paths of specific deep folders & files in ...
1
vote
3
answers
228
views
How can I send myself an email that becomes a text file on my hard drive (or on Dropbox)?
Evernote has a very helpful feature that lets me send an email to a special address and which makes that email into a new note.
I'd like to duplicate that functionality, but without being locked into ...
1
vote
2
answers
2k
views
windows need help for Large text file editing for remove duplicates - combine txt work on 50GB+
i have windows 2012
32GB RAM
I7 CPU Prossesor
1TB SSHD
i have .txt files of wordlists in lines the txt files start from 2GB to 50GB
what kind of tools or program can work in that large size/lines
to ...
0
votes
2
answers
6k
views
Visual Studio 2010: Is it possible to force editor to use ANSI rather than UTF-8?
I am having issues with some files in automated processes, specifically with batch files and sql files. Visual Studio seems to create these as UTF-8 rather than ansi and adds some kind of special ...
0
votes
1
answer
2k
views
Batch replace specific line #s in an xml with specific text (lines) from a 2nd xml file in Windows 7
First of, I'm not a Coder or Unix guy, I'm using notepad++ v6.18 on Win7, so I'd ask that you "dumb it down" for me please :)
I've noticed that on the left side of each line within a notepad++ file ...
0
votes
1
answer
165
views
Move characters between two strings to end of line
I need to move (in a text file) all the characters between ">" up to and including "_" to the end of that line.
From this:
[[[>AVA_M427014_
MAKNISRTAQMRVAIEEL
>AVB_L427D15_
...
0
votes
1
answer
3k
views
Extract multiple strings between two words in a file
I have a text file made this way:
hjkhkhkjhkh<start:"xxxxxxxxxxxx:"alt>asdsadasd<start:"yyyyyyyyyyyyyy:"alt>gfhfg
hujhyfgh<start:"zzzzzzz:"alt>...........<start:"ttttttttttt:"alt&...
0
votes
1
answer
6k
views
Using Notepad++ to view text files that also contain lower ASCII control characters
When using Notepad++ to view text files that also contain some lower ASCII control characters (such as NUL, BEL, and ACK), it shows every lower ASCII character in brackets like this:
[NUL][BEL][ACK]
...