jEdit Community - Resources for users of the jEdit Text Editor
Pass selection to external tool
Submitted by oh on Friday, 6 November, 2009 - 10:21
Preamble:

I just switched from Vista to Ubuntu. Have to set up a new tool chain. Discovered jEdit - fantastic. Thanks for all the hard work.

I have used Programmers Notepad or Textpad for many years. There I set up external tools to run on certain key presses. I assume that this is done using the Console plugin. So I downloaded the latest console plugin to go with the latest jEdit.

And now the question:

In Programmers Notepad there was a check box: Pass my selection to the external program using standard input. And: Replace selection with output from external tool. These functions would give me a quick way to filter a few lines of text through an external script. Is there an equivalent to this in jEdit?

Could you please point me in the right direction?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
TextFilter plugin
by Robert Schwenn on Fri, 06/11/2009 - 22:49
The TextFilter plugin lets You create the kind of tools You want.

Regarding the keyboard shortcuts: You can assign a shortcut to every "action" that's provided by jEdit itself and plugins and to every macro via Global Options -> Shortcuts.

The TextFilter plugin creates such an action for every filter You've defined. However, when You chose "Plugin: TextFilter" in the upper dropdown of the Global Options -> Shortcuts dialog, You won't see these actions (maybe because they are created at runtime). Nevertheless You can assign a shortcut to Your own TextFilter action by editing the "properties" file in jedit's settings directory. Imagine Your filter's name is "MyFilter", then ading the following line into the "properties" file assigns CTRL+SHIFT+T to this filter:
textfilter.actions.MyFilter.shortcut=CS+t

Note: After You've edited the properties file, You have to restart jEdit.

Robert
 
Thank you, Robert, that did t
by oh on Thu, 12/11/2009 - 16:58
Thank you, Robert, that did the trick.
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82349
Context Free Art (*.cfdg)   0.31   46055
BBEdit scheme   1.0   18595
JBuilder scheme   .001   18495
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293