This file contains hidden or 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
GRABS.merge!({ | |
'W-k' => lambda{ focus_next }, | |
'W-j' => lambda{ focus_previous }, | |
}) | |
module Subtlext | |
class Subtle | |
def move_focus(step) | |
i = current_view.clients.index{|c| c.id == current_client.id} + step | |
(current_view.clients[i] || current_view.clients.first).focus |
This file contains hidden or 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
> subtle | |
subtle 0.8.1648 - Copyright (c) 2005-2009 Christoph Kappel | |
Released under the GNU General Public License | |
Compiled for X11R0 and Ruby 1.9.1 | |
Display (:0.0) is 1680x1818 on 2 screens | |
Using config `/home/kiko/.config/subtle/subtle.rb' | |
Loading sublets from `/home/kiko/.local/share/subtle/sublets' | |
Loaded sublet (temp) | |
Loaded sublet (freq) | |
Loaded sublet (cpu) |
This file contains hidden or 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
>> S.current_client.geometry | |
=> #<Subtlext::Geometry:0x842ec94 @x=0, @y=1050, @width=1022, @height=382> | |
>> S.current_client.geometry = [0, 1050, 500, 382] | |
=> [0, 1050, 500, 382] | |
>> S.current_client.geometry | |
=> #<Subtlext::Geometry:0x86d4c2c @x=263, @y=1242, @width=496, @height=382> |
This file contains hidden or 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
GRAVITIES.merge!({ | |
:left66v => [ 0, 0, 66, 100 ], | |
:left50v => [ 0, 0, 50, 100 ], | |
:left33v => [ 0, 0, 33, 100 ], | |
:left66 => [ 0, 50, 50, 33 ], | |
:left33 => [ 0, 50, 25, 33 ], | |
}) | |
GRABS.merge!({ | |
"W-S-j" => [ :left66v, :left50v, :left33v, :left66, :left33 ], |
This file contains hidden or 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
<WARNING> Failed calling sublet | |
<WARNING> Interrupt: Execution time (1s) expired | |
from /home/kiko/.local/share/subtle/sublets/60_clock-0.2.rb:19:in `data=' | |
from /home/kiko/.local/share/subtle/sublets/60_clock-0.2.rb:19:in `block in <top (required)>' | |
from subtle:0:in `call' | |
Last 3 stack frames: | |
Please report this bug to <[email protected]> | |
Aborted |
This file contains hidden or 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
def swap_screen(s1, s2) | |
puts 'swap_screen' | |
current_view.clients.each do |c| | |
c.screen = (c.screen.id == s1) ? s2 : s1 | |
end | |
end |
This file contains hidden or 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
## View management | |
* Functions | |
C-w 1 => Show only current view | |
C-w 2 => Split current view horizontal | |
C-w 3 => Split current view vertical | |
C-w 0 => Close current view (buffer still remain) | |
* Example |
This file contains hidden or 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
# rc.rb | |
b = lambda{ Tk::TkCmd.inactive > 1000 ? (puts "inactive for #{Tk::TkCmd.inactive} ms") : Tk::After.idle(&b) } | |
Tk::After.idle(&b) | |
This file contains hidden or 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
diff --git a/lib/ver/methods/insert.rb b/lib/ver/methods/insert.rb | |
index 37db645..270c0e2 100644 | |
--- a/lib/ver/methods/insert.rb | |
+++ b/lib/ver/methods/insert.rb | |
@@ -202,13 +202,13 @@ module VER | |
indent_settings = {} | |
- pref.each do |key, value| | |
- settings = value['settings'] |
This file contains hidden or 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
> yonde | |
:enter_bold_mode | |
:enter_reverse_mode | |
{:write=>"%"} | |
/home/kiko/github/manveru/yonde/lib/yonde/buffer.rb:1599:in `set_ansi_color': set_ansi_color(27) (ArgumentError) | |
from /home/kiko/github/manveru/yonde/lib/yonde/buffer.rb:1609:in `block in set_background' | |
from /home/kiko/github/manveru/yonde/lib/yonde/buffer.rb:1607:in `each' | |
from /home/kiko/github/manveru/yonde/lib/yonde/buffer.rb:1607:in `set_background' | |
from /home/kiko/github/manveru/yonde/lib/yonde/controller.rb:233:in `term_input' | |
from /home/kiko/github/manveru/yonde/lib/yonde/controller.rb:154:in `try_execute' |