jEdit Community - Resources for users of the jEdit Text Editor
Syncronize working directory of console and/or beanshell with current buffer (ChangeDirectory.bsh v1.4 by Robert Schwenn)
Submitted by Robert Schwenn on Monday, 6 November, 2006 - 20:46
This macro changes the working directory of console plugin and/or beanshell to the current buffer's parent directory. This is controlled by two properties, which have to be set manually.

The macro is intended for use with the action hooks pugin, bound to the events "BufferUpdate.LOADED" and "EditPaneUpdate.BUFFER_CHANGED". So the working directory of console is synchronized with current buffer (almost) every time.

Last Update: Now for Linux, too: Invoke cd command only, if buffer directory really has changed.

Updated on 05/06/2013 - 17:44
Downloads: 2859

Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
No longer needed in Console 5.1.2
by AlanEzust on Tue, 07/05/2013 - 16:06
I added a new checkbox option in the console - shell options to follow the textarea.
So you won't need this macro anymore once 5.1.2 comes out.
User login
Browse archives
« August 2017  
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
31
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
33%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1092
Syndication
file   ver   dls
German Localization light   4.4.2.1   50525
Context Free Art (*.cfdg)   0.31   40667
JBuilder scheme   .001   16726
ColdFusion scheme   1.0   16290
BBEdit scheme   1.0   16281
R Edit Mode - extensive version   0.1   14511
Advanced HTML edit mode   1.0   13791
Matlab Edit Mode   1.0   13692
jEdit XP icons   1.0   13177
XP icons for jEdit   1.1   12194