Đọc thêm bài : Text Editor thông dụng trên *NIX
Gedit là một trình soạn thảo đơn giản. Được cài đặt mặc định trong mọi hệ thống GNOME
Như Firefox, Gedit được bổ xung thêm rất nhiều plugin chính thống hoặc từ các nhà phát triển thứ 3.
Chính nhờ số lượng plugin đồ sộ này mà Gedit trở nên mạnh mẽ . Trong bài viết này tôi sẽ liệt kê các plugin chính và hữu dụng của Gedit hoặc những plugin mà tôi trông thấy, cũng như hệ thống phím tắt hỗ trợ
I. Những Plugin phổ biến và hữu dụng
#Bracket Completion: Tự động đóng Bracket (( )), ([ ]), ({ }), (< >)
#Charmap: Chèn kí tự từ bản đồ kí tự
#Code Comment: Đánh dấu ghi chú bằng phím tắt.
#Join lines/ Split lines: Nối, cắt dòng với Control+J hoặc Shift+Control+J
#Session Saver: Lưu lại một phiên làm việc
#Smart Spaces: Bạn sẽ không cần phải tính toán chỗ nào nên “thò ra” hay “thụt vào” trong đoạn code của bạn. Plugin này tự động làm sắp xếp hộ bạn chỉ bằng phím tắt (unindent) : Control+T hoặc Shift+Control+T
#Show tabbar: Một plugin cơ bản cho phép hiện hoặc ẩn tabbar
#Terminal: một terminal đơn giản ngay phía dưới cửa sổ
II. Bộ Shipped plugins
(Có trùng lặp ở một vài plugin bên trên)
#Change case: Changes the case of selected text.
#Document Statistics Analyses the current document and reports the number of words, lines, characters and non-space characters in it.
#External tools: Execute external commands and shell scripts. (More)
#File Browser: A file browser plugin allowing to easily access your filesystem (includes remote mounts, creating new files/dirs, monitor dirs for changes, etc) (More)
#Indent: Indents or un-indents selected lines.
#Modelines: Emacs, Kate and Vim-style modelines support for gedit.
#Python console: Interactive python console standing in the bottom panel.
#Snippets: Insert often used pieces of text in a fast way. (More)
#Sort: Sorts a document or selected text.
#Spell: Checks the spelling of the current document.
#Tag list: Provides a method to easily insert into a document commonly used tags/strings without having to type them.
#Insert Date/Time: Inserts current date and time at the cursor position
-
Advanced Bookmarks
-
Advanced bookmarking tool for Gedit. More: http://code.google.com/p/advanced-bookmarks-gedit-plugin/
-
-
Align
-
Align blocks of text into columns. Download: http://users.tkk.fi/~otsaloma/gedit
-
-
Another TODO Marks List manager
-
Another Gedit TODO list plugin, based on ToDo List by Nando Vieira (see bellow). Entirely rewritten in python, and configurable. More details: http://alexandredasilva.wordpress.com/gedit-todo-list-plugin/ . Latest version: http://sourceforge.net/projects/gedit-todo/
-
-
Automatically Strip All Trailing Whitespace In PHP
-
Automatically strip all whitespace after ?> tag in PHP files, after they are saved. Download: http://ahwayakchih.neoni.net/files/trimends4php.tar.gz
-
-
Automatic compilation for SWFTools
-
Automatically call swfc compilation for saved file, if it has “.swfc” extension. Download: http://ahwayakchih.neoni.net/files/swfc.zip
-
-
Auto Tab
-
Auto-detect indent settings (width and tab/spaces) in source files and adjusts tabbing accordingly for each buffer on the fly. Plays nicely with the Modelines plugin, and any other plugin can easily ask it to skip any file if they need to. Download: http://code.google.com/p/gedit-autotab/
-
-
Autosave editing sessions
-
Save tabs and restore them automatically on startup without asking Download: http://sourceforge.net/projects/geditautosaves/
-
-
Bazaar
-
This plugin aims to bring to Gedit all the benefits of Bazaar’s helpfulness on the colaboration problem. Bazaar is a Version Control System developed in python(bazaar-vcs.org). Download: https://launchpad.net/bzr-gedit/
-
-
Better Python Console
-
Python Console(s) in the style of IDLE (Execute Python Code by hitting F5). Download: http://live.gnome.org/Gedit/Plugins/BetterPythonConsole
-
-
Bidi assist
-
Adds some useful features for bidirectional scripts like Arabic and Hebrew. Download: http://zwnj.org/proj/gedit/bidiassist. More: /BidiAssist
-
-
Bookmarks
-
Adds a bookmarking system with support for folders. Download: http://www.psyguygames.com/Bookmarks_plugin1.01.tar.gz
-
-
Browser Preview
-
Showing the current webpage you are editing in gEdit directly in Firefox, Opera, Konquerer or Internet Explorer 6. http://my.opera.com/area42/blog/gedit-browser-preview-plugin
-
-
Class Browser
-
A class browser located in the side pane. Based on ctags, it supports a wide range of languages. Download: http://www.stambouliote.de/projects/gedit_plugins.html
-
-
Code Formatter
-
Type CTRL+ALT+F your source code will be formatted, currently it has only support for Ruby source files, but more languages will be added by request and a configuration screen is planned for the next version. Download: http://www.urubatan.info/tags/gedit
-
-
Current Line Background Color
-
Set the current line background color. Update: Configuration dialog added. Latest version: svn co http://svn.simplesideias.com.br/general/gedit/plugins/current_line/
-
-
Dictionary
-
Gnome dictionary integration for gedit. Download: svn checkout –username anonsvn https://forxa.mancomun.org/svn/dict-plugin Password: anonsvn
-
-
Document Words Completion
-
Complete prevously written words in the current document. Support completion by pressing <Control>+Return or autocompletion. You can configure enable/disable autocompletion and set the autocompletion delay. This plugin needs GtkSourceCompletion library. You can download and install the gtksourcecompletion library and gedit plugin from the project page: https://sourceforge.net/projects/gtksourcecomple. Take a look at this (Screencast)
-
-
Docstring Wizard
-
A Plugin to insert epydoc conform docstrings into a (python) document on the fly based on regular expressions. Download:http://code.google.com/p/docstringwizard/
-
-
Eddt – File Browser
-
A directory browsing plugin written in Python. Download: http://eddt.mbrio.org
-
-
Edit shortcuts
-
Assign shortcuts to all menu items and maybe more… Download: http://empty.23inch.de/pmwiki.php/Main/EditShortcuts
-
-
Elastic tabstops
-
An attempt to solve the tabs-versus-spaces issue by making tabstops that expand or shrink to fit their contents (includes functionality to convert files that use spaces for alignment). Download: http://nickgravgaard.com/elastictabstops/gedit/plugins.tar.gz More: http://nickgravgaard.com/elastictabstops/
-
-
End of line
-
Convert line endings to switch from UNIX to DOS to Mac text format. Download: http://myhpi.de/~wieland.hagen/endofline/
-
-
File Search
-
Search for text in all files in a directory. Download: http://oliver.github.com/gedit-file-search/
-
-
Find in Documents
-
Adds a side panel that allows you to search all open documents for a string. Uses grep. Download: http://www.psyguygames.com/FindInDocuments_plugin.tar.gz A improved version with additional german localisation: http://my.opera.com/area42/blog/gedit-find-in-files-and-find-in-documents-plugin
-
-
Find in Files
-
Modification of the Find in Documents plugin but searches all docs under the root of your filebrowser sidepane. Requires FileBrowser plugin to be active. More: http://www.urbanpuddle.com/articles/2008/05/06/introducing-a-new-gedit-plugin-find-in-files A improved version with additional german localisation: http://my.opera.com/area42/blog/gedit-find-in-files-and-find-in-documents-plugin
-
-
Gezilla Mozilla Development
-
Mozilla Development to Gedit. Download: http://code.google.com/p/gezilla/
-
-
Grep
-
Yet another plugin to search in opened files OR in a directory. When searching opened files uses actual content even if files were not saved. When search in directory allows o specify file pattern and if subdirectories should be included. More: http://blog.veles.info/gedit-grep/
-
-
GtkSnippets gedit plugin
-
Adds snippets support using GtkSnippets and GtkSourceCompletion library. Homepage: https://sourceforge.net/projects/gtksnippets/
-
-
HTML export
-
Export highlighted text to HTML. Download: http://www.markus-jonsson.com/downloads/?path=./gedit-html-export
-
Download broken, files available from bugilla: Bug report: gnomebug:323588
-
-
HTML Tidy
-
Clean up your web pages with Dave Raggett’s HTML Tidy More: http://www.eng.tau.ac.il/~atavory/gedit-plugins/html-tidy/
-
-
Import/export External-Tools and Plugins
-
GEdit Plugin to save the GEdit profile concerned to External-Tools and Plugins that the user have configured. This plugin, makes easy to backup such data (tools and plugins), by exporting/importing the profile to/from a tar.gz file. More: http://yguarata.blogspot.com/2008/07/gedit-plugin-to-exportimport-tools-and.html
-
-
Language Reference/ Programming Help
-
Showing a external Language Reference/ Programming Help (can be a XML DocBook, PDF, HTML page, CHM Windows helpfile or PostScript file) from “~/.gnome2/gedit/help” http://my.opera.com/area42/blog/gedit-language-reference-plugin
-
-
Lastdocs
-
Exposes a simple dialog that shows you the last opened files which can be edited with gEdit. More: http://rockiger.com/en/content/lastdocs-plugin-gedit Download: http://sites.google.com/site/ecomputicus/Home/gedit-plugins/lastdocs-0.1.tar.gz
-
-
LaTeX
-
LaTeX and BibTeX the currently open file. Download: attachment:gedit-latex-plugin-0.1.0.tar.gz
-
-
Line-spacing
-
Increase or decrease spacing between lines. Download: http://users.tkk.fi/~otsaloma/gedit
-
-
Line Tools Plugin
-
Provides useful line functionality to increase editing efficiency. Features include line duplication, bookmarking, and more! Gedit/LineToolsPlugin
-
-
Live HTML Timestamp
-
Insert and update a live timestamp in an HTML file à la XEmacs’ HTML mode Homepage: http://vax64.dk/live-html-timestamp/
-
-
Lorem Ipsum
-
This gEdit plugin inserts the latin phrase, begining with “Lorem ipsum…”, at the current curser’s position. Insert Lorem Ipsum – gEdit Plugin
-
-
Multi-edit
-
Allows you to have multiple text cursors so that you can simultaneously edit different parts of a document as you type. Useful for repetitive actions such as commenting out code, changing variable names, fixing indentation etc. More info: http://jon-walsh.com/journal/multi-edit/
-
-
Multiple Copy/Paste Channels
-
Use Ctrl+[0-9] to copy to one of 10 channels, and Ctrl+Alt+[0-9] to paste from them. Download: http://www.dave-sullivan.com/project/gedit-copy
-
-
New from Template
-
Create a new file based on a custom defined template http://my.opera.com/area42/blog/gedit-template-plugin
-
-
Open File
-
Opens files based on name query (based on textmate open file) http://github.com/vbabiy/gedit-openfiles/tree/master
-
-
Open Folder
-
Open the folder containing the active file http://code.google.com/p/gedit-open-folder
-
-
Open Header/Body
-
Open the corresponding header or body file http://blog.squidy.info/projects/open-headerbody-gedit-plugin/
-
-
Open tran
-
Use open tran service in gedit. Download: svn checkout –username anonsvn https://forxa.mancomun.org/svn/open-tran Password: anonsvn
-
-
Project Manager
-
Group files together into projects, and save them. Download: http://sourceforge.net/projects/gedit-fileset
-
-
Project Marker
-
Create a list of directories to act as a project root. Then everytime a file is opened, it is checked if it is under any of these directories. If so, then a “root_dir” variable is set for that view which can then be seen by another plugin via view.get_data(“root_dir”). This plugin is meant to be used by other plugins to actually be useful (i.e. a build plugin that needs to know the root directory of the current project). Download: https://code.launchpad.net/~delfick/+junk/projectMarker
-
-
Python Indentation
-
Smart indentation for python code. http://libreamoi.com/?p=9 Download: python_indentation.tar.gz
-
-
Quick Highlight Mode
-
Shortcut for Highlight Mode with autocomplete – Just press Ctrl+Shift+H Latest version: svn co http://svn.simplesideias.com.br/general/gedit/plugins/quickhighlightmode/
-
-
Rails Hotkeys
-
Open files in your Ruby on Rails project by pressing hotkeys. After install, press Ctrl+Shift+R and then F1 for a list of available hotkeys. Latest version: svn co http://svn.simplesideias.com.br/general/gedit/plugins/rails_hotkeys/
-
-
Rails Hot Commands
-
Type CTRL+ALT+C and rch open a list of Rails/Rake commands, click run and RHC will open a Shell Prompt (embedded) with your command. Download: http://code.google.com/p/rhc/
-
-
Rails Extract Partial
-
Type CTRL+ALT+P to crop currently selected text to a new partial. More info and Download: http://alexandredasilva.wordpress.com/gmate
-
-
Regex Search & Replace
-
For search and replace in documents using regular expressions. Download : http://vaem.googlecode.com/files/gedit2_regex_replace_plugin.tar.gz
-
If you just want to search text in documents using regular expressions (regex). Download: http://tapioca-voip.sourceforge.net/regexsearch_gedit_plugin.tar.gz
-
-
Regex Search Files
-
Search text in files using regular expressions (regex). Download: http://int.ractable.com/gedit-plugins/regexpsearchfiles-0.2.1.zip or for older Gedit that doesn’t use GtkSourceView2 http://int.ractable.com/gedit-plugins/regexpsearchfiles-0.2.zip
-
-
Reident
-
Reindent the code following PEP008 Guidelines. Download: http://live.gnome.org/Gedit/Plugins/Reindent
-
-
Remote Filesystem Save Workaround
-
For people who edit files on remote filesystems and get a warning every time they save that the file has been modified. Download: http://chrisnicholls.ca/wp-content/uploads/2008/03/netsave-gedit-plugin-0.1.tar.gz More: http://chrisnicholls.ca/code/gedit-plugins/
-
-
Reopen Tabs
-
Loads recently opened documents when Gedit starts. More: http://code.google.com/p/reopen-tabs-gedit-plugin/
-
-
Run in Python
-
Adds (to the Tools menu) an option that allows you to run the current document in the Python interpreter. Interpreter output appears in the bottom panel. Version 1.02 – Prevents Zombies and adds a clear console menu item. Also fixes possible naming conflict. Download: http://www.psyguygames.com/RunInPython_plugin1.02.tar.gz
-
-
Save without trailing space
-
Automatically strip all trailing whitespace before saving. Download: http://users.tkk.fi/~otsaloma/gedit
-
-
Seahorse
-
Encrypt the current document. Download: http://gnome.org/projects/seahorse
-
-
Sced
-
SuperCollider interaction plugin. Download: http://artfwo.googlepages.com/sced
-
-
Smart Home
-
Smart Home behavior change plugin. Default is first press of home goes to the start of the line, second press goes to the start of the indentation on the line. This reverses that. Download: http://github.com/kemayo/gedit-smarthome/tree/master
-
-
Smart Indent
-
Automatically indent your code based on regular expressions More info and Download: http://alexandredasilva.wordpress.com/gmate
-
-
Smart indentation plugin for C/C++/Java
-
Indents on opening brace, unindents on closing brace. Also unindents on backspace. Download: csmartindent.tar.gz
-
-
SnapOpen
-
A regex open file dialog that resembles that of Textmate. Download: http://www.upperbound.net/upperbound/show/SnapOpen+plugin+for+Gedit
-
-
Snipplr Plugin
-
Use the service snipplr.com, search snippets by tag, copy them into your document or upload your favourite pieces of code to snipplr. Download: http://www.ardeenelinfierno.com/wordpress/code/gedit-snipplr-plugin/
-
-
Speakit
-
Speaks the current document Download: http://www.members.optusnet.com.au/peterwolf43/speakit.tar.gz
-
-
-
Special Symbols insertion tool. Sets of symbols can be manually configured. Download: http://www.medini.org/software/gedit/gedit.html
-
-
Splitview plugin
-
A simple splitview plugin Download: http://webdav.tielie.com/gedit-plugins/splitview/
-
-
-
Alternate SplitView plugin with a couple of additional features. Download: http://www.psyguygames.com/SplitView2.tar.gz
-
-
Strict Tabulation
-
Set tabulation as 4 spaces to Python and PHP and 2 spaces for Ruby. Update: Added item to Edit menu. Latest version: svn co http://svn.simplesideias.com.br/general/gedit/plugins/tabulation/
-
-
Symbol Browser
-
A tree-view style, ctags based symbol browser which lists functions, classes, variables, etc. in the left pane. Supports any ctag symbol type (over 30 programming languages supported). See screenshot. Download: http://www.micahcarrick.com/11-14-2007/gedit-symbol-browser-plugin.html
-
-
Tab close
-
Close gedit window when last tab is closed. Download: http://blog.goranrakic.com/archives/tabclose.html
-
-
Tab convert
-
Convert tabulator spaces to whitespaces and vice versa. Download: http://www.stambouliote.de/projects/gedit_plugins.html
-
-
Textile Preview
-
Live preview of Textile-formatted text Download: http://code.google.com/p/gedittextilepreview/
-
-
Text wrap toggle
-
Gedit gets a menu entry under (View/Toggle text wrap). Download: toggletextwrap-plugin-0.1.0.tar.bz2
-
-
ToDo List
-
Gedit version for the ToDo List Textmate bundle. Make sure you read the README file. View screencast: http://f.simplesideias.com.br/screencasts/todo_list.ogg Latest version: svn co http://svn.simplesideias.com.br/general/gedit/plugins/todo/
-
-
Vi(m) key bindings
-
Makes it possible to use Gedit as modal vi-style editor Website: https://launchpad.net/vigedit/
-
Download (use bzr): bzr branch http://bazaar.launchpad.net/~tristil/vigedit/main-method
-
-
Web Browser
-
Gives Gedit web browing capabilities. Download: http://sharkbaitbobby.blogspot.com/2008/08/gedit-web-browser-plugin.html
-
-
Word completion
-
Display a completion popup, updating as you type, with suggestions from all words in all documents in all windows. Select completions with arrow keys and complete with the tab key. See screenshot. Download: http://users.tkk.fi/~otsaloma/gedit
-
-
Word wrap
-
Re-wrap paragraphs, trying to respect line indenting and prefixing. Download: http://jerakeen.org/svn/tomi/Projects/gedit-plugins/word-wrap/
-
Thông tin về các plugin bạn có thể xem thêm ở đây
IV. Hệ thống phím tắt
Shortcuts for tabs:
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.
Shortcuts for working with files:
Ctrl + N : Create a new document.
Ctrl + O : Open a document.
Ctrl + L : Open a location.
Ctrl + S : Save the current document to disk.
Ctrl + Shift + S : Save the current document with a new filename.
Ctrl + P : Print the current document.
Ctrl + Shift + P : Print preview.
Ctrl + W : Close the current document.
Ctrl + Q : Quit Gedit.
Shortcuts for editing documents:
Ctrl + Z : Undo the last action.
Ctrl + Shift + Z : Redo the last undone action .
Ctrl + X : Cut the selected text or region and place it on the clipboard.
Ctrl + C : Copy the selected text or region onto the clipboard.
Ctrl + V : Paste the contents of the clipboard.
Ctrl + A : Select all.
Ctrl + D : Delete current line.
Shortcuts for showing and hiding panes:
F9 : Show/hide the side pane.
Ctrl + F9 : Show/hide the bottom pane.
Shortcuts for searching:
Ctrl + F : Find a string.
Ctrl + G : Find the next instance of the string.
Ctrl + Shift + G : Find the previous instance of the string.
Ctrl + K : Interactive search.
Ctrl + H : Search and replace.
Ctrl + Shift + K : Clear highlight.
Ctrl + I : Goto line.
Shortcuts for tools:
Shift + F7 : Check spelling (with plugin).
Alt + F12 : Remove trailing spaces (with plugin).
Ctrl + T : Indent (with plugin).
Ctrl + Shift + T : Remove Indent (with plugin).
F8 : Run “make” in current directory (with plugin).
Ctrl + Shift + D : Directory listing (with plugin).








Tháng Tư 11, 2009 lúc 11:14 sáng
Great site this http://tuyetkiem.wordpress.com brill to see you have what I am actually looking for here and this this post is exactly what I am interested in. I shall be pleased to become a regular visitor
Tháng Sáu 3, 2009 lúc 5:24 chiều
[...] của tuyetkiem cũng có một bài viết về Gedit và các plugin của nó. Xem thêm tại đây. no comments [...]
Tháng Sáu 3, 2009 lúc 8:51 chiều
Bài viết tổng hợp nhiều thật. Có thêm plugin thì gedit cũng khá mạnh. Cám ơn bạn nhiều.
Tháng Mười 11, 2009 lúc 5:08 chiều
Làm sao để gỡ cái gedit này vậy