Skip to content

Commit

Permalink
JK works on error list pad. re #193
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed May 24, 2018
1 parent 8705f85 commit 0027fff
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
5 changes: 4 additions & 1 deletion XSVim/Addin.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ open MonoDevelop.Ide
open MonoDevelop.Ide.Editor
open MonoDevelop.Ide.Editor.Extension
open MonoDevelop.Ide.FindInFiles
open MonoDevelop.Ide.Gui.Components
open Reflection

module Subscriptions =
let textChanged (editor:TextEditor) (changes: Text.TextChangeEventArgs) =
Expand Down Expand Up @@ -63,7 +65,8 @@ type XSVim() as this =
let padId = pad.Window.Id
if not (searchPads.Contains padId) then
searchPads.Add padId |> ignore
searchResultsPad.initialize pad)
let tree = pad.Control?nativeWidget?treeviewSearchResults
padTreeViews.initialize tree)
with
| _ -> ()))

Expand Down
9 changes: 3 additions & 6 deletions XSVim/SearchResultsPad.fs → XSVim/PadTreeViews.fs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
namespace XSVim
open System

open Gtk
open MonoDevelop.Ide.FindInFiles
open MonoDevelop.Ide.Gui.Components
open Reflection

module searchResultsPad =
module padTreeViews =
let select (tree:TreeView) path =
let column = tree.Columns.[0]
tree.Selection.SelectPath path
Expand All @@ -24,8 +22,7 @@ module searchResultsPad =
path.Prev() |> ignore
select tree path

let initialize (pad:SearchResultPad) =
let tree:PadTreeView = pad.Control?nativeWidget?treeviewSearchResults
let initialize (tree:PadTreeView) =
let processKey (key:KeyPressEventArgs) =
match key.Event.Key with
| Gdk.Key.Escape ->
Expand Down
2 changes: 1 addition & 1 deletion XSVim/Properties/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open System.Runtime.CompilerServices
[<AutoOpen>]
module AddinVersion =
[<Literal>]
let version = "0.59.2"
let version = "0.60.0"

[<assembly: AssemblyTitle("XSVim")>]
// The assembly version has the format {Major}.{Minor}.{Build}.{Revision}
Expand Down
4 changes: 3 additions & 1 deletion XSVim/TreeViewPads.fs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ module treeViewPads =
let initialize() =
if not initialized then
initialized <- true

let errorPad = IdeApp.Workbench.Pads.ErrorsPad.Content
let errorPadTree = errorPad?view
padTreeViews.initialize errorPadTree
for pad in getTreeViewPads() do
let (tree:TreeView) = pad.TreeView?Tree
let (store:TreeStore) = pad.TreeView?Store
Expand Down
2 changes: 1 addition & 1 deletion XSVim/XSVim.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<Compile Include="Types.fs" />
<Compile Include="WindowManagement.fs" />
<Compile Include="ExMode.fs" />
<Compile Include="SearchResultsPad.fs" />
<Compile Include="PadTreeViews.fs" />
<Compile Include="TreeViewPads.fs" />
<Compile Include="XSVim.fs" />
<Compile Include="Addin.fs" />
Expand Down

0 comments on commit 0027fff

Please sign in to comment.