jEdit Community - Resources for users of the jEdit Text Editor
'Lock Buffer Feature'
Submitted by Anonymous on Tuesday, 17 February, 2004 - 18:16
Hi.

Many times, I have faced this problem when working on several buffers: am I editing the file I think I am editing ? I could realize it with a quick look on the tabs, but I guess we programmers can be quite distracted sometimes, and if I have two PHP sources open at the same time, I would think I am writing on file A while in fact, I am writing file B which should not be touched.

Of course, I could change the file permissions in order to prevent myself from doing something stupid. But not always.

My request is: I would like JEdit to have some mechanism to allow me to prohibit myself to write to a buffer. I would 'Lock' the buffer I do not want to write, and I could work with the two of them open at the same time. JEdit would still allow to select and copy text, but not write to the buffer.

So, what do you guys say ? Have you ever run into this same distraction ? Would this be useful ?

See ya
Leonel
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
there's also a 'Toggle Read O
by Brad Mace on Wed, 18/02/2004 - 02:39
there's also a 'Toggle Read Only' macro which I re-added.
go to the beanshell console a
by Brad Mace on Wed, 18/02/2004 - 02:16
go to the beanshell console and enter
buffer.setReadOnly(true)

(buffer always refers to the focused buffer)
User login
Browse archives
« March 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
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
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   82336
Context Free Art (*.cfdg)   0.31   46042
JBuilder scheme   .001   18485
BBEdit scheme   1.0   18106
ColdFusion scheme   1.0   18014
R Edit Mode - extensive version   0.1   17460
Advanced HTML edit mode   1.0   16193
Matlab Edit Mode   1.0   16055
jEdit XP icons   1.0   15219
XP icons for jEdit   1.1   14281