Replace portions of text in a file. Jim Campbell jcampbell@gnome.org Daniel Neel dneelyep@gmail.com Sindhu S sindhus@live.in Ekaterina Gerasimova kittykat3756@gmail.com Shobha Tyagi tyagishobha@gmail.com Young Li li.young1618@gmail.com Zamenjaj besedilo

Urejanje besedila lahko vzame veliko časa. Za prihranek časa gedit vključuje zmožnost Zamenjaj, ki vam pomaga pri iskanju in zamenjavi delov besedila.

Zamenjava besedila v <app>gedit</app>

Open the Replace tool by clicking Menu buttonFind and Replace… or press CtrlH.

Enter the text that you wish to replace into the Find field.

Enter the new, replacement text into the Replace with field.

Once you have entered the original and replacement text, you can add extra parameters to the search. You can also choose what you want to replace:

To replace only the next match, click Replace.

Za zamenjavo vseh primerov iskanega besedila kliknite Zamenjaj vse.

Use the Replace All function with care. Replace All works on the entirety of your text file, and does not allow you to highlight portions of text where the replace function will be performed.

Več možnosti

If you wish, you can add some extra parameters to your search:

Upoštevaj velikost črk

Možnost Upoštevaj velikost črk vam omogoča navedbo ali naj bo iskanje občutljivo na velikost črk. V primeru da je ta možnost izbrana, bodo iskanja občutljiva na velikost črk. V nasprotnem primeru iskanja na velikost črk ne bodo občutljiva.

Poišči le cele besede

To možnost uporabite za iskanje določene besede brez vključevanja delčkov drugih besed. Na primer če bi iskali besedo 'in', bi beseda 'in' ustrezala, besedi 'kino' in 'malina' pa ne.

Iskanje nazaj

Ta ukaz se obnaša enako kot Poišči nazaj. V primeru na želite stopati med rezultati iskanja od začetka proti koncu, izberite to možnost.

Prelomi vrstice

V primeru da je možnost prelomi vrstice omogočena, bo gedit ponovno zagnal dejanje išči/zamenjaj na vrhu datoteke po tem ko bo dosegel dno datoteke. To zagotovi, da je dejanje išči/zamenjaj izvedeno na vaši celotni datoteki.

Using escape sequences

You can use escape sequences to search for line breaks, carriage returns, and tabs.

\n

Newline

\r

Carriage return

\t

Tab

If you actually want to search for a \ (backslash) or one of the escape sequences in the text, you need to escape the backslash with an extra backslash. For example, to search for \, you need to enter \\ into the search or replace field. You can search for escape sequences in the same way: to search for or replace with a \n, use the \\n term.