# Manual Pluma

2015-2021 MATE Documentation Project
2007 GNOME Documentation Project
2002 2003 2004 Sun Microsystems
2000 Eric Baudais
Projek Dokumentasi MATE Projek Dokumentasi GNOME

Hak diberikan untuk menyalin, mendistribusikan, dan/atau mengubah dokumen ini di bawah persyaratan GNU Free Documentation License (GFDL, Lisensi Dokumentasi Bebas GNU), Versi 1.1 atau sebarang versi setelahnya yang dipublikasikan oleh Free Software Foundation tanpa Invariant Section, tanpa Front-Cover Texts, dan tanpa Back-Cover Texts. Anda dapat menemukan salinan dari GFDL pada taut ini atau di dalam berkas COPYING-DOCS yang didistribusikan bersama manual ini.

Manual ini adalah bagian dari suatu koleksi manual MATE yang disebarkan di bawah GDFL. Bila Anda ingin menyebarkan manual ini secara terpisah dari koleksi, Anda dapat melakukannya dengan menambahkan salinan lisensi ke manual, sebagaimana dijelaskan di bagian 6 dari lisensi.

Banyak nama yang dipakai oleh perusahaan-perusahaan untuk membedakan produk dan layanan mereka diklaim sebagai merek dagang. Ketika nama-nama tersebut muncul di dalam sebarang dokumentasi MATE, and anggota Projek Dokumentasi MATE disadarkan atas merek dagang tersebut, maka nama-nama akan ditulis dalam huruf besar atau huruf awal huruf besar.

DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED UNDER THE TERMS OF THE GNU FREE DOCUMENTATION LICENSE WITH THE FURTHER UNDERSTANDING THAT:

1. DOCUMENT IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS FREE OF DEFECTS MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE OF THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL WRITER, AUTHOR OR ANY CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER; AND

2. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE AUTHOR, INITIAL WRITER, ANY CONTRIBUTOR, OR ANY DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION OF THE DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR LOSSES ARISING OUT OF OR RELATING TO USE OF THE DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES.

Umpan balik

To report a bug or make a suggestion regarding the pluma application or this manual, follow the directions in the MATE Feedback Page.

Projek Dokumentasi MATE
Desktop MATE
Joachim Noreiko
Projek Dokumentasi GNOME
GNOME
Hal Canary Menambahkan Tabel Tombol Pintas
Tim Dokumentasi Sistem Desktop Sun Java
Sun Microsystems
gdocteam@sun.com
Eric Baudais
Projek Dokumentasi GNOME
baudais@okstate.edu
Baris Cicek Memberikan informasi dari revisi sebelumnya dari aplikasi pluma.
George Ajit Memberikan informasi tentang plugin.
1.0
2000

Eric Baudais baudais@okstate.edu

Projek Dokumentasi GNOME

2.0
Maret 2002

Tim Dokumentasi GNOME Sun

Projek Dokumentasi GNOME

2.1
Juni 2002

Tim Dokumentasi GNOME Sun

Projek Dokumentasi GNOME

2.2
Agustus 2002

Tim Dokumentasi GNOME Sun

Projek Dokumentasi GNOME

2.3
September 2002

Tim Dokumentasi GNOME Sun

Projek Dokumentasi GNOME

2.4
Januari 2003

Tim Dokumentasi GNOME Sun

Projek Dokumentasi GNOME

2.5
Maret 2003

Tim Dokumentasi GNOME Sun

Projek Dokumentasi GNOME

2.6
September 2003

Tim Dokumentasi GNOME Sun

Projek Dokumentasi GNOME

2.7
Maret 2004

Tim Dokumentasi GNOME Sun

Projek Dokumentasi GNOME

2.8
Juli 2015

Tim Dokumentasi Sistem Desktop Sun Java

Projek Dokumentasi GNOME

2.9
Juli 2006

Tim Dokumentasi GNOME

Projek Dokumentasi GNOME

3.0
Juli 2015

Tim Dokumentasi MATE

Projek Dokumentasi MATE

Manual ini menjelaskan versi 1.10 dari pluma.
Kukuh Syafaat syafaatkukuh@gmail.com
2017. Kukuh Syafaat
Andika Triwidada andika@gmail.com
2022. Andika Triwidada

## Pengantar

Aplikasi pluma memungkinkan Anda untuk membuat dan menyunting berkas teks.

Tujuan dari pluma adalah untuk menjadi penyunting teks yang sederhana dan mudah digunakan. Fitur yang lebih kuat dapat diaktifkan dengan plugin yang berbeda, memungkinkan berbagai tugas yang terkait dengan penyuntingan teks.

## Mulai

### Memulai pluma

Anda dapat memulai pluma dengan cara berikut:

Menu Aplikasi

  Pilih Aksesoris Pluma Penyunting Teks .

Baris perintah

  Menjalankan perintah berikut: `pluma`

Secara baku, ketika Anda membuka dokumen teks di pengelola berkas, pluma akan mulai, dan menampilkan dokumen.

### Jendela pluma

Saat Anda memulai pluma, jendela berikut ditampilkan:

### Jendela pluma

Menunjukkan jendela utama pluma.

Jendela pluma berisi elemen-elemen berikut:

Bilah menu

  Menu pada bilah menu berisi semua perintah yang Anda butuhkan untuk bekerja dengan berkas di pluma.

Bilah Alat

  Bilah alat berisi kumpulan perintah yang dapat Anda akses dari bilah menu.

Area tampilan

  Area tampilan berisi teks berkas yang Anda sunting.

Bilah status

  Bilah status menampilkan informasi tentang aktivitas pluma saat ini dan informasi kontekstual tentang item menu. Bilah status juga menampilkan informasi berikut:

  - Posisi kursor: nomor baris dan nomor kolom tempat kursor berada.

  - Mode sunting: Jika penyunting dalam mode sisip, bilah status berisi teks INS. Jika penyunting dalam mode timpa, bilah status berisi teks OVR. Tekan tombol Insert untuk mengubah mode sunting.

Panel Sisi

  Panel samping menampilkan daftar dokumen yang terbuka, dan informasi lainnya tergantung pada plugin mana yang diaktifkan.

  Secara baku, panel samping tidak ditampilkan. Untuk memperlihatkannya, pilih Tampilan Panel Samping .

Panel Bawah

  Panel bawah digunakan oleh alat pemrograman seperti plugin Konsol Python untuk menampilkan keluaran.

  Secara baku, panel bawah tidak ditampilkan. Untuk memperlihatkannya, pilih Tampilan Panel Bawah.

Saat Anda mengklik kanan di jendela pluma, aplikasi menampilkan menu popup. Menu popup berisi perintah penyuntingan teks yang paling umum.

Seperti aplikasi MATE lainnya, tindakan dalam pluma dapat dilakukan dengan beberapa cara: dengan menu, dengan bilah alat, atau dengan tombol pintas. Tombol pintas yang umum untuk semua aplikasi tercantum dalam Panduan Pengguna.

### Menjalankan pluma dari Baris Perintah

Anda dapat menjalankan pluma dari baris perintah dan membuka satu berkas atau beberapa berkas. Untuk membuka beberapa berkas dari baris perintah, ketik perintah berikut, lalu tekan Return:

`pluma file1.txt file2.txt file3.txt`

Atau, Anda dapat menentukan URI alih-alih nama berkas.

Lihat halaman man pluma 1 untuk informasi lebih lanjut tentang cara menjalankan pluma dari baris perintah.

## Bekerja dengan Berkas

### Membuat Dokumen Baru

Untuk membuat dokumen baru, pilih Berkas Baru . Aplikasi ini menampilkan dokumen kosong baru di jendela pluma.

### Membuka Berkas

Untuk membuka berkas, pilih Berkas Buka untuk menampilkan dialog Buka Berkas. Pilih berkas yang ingin Anda buka, lalu klik Buka. Berkas ditampilkan di jendela pluma.

Aplikasi ini mencatat path dan nama berkas dari lima berkas terbaru yang Anda sunting dan menampilkan berkas sebagai item menu pada menu Berkas. Anda juga dapat mengklik ikon

Memperlihatkan ikon menu Berkas Terbaru.
pada bilah alat untuk menampilkan daftar berkas terbaru.

Anda dapat membuka banyak berkas di pluma. Aplikasi menambahkan tab untuk setiap berkas yang terbuka ke jendela. Untuk informasi lebih lanjut tentang ini lihat .

You can type the file location on Open File dialog. To switch between location entry and breadcrumbs, press Ctrl l, ., ~ or /.

### Menyimpan Berkas

Anda dapat menyimpan berkas dengan cara berikut:

- Untuk menyimpan perubahan ke berkas yang sudah ada, pilih Berkas Simpan .

- Untuk menyimpan berkas baru atau menyimpan berkas yang sudah ada di bawah nama berkas baru, pilih Berkas Simpan Sebagai . Masukkan nama untuk berkas dalam dialog Simpan Sebagai, lalu klik Simpan.

- Untuk menyimpan semua berkas yang saat ini terbuka di pluma, pilih Dokumen Simpan Semua .

Untuk menutup semua berkas yang saat ini terbuka di pluma, pilih Dokumen Tutup Semua .

### Bekerja Dengan Tab

Ketika lebih dari satu berkas terbuka, pluma menunjukkan tab untuk setiap dokumen di atas area tampilan. Untuk beralih ke dokumen lain, klik tabnya.

Untuk memindahkan dokumen ke jendela pluma lain, seret tab yang sesuai dengan berkas ke jendela tempat Anda ingin memindahkannya.

Untuk memindahkan dokumen ke jendela pluma baru, seret tabnya ke desktop, atau pilih Dokumen Pindahkan ke Jendela Baru .

## Bekerja dengan Teks

### Menyunting Teks

Anda dapat menyunting teks berkas dengan cara berikut:

- Ketik teks baru dari papan ketik. Kursor penyisipan yang berkedip menandai titik di mana teks baru muncul. Untuk mengubah ini, gunakan tombol panah pada papan ketik atau klik dengan tetikus.

- Untuk menyalin teks yang dipilih ke papan klip, pilih Sunting Salin .

- Untuk menghapus teks yang dipilih dari berkas dan memindahkan teks yang dipilih ke papan klip, pilih Sunting Potong .

- Untuk menghapus teks yang dipilih secara permanen dari berkas, pilih Sunting Hapus .

- Untuk menyisipkan konten papan klip di posisi kursor, pilih Sunting Tempel . Anda harus memotong atau menyalin teks sebelum Anda dapat menempelkan teks ke dalam berkas, baik dari pluma atau aplikasi lain.

- Untuk memilih semua teks dalam berkas, pilih Sunting Pilih Semua .

### Membatalkan dan Mengulang Perubahan

Untuk membatalkan perubahan yang telah Anda buat, pilih Sunting Batalkan . Untuk membalikkan tindakan ini, pilih Sunting Ulangi .

## Mencari dan Mengganti

Dalam pluma, ada dua cara untuk mencari teks. Anda bisa menggunakan dialog Cari untuk mencari bagian teks tertentu, atau Pencarian Inkremental untuk menyorot teks yang cocok saat Anda mengetiknya.

### Mencari teks

Untuk mencari string teks pada berkas, lakukan langkah-langkah berikut:

1. Pilih Cari Temukan untuk menampilkan dialog Temukan.

2. Ketik string yang ingin Anda temukan di bidang Cari. Anda dapat menyertakan karakter khusus seperti baris atau tab baru: lihat .

3. Klik Temukan untuk mencari berkas bagi kemunculan pertama string setelah posisi kursor Anda saat ini. Jika pluma menemukan string, aplikasi memilih kemunculan pertama string. Kemunculan lain dari string disorot.

4. Untuk menemukan kemunculan string berikutnya, klik Temukan atau pilih Cari Temukan Berikutnya. Untuk menemukan kemunculan teks sebelumnya, pilih Cari Temukan Sebelumnya .

Setelah Anda menutup dialog Temukan, Anda masih bisa memindahkan pilihan ke kemunculan teks lainnya dengan memilih Cari Temukan Berikutnya dan Cari Temukan Sebelumnya .

Untuk menghapus penyorotan dari teks, pilih Cari Bersihkan Penyorotan .

Lihat pcrepattern 3 untuk informasi lebih lanjut tentang sintaks dan semantik ekspresi reguler yang didukung pada dialog Temukan.

### Pencarian Inkremental

Pencarian inkremental menyoroti teks yang cocok dalam dokumen saat Anda mengetiknya huruf demi huruf. (Ini mirip dengan fitur pencarian di beberapa peramban web.)

Untuk memulai pencarian inkremental, pilih Cari Pencarian Inkremental . Kotak pencarian muncul di bagian atas area tampilan.

Mulailah mengetik, dan teks yang cocok akan disorot dalam dokumen. Contoh pertama setelah posisi kursor juga dipilih.

Untuk memajukan pilihan ke kecocokan berikutnya sambil tetap membuka kotak pencarian inkremental, tekan Ctrl G. Tekan Ctrl Shift G untuk kembali ke kecocokan sebelumnya.

Anda juga dapat menggunakan tombol panah atas dan bawah atau roda tetikus untuk memindahkan pilihan di antara kecocokan.

### Mengganti Teks

Untuk mencari string pada berkas, dan mengganti string dengan string alternatif, lakukan langkah-langkah berikut:

1. Pilih Cari Ganti untuk menampilkan dialog Ganti.

2. Ketik string yang ingin Anda temukan, di bidang Cari. Anda dapat menyertakan karakter khusus seperti baris atau tab baru: lihat .

3. Ketik string yang ingin Anda gunakan untuk mengganti string yang Anda temukan, di bidang Ganti dengan.

Untuk memeriksa setiap kemunculan string sebelum menggantinya, klik Temukan. Jika pluma menemukan string, aplikasi akan memilih string. Klik Ganti untuk mengganti kemunculan string yang dipilih. Untuk menemukan kemunculan string berikutnya, klik Temukan lagi.

Untuk mengganti semua kemunculan string di seluruh dokumen, klik Ganti Semua.

### Opsi Cari dan Ganti

The Find dialog and the Replace dialog both have the following options:

- Select the Match case option to only find occurrences of the string that match the case of the text that you type. For example, with Match case selected, "TEXT" will not match "text".

- Select the Match entire word only option to only find occurrences of the string that match the entire words of the text that you type. For example, with Match entire word only selected, "text" will not match "texture".

- Select the Search backwards option to search backwards towards the beginning of the document.

- Select the Wrap around option to search to one end of the document and then continue the search from the other end of the file.

### Karakter Khusus

You can include the following escape sequences in the text to find or replace to represent special characters:

`\n`

  Specifies a new line.

`\t`

  Specifies a tab character.

`\r`

  Specifies a carriage return.

`\\`

  The backslash character itself must be escaped if it is being searched for. For example, if you are looking for the "`\n`" literal, you will have to type "\\n" in the Search for field. Or if you are looking for a sequence of backslashes, you will have to double the number of searched backslashes.

### Positioning the Cursor on a Specific Line

To position the cursor on a specific line in the current file, choose Search Go to Line . The line number box appears at the top of the display area.

Begin typing the number of the line that you want to move the cursor to and the document will scroll to the specified line.

To dismiss the box and move the cursor to the specified line, press Return.

## Pencetakan

### Mengatur Opsi Halaman

To set the page options, choose File Page Setup to display the Page Setup dialog.

The Page Setup dialog enables you to specify the following print options:

#### General Tabbed Section

Print syntax highlighting

  Select this option to print syntax highlighting. For more information about syntax highlighting, see .

Cetak header halaman

  Select this option to include a header on each page that you print. You cannot configure the header.

Nomor Baris

  Select the Print line numbers option to include line numbers when you print a file.

  Use the Number every ... lines spin box to specify how often to print the line numbers, for example every 5 lines, every 10 lines, and so on.

Text Wrapping

  Select the Enable text wrapping option to wrap text onto the next line, at a character level, when you print a file. The application counts wrapped lines as one line for line numbering purposes.

  Select the Do not split words over two lines option to wrap text onto the next line, at a word level, when you print a file.

#### Fonta

Badan

  Click on this button to select the font used to print the body text of a file.

Nomor baris

  Click on this button to select the font used to print line numbers.

Headers and footers

  Click on this button to select the font to use to print the headers and footers in a file.

To reset the fonts to the default fonts for printing a file from pluma, click Restore Default Fonts.

### Mencetak suatu Dokumen

You can use pluma to perform the following print operations:

- Print a document to a printer.

- Print the output of the print command to a file.

If you print to a file, pluma sends the output of the file to a pre-press format file. The most common pre-press formats are PostScript and Portable Document Format (PDF).

To preview the pages that you want to print, choose File Print Preview .

To print the current file to a printer or a file, choose File Print to display the Print dialog.

The Print dialog enables you to specify the following print options:

#### Job Tabbed Section

Rentang cetak

  Select one of the following options to determine how many pages to print:

  - Semua

    Select this option to print all the pages in the file.

  - Lines

    Select this option to print the specified lines only. Use the From and To spin boxes to specify the line range.

  - Pilihan

    Select this option to print the selected text only. This option is only available if you select text.

Salinan

  Use the Number of copies spin box to specify the number of copies of the file that you want to print.

  If you print multiple copies of the file, select the Collate option to collate the printed copies.

#### Printer Tabbed Section

Pencetak

  Use this drop-down list to select the printer to which you want to print the file.

Pengaturan

  Use this drop-down list to select the printer settings.

  To configure the printer, click Configure. For example, you can enable or disable duplex printing, or schedule delayed printing, if this functionality is supported by the printer.

Lokasi

  Use this drop-down list to select one of the following print destinations:

  CUPS

    Mencetak berkas ke pencetak CUPS.

    If the selected printer is a CUPS printer, CUPS is the only entry in this drop-down list.

  lpr

    Print the file to a printer.

  Berkas

    Print the file to a PostScript file.

    Click Save As to display a dialog where you specify the name and location of the PostScript file.

  Ubahan

    Use the specified command to print the file.

    Type the name of the command in the text box. Include all command-line arguments.

State

  This functionality is not supported in this version of pluma.

Jenis

  This functionality is not supported in this version of pluma.

Komentar

  This functionality is not supported in this version of pluma.

#### Paper Tabbed Section

Ukuran kertas

  Use this drop-down list to select the size of the paper to which you want to print the file.

Lebar

  Use this spin box to specify the width of the paper. Use the adjacent drop-down list to change the measurement unit.

Tinggi

  Use this spin box to specify the height of the paper.

Feed orientation

  Use this drop-down list to select the orientation of the paper in the printer.

Orientasi halaman

  Use this drop-down list to select the page orientation.

Tata letak

  Use this drop-down list to select the page layout. A preview of each layout that you select is displayed in the Preview area.

Baki kertas

  Use this drop-down list to select the paper tray.

## Fitur Pemrograman

Several of pluma's features for programming are provided with plugins. For example, the Tag List plugin provides a list of commonly-used tags for different markup languages: see .

### Penandaan Sintaksis

Syntax highlighting makes source code easier to read by showing different parts of the text in different colors.

pluma chooses an appropriate syntax highlighting mode based on a document's type. To override the syntax highlighting mode, choose View Highlight Mode , then choose one of the following menu items:

Normal

  Do not display any syntax highlighting.

Sumber

  Display syntax highlighting to edit source code. Use the Sources submenu to select the source code type.

Markup

  Display syntax highlighting to edit markup code. Use the Markup submenu to select the markup code type.

Skrip

  Display syntax highlighting to edit script code. Use the Scripts submenu to select the script code type.

Lainnya

  Display syntax highlighting to edit other types of code. Use the Others submenu to select the code type.

### Piping the Output of a Command to a File

You can use pluma to pipe the output of a command to a text file. For example, to pipe the output of an `ls` command to a text file, type `ls | pluma`, then press Return.

The output of the `ls` command is displayed in a new text file in the pluma window.

Alternatively, you can use the External tools plugin to pipe command output to the current file.

## Tombol Pintasan

Use shortcut keys to perform common tasks more quickly than with the mouse and menus. The following tables list all of pluma's shortcut keys.

For more on shortcut keys, see the Desktop User Guide.

#### Tab

Shortcuts for tabs:

Tombol Pintas | Perintah
--- | ---
Ctrl + Alt + PageUp | Switches to the next tab to the left.
Ctrl + Alt + PageDown | Switches to the next tab to the right.
Ctrl + W | Close tab.
Ctrl + Shift + L | Save all tabs.
Ctrl + Shift + W | Close all tabs.
Alt + n | Jump to nth tab.

#### Berkas

Shortcuts for working with files:

Tombol Pintas | Perintah
--- | ---
Ctrl + N | Create a new document.
Ctrl + O | Membuka sebuah dokumen.
Ctrl + S | Simpan dokumen kini ke disk.
Ctrl + Shift + S | Save the current document with a new filename.
Ctrl + P | Mencetak dokumen saat ini.
Ctrl + Shift + P | Print preview.
Ctrl + W | Close the current document.
Ctrl + Q | Quit Pluma.

#### Sunting

Shortcuts for editing documents:

Tombol Pintas | Perintah
--- | ---
Ctrl + Z | Tak jadikan aksi terakhir.
Ctrl + Shift + Z | Redo the last undone action .
Ctrl + X | Memotong teks atau wilayah yang dipilih dan menempatkannya pada papan klip.
Ctrl + C | Menyalin teks atau wilayah yang dipilih ke papan klip.
Ctrl + V | Tempelkan isi papan klip.
Ctrl + A | Pilih semua.
Ctrl + D | Menghapus baris saat ini.
Ctrl + U | Change case to uppercase.
Ctrl + L | Change case to lowercase.
Alt + U | Toggle case of each character.
Alt + L | Capitalize each word.
Alt + Naik | Move the selected line up one line.
Alt + Turun | Move the selected line down one line.
Tab | Increase indent of the selected lines.
Shift + Tab | Decrease indent of the selected lines.

#### Tampilan

Shortcuts for the current view:

Tombol Pintas | Perintah
--- | ---
Ctrl + Y | Show/hide line numbers.

#### Panel

Pintasan untuk memperlihatkan dan menyembunyikan panel:

Tombol Pintas | Perintah
--- | ---
F9 | Tampilkan/sembunyikan panel samping.
Ctrl + F9 | Tampilkan/sembunyikan panel bawah.

#### Pencarian

Pintasan untuk mencari:

Tombol Pintas | Perintah
--- | ---
Ctrl + F | Mencari string.
Ctrl + G | Find the next instance of the string.
Ctrl + Shift + G | Find the previous instance of the string.
Ctrl + K | Pencarian interaktif.
Ctrl + H | Cari dan ganti.
Ctrl + Shift + K | Clear highlight.
Ctrl + I | Lompat ke baris.

#### Perkakas

Pintasan untuk alat:

Tombol Pintas | Perintah
--- | ---
Shift + F7 | Periksa ejaan (dengan plugin).
Alt + F12 | Remove trailing spaces (with plugin).
Ctrl + T | Indentasi (dengan plugin).
Ctrl + Shift + T | Hapus Inden (dengan plugin).
F8 | Run "make" in current directory (with plugin).
Ctrl + Shift + D | Directory listing (with plugin).

#### Bantuan

Pintasan untuk bantuan:

Tombol Pintas | Perintah
--- | ---
F1 | Open pluma's user manual.

## Preferensi

To configure pluma, choose Edit Preferences . The Preferences dialog contains the following categories:

### View Preferences

Text Wrapping

  Select the Enable text wrapping option to have long lines of text flow into paragraphs instead of running off the edge of the text window. This avoids having to scroll horizontally

  Select the Do not split words over two lines option to have the text wrapping option preserve whole words when flowing text to the next line. This makes text easier to read.

Nomor Baris

  Select the Display line numbers option to display line numbers on the left side of the pluma window.

Current Line

  Select the Highlight current line option to highlight the line where the cursor is placed.

Right Margin

  Select the Display right margin option to display a vertical line that indicates the right margin.

  Use the Right margin at column spin box to specify the location of the vertical line.

Bracket Matching

  Select the Highlight matching bracket option to highlight the corresponding bracket when the cursor is positioned on a bracket character.

### Preferensi Penyunting

Tab

  Use the Tab width spin box to specify the width of the space that pluma inserts when you press the Tab key.

  Select the Insert spaces instead of tabs option to specify that pluma inserts spaces instead of a tab character when you press the Tab key.

Auto Indentation

  Select the Enable auto indentation option to specify that the next line starts at the indentation level of the current line.

File Saving

  Select the Create a backup copy of files before saving option to create a backup copy of a file each time you save the file. The backup copy of the file contains a ~ at the end of the filename.

  Select the Autosave files every ... minutes option to automatically save the current file at regular intervals. Use the spin box to specify how often you want to save the file.

### Font & Colors Preferences

Fonta

  Select the Use default theme font option to use the default system font for the text in the pluma text window.

  The Editor font field displays the font that pluma uses to display text. Click on the button to specify the font type, style, and size to use for text.

Color Scheme

  You can choose a color scheme from the list of color schemes. By default, the following color schemes are installed:

  Klasik

    Classic color scheme based on the gvim color scheme.

  Cobalt

    Blue based color scheme.

  Kate

    Color scheme used in the Kate text editor.

  Oblivion

    Dark color scheme using the Tango color palette.

  Tango

    Color scheme using the Tango color scheme.

  You can add a new color scheme by clicking on Add..., and selecting a color scheme file

  You can remove the selected color scheme by clicking on Remove

### Preferensi Plugin

Plugins add extra features to pluma. For more information on plugins and how to use the built-in plugins, see .

#### Mengaktifkan Plugin

To enable a pluma plugin, perform the following steps:

1. Choose Edit Preferences .

2. Select the Plugins tab.

3. Select the check box next to the name of the plugin that you want to enable.

4. Click Close to close the Preferences dialog.

#### Menonaktifkan Plugin

A plugin remains enabled when you quit pluma.

To disable a pluma plugin, perform the following steps:

1. Choose Edit Preferences .

2. Select the Plugins tab.

3. Deselect the check box next to the name of the plugin that you want to disable.

4. Click Close to close the Preferences dialog.

## Plugin

### Bekerja dengan Plugin

You can add extra features to pluma by enabling plugins. A plugin is a supplementary program that enhances the functionality of an application. Plugins add new items to the pluma menus for the new features they provide.

Several plugins come built-in with pluma.

To enable and disable plugins, or see which plugins are currently enabled, use the .

The following plugins come built-in with pluma:

- shows the number of lines, words, and characters in the document.

- allows you to execute external commands from pluma.

- allows you to browse your files and folders in the side pane.

- adds or removes indentation from the selected lines.

- adds the current date and time into a document.

- allows you to set editing preferences for individual documents, and supports Emacs, Kate and Vim-style modelines.

- allows you to run commands in the python programming language.

- allows you to strip trailing whitespaces in your document after saving.

- allows you to store frequently-used pieces of text and insert them quickly into a document.

- arranges selected lines of text into alphabetical order.

- corrects the spelling in the selected text, or marks errors automatically in the document.

- lets you insert commonly-used tags for HTML and other languages from a list in the side pane.

For more information on creating plugins, see .

### Document Statistics Plugin

The Document Statistics plugin counts the number of lines, words, characters with spaces, characters without spaces, and bytes in the current file. The plugin displays the results in a Document Statistics dialog. To use the Document Statistics plugin, perform the following steps:

1. Choose Tools Document Statistics to display the Document Statistics dialog. The Document Statistics dialog displays the following information about the file:

   - Number of lines in the current document.

   - Number of words in the current document.

   - Number of characters, including spaces, in the current document.

   - Number of characters, not including spaces, in the current document.

   - Number of bytes in the current document.

2. You can continue to update the pluma file while the Document Statistics dialog is open. To refresh the contents of the Document Statistics dialog, click Update.

### External Tools Plugin

The External Tools plugin allows you to execute external commands from pluma. You can pipe some content into a command and exploit its output (for example, sed), or launch a predefined command (for example, make).

Use the External Tools Manager to create and edit commands. To run an external command, choose it from the Tools menu.

#### Built-in Commands

The following commands are provided with the External Tools plugin:

Bangun

  Runs make in the current document's directory.

Directory Listing

  Lists the contents of the current document's directory in a new document.

Environment Variables

  Displays the environment variables list in the bottom pane.

Grep

  Searches for a term in all files in the current document directory, using pattern matching. Results are shown in the bottom pane.

Remove Trailing Spaces

  Removes all spaces from the end of lines in the document.

#### Defining a Command

To add an external command, choose Tools External Tools .

In the External Tools Manager window, click New. You can specify the following details for the new command:

Keterangan

  This description is shown in the statusbar when the menu command is chosen.

Accelerator

  Enter a keyboard shortcut for the command.

Perintah

  The actual commands to be run. Several pluma environment variables can be used to pass content to these commands: see .

Masukan

  The content to give to the commands (as stdin): the entire text of the current document, the current selection, line, or word.

Keluaran

  What to do with the output of the commands: display in the bottom pane, put in a new document, or place in the current document, at the end, at the cursor position, or replacing the selection or the entire document.

Applicability

  Determines which sort of documents can be affected by the command, for example whether saved or not, and local or remote.

#### Menyunting dan Menghapus Alat

To edit a tool, select it in the list and make changes to its properties.

To rename a tool, click it again in the list.

To restore a built-in tool that you have changed, press Revert.

To remove a tool, select it in the list and press Remove. You can not remove built-in tools, only those you have created yourself.

#### Variabel

You can use the following variables in the Commands field of the command definition:

- PLUMA_CURRENT_DOCUMENT_URI

- PLUMA_CURRENT_DOCUMENT_NAME

- PLUMA_CURRENT_DOCUMENT_SCHEME

- PLUMA_CURRENT_DOCUMENT_PATH

- PLUMA_CURRENT_DOCUMENT_DIR

- PLUMA_DOCUMENTS_URI

- PLUMA_DOCUMENTS_PATH

### File Browser Pane Plugin

The File Browser Pane Plugin shows your files and folders in the side pane, allowing you to quickly open files.

To view the File Browser, choose View Side Pane and then click on the tab showing the File Browser icon at the bottom of the side pane.

#### Menjelajahi Berkas Anda

The File Browser tab initially shows your file manager bookmarks. To browse the contents of any item, double-click it.

To show a parent folder, choose from the drop-down list, or press the up arrow on the File Browser's toolbar.

To show the folder that contains the document you are currently working on, right-click in the file list and choose Set root to active document.

#### Membuka Berkas

To open a file in pluma, double-click it in the file list.

#### Membuat Berkas dan Folder

To create a new, empty text file in the current folder shown in the browser, right-click in the file list and choose New File.

To create a new folder in the current folder shown in the browser, right-click in the file list and choose New Folder.

### Indent Lines Plugin

The Indent Lines plugin adds or removes space from the beginning of lines of text.

To indent or unindent text, perform the following steps:

1. Select the lines that you want to indent. To indent or unindent a single line, place the cursor anywhere on that line.

2. - To indent the text, choose Edit Indent .

   - To remove the indentation, choose Edit Unindent .

The amount of space used, and whether tab character or space characters are used, depends on the Tab Stops settings in the Editor Preferences: see .

### Insert Date/Time Plugin

The Insert Date/Time plugin inserts the current date and time into a document. To use the Insert Date/Time plugin, perform the following steps:

1. Choose Edit Insert Date and Time .

   If you have not configured the Insert Date/Time plugin to automatically insert the date/time without prompting you for the format, pluma displays the Insert Date and Time dialog. Select the appropriate date/time format from the list. Click Insert to close the Insert Date and Time dialog. pluma inserts the date/time at the cursor position in the current file.

   If you have configured pluma to use one particular date/time format, the Insert Date and Time dialog is not displayed. The date/time is automatically entered at the cursor position in the current file.

#### Configuring the Insert Date/Time Plugin

To configure the Insert Date/Time plugin, perform the following steps:

1. Choose Edit Preferences .

2. Select the Plugins tab.

3. Select the Insert Date/Time plugin.

4. Click Configure Plugin to display the Configure insert date/time plugin dialog.

5. Pilih salah satu opsi, sebagai berikut:

   - To specify the date/time format each time you insert the date/time, select the Prompt for a format option.

   - To use the same pluma-provided date/time format each time you insert the date/time, select the Use the selected format option, then select the appropriate format from the list. When you select this option, pluma does not prompt you for the date/time format when you choose Edit Insert Date and Time .

   - To use the same customized date/time format each time you insert the date/time, select the Use custom format option, then enter the appropriate format in the text box. Refer to the strftime 3 for more information on how to specify a custom format. When you select this option, pluma does not prompt you for the date/time format when you choose Edit Insert Date and Time .

6. Click OK to close the Configure insert date/time plugin dialog.

7. To close the Preferences dialog, click Close.

### Modelines Plugin

The Modelines plugin allows you to set preferences for individual documents. A modeline is a line of text at the start or end of the document with settings that pluma recognizes.

Preferences set using modelines take precedence over the ones specified in the preference dialog.

You can set the following preferences with modelines:

- Lebar tab

- Lebar indentasi

- Sisipkan spasi, jangan tab

- Pelipatan Teks

- Lebar margin kanan

The Modelines plugin supports a subset of the options used by other text editors Emacs, Kate and Vim.

#### Emacs Modelines

The first two lines of a document are scanned for Emacs modelines.

The Emacs options for tab-width, indent-offset, indent-tabs-mode and autowrap are supported. For more information, see the GNU Emacs Manual.

#### Kate Modelines

The first and last ten lines a document are scanned for Kate modelines.

The Kate options for tab-width, indent-width, space-indent, word-wrap and word-wrap-column are supported. For more information, see the Kate website.

#### Vim Modelines

The first and last three lines a document are scanned for Vim modelines.

The Vim options for et, expandtab, ts, tabstop, sw, shiftwidth, wrap, and textwidth are supported. For more information, see the Vim website.

### Python Console Plugin

The Python Console Plugin allows you to run commands in the python programming language from pluma. Enabling the plugin adds a tab to the bottom pane. This shows recent output and a command prompt field.

Commands entered into the python console are not checked before they are run. It is therefore possible to hang pluma, for example by entering an infinite loop.

### Save Without Trailing Spaces Plugin

The Save Without Trailing Spaces Plugin removes whitespace characters such as space (`˽`), tab (`\t`), carriage returns (`\r`) etc. from the end of a line. To use the Save Without Trailing Spaces plugin, perform the following steps:

1. Enable the plugin as described in .

2. When your document is ready, save it.

3. You will see that any trailing whitespaces has been stripped after the document has been saved.

### Snippets Plugin

The Snippets plugin allows you to store frequently-used pieces of text, called snippets, and insert them quickly into a document.

Snippets are specific to the language syntax of the current document. For example, when you are working with an HTML document, you can choose from a list of snippets that are useful for HTML. In addition, some snippets are global, and are available in all documents.

A number of built-in snippets are installed with pluma, which can be modified.

#### Inserting Snippets

To insert a snippet into a document, type its tab trigger and press Tab. A snippet's tab trigger is usually the first few letters of the snippet, or something else that is short and easy to remember.

Alternatively, press Ctrl Space to see a list of snippets you can insert.

#### Adding Snippets

To create a new snippet, do the following:

1. Choose Tools Manage Snippets . The Snippets Manager window opens.

2. The list of snippets is grouped by language. Select the language you want to add a snippet to, or a snippet in that language group. To add a snippet for all languages, choose Global at the top of the list. The syntax of the document you are currently working with is shown by default.

3. Click New. A new snippet appears in the list.

4. Enter the following information for the new snippet:

   Nama

     Enter a name for the snippet in the text field within the snippet list. The name of a snippet serves only as a reminder of its purpose. You can change name of a snippet you create by clicking on it in the list.

   Snippet text

     Enter the text of the snippet in the Edit snippet text box. For special codes you can use, see .

     You can switch back to the document window to copy text without closing the Snippets Manager window.

   Tab Trigger

     Enter the tab trigger for the snippet. This is the text that you type before pressing Tab to insert the snippet.

     The tag must be either a single word comprising only letters, or any single character. The Tab trigger will highlight in red if an invalid tab trigger is entered.

   Tombol pintas

     Type a shortcut key to use for inserting the snippet.

#### Mengedit dan Menghapus Cuplikan

To edit a snippet, select it in the list and make changes to its text and activation properties.

To rename a snippet, click it again in the list.

To restore a built-in snippet that you have changed, press Revert.

To remove a snippet, select it in the list and press Remove. You can not remove built-in snippets, only those you have created yourself.

#### Snippet Substitutions

In addition to inserting stored text, a snippet can include customizable text, or mark spaces where you can add text once the snippet is inserted in your document.

You can use the following placeholder codes in snippet text:

Tab placeholders

  `$n` defines a tab placeholder, where `n` is any number from 1 upwards.

  `${n:default}` defines a tab placeholder with a default value.

  A tab placeholder marks a place in the snippet text where you can add extra text after the snippet is inserted.

  To use tab placeholders, insert the snippet as normal. The cursor is placed at the first tab placeholder. Type text, and press Tab to advance to the next tab placeholder. The number in the placeholder code defines the order in which tab advances to each place in the text.

  Press Shift Tab to return to the previous tab placeholder. Pressing Tab when there are no more tab placeholders moves the cursor to the end of the snippet text, or to the end placeholder if it exists.

Mirror placeholders

  A repeated tab placeholder will mirror the placeholder already defined. This allows you to type in text only once that you want to appear several times in the snippet.

End placeholder

  `$0` defines the end placeholder. This allows you to finish working with the snippet with the cursor at a point other than the end of the snippet text.

Environmental variables

  Environmental variable such as `$PATH` and `$HOME` are substituted in snippet text. The following variables specific to pluma can also be used:

  $PLUMA_SELECTED_TEXT

    The currently selected text.

  $PLUMA_FILENAME

    The full filename of the document, or an empty string if the document isn't saved yet.

  $PLUMA_BASENAME

    The basename of the filename of the document, or an empty string if the document isn't saved yet.

  $PLUMA_CURRENT_WORD

    The word at the cursor's location in the document. When this variable is used, the current word will be replaced by the snippet text.

Shell placeholders

  `$(cmd)` is replaced by the result of executing cmd in a shell.

  `$(n:cmd)` allows you to give this placeholder a reference, where n is any number from 1 upwards. Use `$n` to use the output from one shell placeholder as input in another.

Python placeholders

  `$<cmd>` is replaced by the result of evaluating cmd in the python interpreter.

  `$<a:cmd>` specifies another python placeholder as a dependency, where a gives its order in the snippet. This allows you to use python functions defined in another snippet. To specify several dependencies, separate the numbers with commas thus: `$<a,b:cmd>`

  To use a variable in all other python snippets, declare it as `global`.

### Sort Plugin

The Sort plugin arranges selected lines of text into alphabetical order.

To use the Sort plugin, perform the following steps:

1. Select the lines of text you want to sort.

2. Choose Edit Sort . The Sort dialog opens.

3. Choose the options you want for the sort:

   - To arrange the text in reverse order, select Reverse order.

   - To delete duplicate lines, select Remove duplicates.

   - To ignore case sensitivity, select Ignore case.

   - To have the sort ignore the characters at the start of the lines, set the first character that should be used for sorting in the Start at column spin box.

4. To perform the sort operation, click Sort.

### Spell Checker Plugin

The Spell Checker plugin checks the spelling in the selected text. You can configure pluma to check the spelling automatically, or you can check the spelling manually, in the specified language. The language setting, and the autocheck spelling properties, apply per document. To use the Spell checker plugin, perform the following steps:

1. Choose Tools Set Language to display the Set language dialog. Select the appropriate language from the list. Click OK to close the Set language dialog.

2. To check the spelling automatically, choose Tools Autocheck Spelling . To unset the automatic spell check, choose Tools Autocheck Spelling again. When automatic spell checking is set, an icon is displayed beside the Autocheck Spelling menu item. Automatic spell checking is unset by default, each time pluma starts.

   Unknown spellings are displayed in a different color, and underlined. Right-click on an unknown spelling, then select Spelling Suggestions from the popup menu:

   - To replace the unknown spelling with another spelling in the list, select the replacement spelling from the Spelling Suggestions popup menu.

   - To add the unknown spelling to your personal dictionary, select Spelling Suggestions Add .

   - To ignore all occurrences of the unknown spelling, so that they are no longer flagged as unknown but are not added to your personal dictionary, select Spelling Suggestions Ignore All . The unknown word is ignored in the current pluma session only.

3. To check the spelling manually, choose Tools Check Spelling .

   If there are no spelling errors, an Information dialog displays a message stating that the document does not contain misspelled words. Click OK to close the Information dialog.

   If there are spelling errors, the Check Spelling dialog is displayed:

   - The Misspelled word is displayed at the top of the dialog.

   - A suggested known spelling is displayed in the Change to text box. You can replace this with another known spelling by selecting a spelling from the Suggestions list, or you can enter text directly into the Change to text box.

   - To check the spelling of the text in the Change to text box, click Check Word. If this is a known word, the Suggestions list is replaced with the text `(correct spelling)`. If the word is not known, new entries appear in the Suggestions list.

   - To ignore the current occurrence of the unknown word, click Ignore. To ignore all occurrences of the unknown word, click Ignore All. The unknown word is ignored in the current pluma session only.

   - To change the current occurrence of the unknown word to the text in the Change to text box, click Change. To change all occurrences of the unknown word to the text in the Change to text box, click Change All.

   - To add the unknown word to your personal dictionary, click Add word.

   - To close the Check Spelling dialog, click Close.

### Tag List Plugin

The Tag List plugin allows you to insert common tags from a list in the side pane.

To use the Tag List plugin, perform the following steps:

1. Choose View Side Pane .

2. By default, the side pane shows a tab containing a list of open documents. Click on the tab showing a + icon at the bottom of the side pane to show the tag list tab.

3. Select the appropriate tag category from the drop-down list. For example, HTML - Tags.

4. Scroll through the tag list to find the required tag.

5. To insert a tag at the cursor position in the current file, double-click on the tag in the tag list. You can also insert a tag as follows:

   - To insert a tag in the current file and change the focus from the side pane to the display area, press Return.

   - To insert a tag in the current file and maintain the focus on the Tag list plugin window, press Shift Return .

pluma
penyunting teks