Jedit in action: Console plugin (1)

Console是jedit必装的插件之一。它提供了如下的功能:

  1. 集成的命令行,包括系统的命令行,一个Beanshell命令行。解析命令行的输出,然后把错误输出的另外一个plugin:ErrorList。比如说编译java,可以自定义匹配的模式,把错误输出到ErrorList里面。
  2. 可以订制图形化的命令行工具,称为Commando。这个我觉得是console提供最好用的工具,可以通过它来自定义命令。
  3. 如果其他插件有命令行的输出需要,可以利用Console Plugin提供的框架,比如说安装了AntFarm以后,Console里面就会有专门输出给AntFarm的console。

首先从Plugin Manager里面安装console。然后通过Plugins –> Console –> Console来激活。激活以后就是这个样子的。console1

然后用鼠标点左上角的三角形,选择Dock at Bottom,就会变成我们习惯的类似ultroedit的样子了。console2

默认是系统的命令行,在里面可以执行所有从命令行可以执行的命令。比如说python, javac, java等等。

另外一个是BeanShell的命令行,可以执行BeanShell的命令。

下面再介绍一下Console的菜单。

从Plugins –> Console可以看到Console的菜单。console3

  • Console:激活Console
  • Run last command:运行上次的命令
  • Commando:打开commando窗口。commando是干什么的,下面再重点介绍。
  • Compile current buffer:编译当前的文件。编译的命令在Plugins Options –> Console –> Compile & Run里面配置
  • Run current buffer:运行当前的文件。运行的命令和上面一样,在同一个地方配置
  • Browser Commando Directory:在File Browser里面打开存放commando文件的位置,通常是$HOME/.jedit/console/commando
  • Regen dynamic menus:在每次修改完commando文件以后,需要运行这个命令刷新一下。
  • cd to ProjectViewer selected node dir:这个命令要安装Project View插件,会在System命令行里面,cd到Project View里面当前的project的所选的目录
  • cd to ProjectViewer root dir:cd到Project View里面当前的project的根目录
  • Commands:运行所有的commando的入口。还有两个运行commando更快捷的方式,后面会介绍
  • Shells:跳转不同shell的命令

Related posts:

  1. Jedit in action: Console plugin (2)
  2. Jedit in action: Console plugin (3)
This entry was posted in java, jedit, software and tagged , . Bookmark the permalink.
blog comments powered by Disqus