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: 3338

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
« September 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   97301
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299