Skip to content

Commit

Permalink
FS 1.6.2 - F5 in editors = Load script
Browse files Browse the repository at this point in the history
  • Loading branch information
nightroman committed Oct 14, 2018
1 parent 70eb6b7 commit 8cae7ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions FSharpFar/History.txt
Expand Up @@ -3,6 +3,10 @@ https://www.nuget.org/packages/FarNet.FSharpFar
Far Manager 3.0.5048
FarNet 5.2.14

= 1.6.2 =

`[F5]` in editors is shortcut for `[F11]` \ `FSharpFar` \ `Load`

= 1.6.1 =

Add job helper: job {...} ~ Job.From (fun () -> ...)
Expand Down
2 changes: 1 addition & 1 deletion FSharpFar/README.md
Expand Up @@ -307,7 +307,7 @@ Interactive completion is based on the current session and its configuration.

**Code evaluation**

Use `[F11]` \ `FSharpFar` \ `Load` in order to evaluate the file.
Use `[F5]` or `[F11]` \ `FSharpFar` \ `Load` in order to evaluate the file.
The file is automatically saved before loading.
The output is shown in a new editor.

Expand Down
3 changes: 3 additions & 0 deletions FSharpFar/src/FSharpFar/FarEditor.fs
Expand Up @@ -110,6 +110,9 @@ type FarEditor () =
match e.Key.VirtualKeyCode with
| KeyCode.Tab when e.Key.Is () && not editor.SelectionExists ->
e.Ignore <- Editor.complete editor
| KeyCode.F5 when e.Key.Is () ->
Editor.load editor
e.Ignore <- true
| _ -> ()

editor.Changed.Add <| fun e ->
Expand Down

0 comments on commit 8cae7ef

Please sign in to comment.