VimMate 0.6.4 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +11 -0
- data/README +3 -3
- data/TODO +4 -1
- data/bin/vimmate +4 -2
- data/lib/vimmatelib/config.rb +1 -0
- data/lib/vimmatelib/files_window.rb +9 -7
- data/lib/vimmatelib/main_window.rb +5 -5
- data/lib/vimmatelib/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
= Changelog
|
2
2
|
|
3
|
+
=== Version 0.6.5
|
4
|
+
- VimMate would crash when VTE was not present when using shortcut keys
|
5
|
+
- Changed some shortcut keys:
|
6
|
+
- CTRL+SHIFT+S: Set focus to current terminal (shell)
|
7
|
+
- CTRL+SHIFT+T: Create a new terminal
|
8
|
+
- CTRL+SHIFT+E: Set focus to search file list
|
9
|
+
- # 13210: A new option is now available to hide the status of the files. This helps
|
10
|
+
when using ellipsis since it leaves more space for the file names. The new
|
11
|
+
option is :files_show_status and it's set to true by default. Thanks to
|
12
|
+
Stephen Walker who sent me a patch for this.
|
13
|
+
|
3
14
|
=== Version 0.6.4
|
4
15
|
- VimMate now has shortcut keys to control it's various parts. Here is the
|
5
16
|
list of the shortcut keys that where added:
|
data/README
CHANGED
@@ -187,14 +187,14 @@ There are a lot of other nice script out there so check
|
|
187
187
|
|
188
188
|
= Keyboard shortcuts
|
189
189
|
Here is a list of the various shortcut keys:
|
190
|
-
- CTRL+SHIFT+
|
191
|
-
- CTRL+SHIFT+
|
190
|
+
- CTRL+SHIFT+S: Set focus to current terminal (shell)
|
191
|
+
- CTRL+SHIFT+T: Create a new terminal
|
192
192
|
- CTRL+SHIFT+W: Close current terminal
|
193
193
|
- CTRL+PAGEDOWN: Next terminal
|
194
194
|
- CTRL+PAGEDOWN: Previous terminal
|
195
195
|
- CTRL+SHIFT+L: Set focus to file filter
|
196
196
|
- CTRL+SHIFT+F: Set focus to file list
|
197
|
-
- CTRL+SHIFT+
|
197
|
+
- CTRL+SHIFT+E: Set focus to search file list
|
198
198
|
- CTRL+SHIFT+V: Set focus to Vim
|
199
199
|
Thanks to Florian Frank who sent me a patch for the first 5 shortcuts. The
|
200
200
|
other shortcuts where also added thanks to this patch by Florian Frank. (Note
|
data/TODO
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
= TODO
|
2
2
|
List of things to do:
|
3
3
|
- Find a better way to hide the file list and use the same way to hide
|
4
|
-
the terminals.
|
4
|
+
the terminals. Patches for this are welcome!
|
5
|
+
- Configurable shortcut keys: allow users to change the shortcut keys
|
6
|
+
with .vimmaterc. Need to find a way to specify the modifier (shift, ctrl)
|
7
|
+
and the key. Probably something like "CONTROL_MASK SHIFT_MASK GDK_S".
|
5
8
|
|
6
9
|
= Ideas
|
7
10
|
- New from file copy
|
data/bin/vimmate
CHANGED
@@ -92,8 +92,10 @@ fork do
|
|
92
92
|
end
|
93
93
|
|
94
94
|
main.files_window = files if files
|
95
|
-
main.vim_window = vim if
|
96
|
-
|
95
|
+
main.vim_window = vim if vim
|
96
|
+
if not terminals.nil? and not terminals.is_a?(VimMate::DummyWindow)
|
97
|
+
main.terminals_window = terminals
|
98
|
+
end
|
97
99
|
|
98
100
|
# Set the signals for the file list
|
99
101
|
files.add_open_signal do |path, kind|
|
data/lib/vimmatelib/config.rb
CHANGED
@@ -52,6 +52,7 @@ module VimMate
|
|
52
52
|
:files_search_separator_position => 400,
|
53
53
|
:files_warn_too_many_files => 300,
|
54
54
|
:files_warn_too_many_files_each_step => true,
|
55
|
+
:files_show_status => true,
|
55
56
|
:terminals_enabled => true,
|
56
57
|
:terminals_height => 50,
|
57
58
|
:terminals_font => "10",
|
@@ -161,12 +161,14 @@ module VimMate
|
|
161
161
|
column.set_attributes(text_cell_renderer, :text => NAME)
|
162
162
|
|
163
163
|
# Status
|
164
|
-
|
165
|
-
|
166
|
-
|
164
|
+
if Config[:files_show_status]
|
165
|
+
text_cell_renderer2 = Gtk::CellRendererText.new
|
166
|
+
if Config[:files_use_ellipsis]
|
167
|
+
text_cell_renderer2.ellipsize = Pango::Layout::EllipsizeMode::END
|
168
|
+
end
|
169
|
+
column.pack_start(text_cell_renderer2, true)
|
170
|
+
column.set_attributes(text_cell_renderer2, :text => STATUS)
|
167
171
|
end
|
168
|
-
column.pack_start(text_cell_renderer2, true)
|
169
|
-
column.set_attributes(text_cell_renderer2, :text => STATUS)
|
170
172
|
|
171
173
|
@gtk_tree_view.append_column(column)
|
172
174
|
|
@@ -395,7 +397,7 @@ module VimMate
|
|
395
397
|
@gtk_tree_store.each do |model,path,iter|
|
396
398
|
if iter[PATH] == file.path
|
397
399
|
iter[ICON] = file.icon
|
398
|
-
iter[STATUS] = file.status_text
|
400
|
+
iter[STATUS] = file.status_text if Config[:files_show_status]
|
399
401
|
break
|
400
402
|
end
|
401
403
|
end
|
@@ -417,7 +419,7 @@ module VimMate
|
|
417
419
|
new_row[NAME] = file.name
|
418
420
|
new_row[PATH] = file.path
|
419
421
|
new_row[ICON] = file.icon
|
420
|
-
new_row[STATUS] = file.status_text
|
422
|
+
new_row[STATUS] = file.status_text if Config[:files_show_status]
|
421
423
|
if file.instance_of? ListedDirectory
|
422
424
|
new_row[SORT] = "1-#{file.path}-1"
|
423
425
|
new_row[TYPE] = TYPE_DIRECTORY
|
@@ -47,12 +47,12 @@ module VimMate
|
|
47
47
|
if event.state & Gdk::Window::ModifierType::CONTROL_MASK != 0
|
48
48
|
if event.state & Gdk::Window::ModifierType::SHIFT_MASK != 0
|
49
49
|
case event.keyval
|
50
|
-
# CTRL+SHIFT+
|
51
|
-
when Gdk::Keyval::
|
50
|
+
# CTRL+SHIFT+S: Set focus to terminal (shell)
|
51
|
+
when Gdk::Keyval::GDK_S
|
52
52
|
terminals_window.focus_terminal if terminals_window
|
53
53
|
next true
|
54
|
-
# CTRL+SHIFT+
|
55
|
-
when Gdk::Keyval::
|
54
|
+
# CTRL+SHIFT+T: New terminal
|
55
|
+
when Gdk::Keyval::GDK_T
|
56
56
|
terminals_window.add_new_terminal if terminals_window
|
57
57
|
next true
|
58
58
|
# CTRL+SHIFT+W: Close terminal
|
@@ -68,7 +68,7 @@ module VimMate
|
|
68
68
|
files_window.focus_file_list if files_window
|
69
69
|
next true
|
70
70
|
# CTRL+SHIFT+S: Set focus to search file list
|
71
|
-
when Gdk::Keyval::
|
71
|
+
when Gdk::Keyval::GDK_E
|
72
72
|
files_window.focus_file_search if files_window
|
73
73
|
next true
|
74
74
|
# CTRL+SHIFT+V: Set focus to Vim
|
data/lib/vimmatelib/version.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: VimMate
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.6.
|
7
|
-
date: 2007-09-
|
6
|
+
version: 0.6.5
|
7
|
+
date: 2007-09-29 00:00:00 -04:00
|
8
8
|
summary: VimMate is a graphical add-on to Vim with IDE-like features.
|
9
9
|
require_paths:
|
10
10
|
- lib
|