Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get rid of autoloading, require explicitly
- Loading branch information
Showing
14 changed files
with
622 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
module ActiveWindow | ||
|
||
end | ||
require_dependency 'active_window/signal' | ||
require_dependency 'active_window/active_tree_store/columns' | ||
require_dependency 'active_window/active_tree_store/index' | ||
require_dependency 'active_window/active_tree_store/extentions' | ||
require_dependency 'active_window/filtered_active_tree_store' | ||
|
||
$:.unshift File.dirname(__FILE__) | ||
|
||
require 'active_window/signal' | ||
require 'active_window/listed_item' | ||
require 'active_window/controller' | ||
require 'active_window/dot_file' | ||
require 'active_window/active_column' | ||
require 'active_window/active_tree_store/index' | ||
require 'active_window/active_tree_store/columns' | ||
require 'active_window/active_tree_store/extentions' # must be _extensions | ||
require 'active_window/active_tree_store' | ||
require 'active_window/filtered_active_tree_store' | ||
require 'active_window/application' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# require 'libglade2' | ||
# require 'gtk2' | ||
require 'singleton' | ||
|
||
class ActiveWindow::Controller | ||
include Singleton | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Vim | ||
end | ||
|
||
require 'vim/buffers.rb' | ||
require 'vim/netbeans.rb' | ||
require 'vim/integration.rb' | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module VimMate | ||
end | ||
|
||
$:.unshift File.dirname(__FILE__) | ||
|
||
require 'vim_mate/requirer' | ||
require 'vim_mate/nice_singleton' | ||
require 'vim_mate/vim_widget' | ||
require 'vim_mate/config' | ||
require 'vim_mate/icons' | ||
require 'vim_mate/plugins' | ||
require 'vim_mate/app' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
module VimMate | ||
class App < ActiveWindow::Application | ||
def initialize(opts={}) | ||
@excludes = opts.delete(:excludes) | ||
super | ||
end | ||
def file_tree | ||
files.file_tree | ||
end | ||
def files | ||
controller[:file_filter] | ||
end | ||
def vim | ||
controller[:vim].vim | ||
end | ||
|
||
widget :file_tree_view | ||
widget :tree_scroller | ||
widget :main_pane | ||
widget :general_config | ||
widget :files_filter_button | ||
widget :files_pane | ||
widget :file_popup | ||
widget :files_filter_term | ||
|
||
def add_path(path) | ||
file_tree.initial_adding do | ||
file_tree.add_path(path) | ||
end | ||
end | ||
|
||
def post_setup | ||
super | ||
|
||
@excludes.each do |rule| | ||
file_tree.exclude! rule | ||
end unless @excludes.blank? | ||
|
||
# If there are no files given, open an empty window | ||
# If files are specified on the command line, use them | ||
ARGV.each do |file| | ||
path = File.expand_path(file) | ||
add_path(path) | ||
#window.vim.open(path, :tab) | ||
end | ||
end | ||
|
||
def run | ||
GLib::Timeout.add(23) do | ||
vim.start | ||
false | ||
end | ||
super | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
plugin_dir = File.expand_path File.dirname(__FILE__) + '/plugins' | ||
|
||
Dir["#{plugin_dir}/*/init.rb"].each do |plugin_init| | ||
ActiveSupport::Dependencies::load_paths << File.dirname(plugin_init) | ||
require_dependency plugin_init | ||
$: << File.dirname(plugin_init) | ||
require plugin_init | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require_dependency 'lib/INotify' | ||
require_dependency 'lib/directory' | ||
require 'lib/INotify' | ||
require 'lib/directory' | ||
ListedDirectory.class_eval { include VimMate::Plugin::INotifyDirectory } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.