Project

General

Profile

Actions

提案 #1456

closed

アクティブタブをクリックするとタイムラインの一番上にスクロールする機能

Added by Yuto Tokunaga about 2 years ago. Updated about 2 years ago.

Status:
却下
Priority:
通常
Assignee:
-
Target version:
プラグイン名:
ブランチ:
Actions #1

Updated by Yuto Tokunaga about 2 years ago

  • Target version changed from 4.1 to 5.1
Actions #2

Updated by toshi_a 初音 about 2 years ago

有用だとは思わないのでサードパーティプラグインでやってほしいです

Actions #3

Updated by Yuto Tokunaga about 2 years ago

  • Status changed from 分類待ち to 却下

プラグインでできました!mikutterすごい

Actions #4

Updated by Yuto Tokunaga about 2 years ago

ついでにプラグイン置いときます

Plugin.create :jump_to_top do
  filter_keypress do |key, widget, executed|
    notice "#{key} #{widget} #{executed}" 
    next [key, widget, executed] unless widget.is_a?(Plugin::GUI::Tab) \
                                        && key == 'Button 1 Double Click'

    timeline = widget.children.find { |w| w.is_a? Plugin::GUI::Timeline }
    commands, = Plugin.filtering :command, Hash.new
    event = Plugin::GUI::Event.new(widget: timeline)
    commands[:timeline_scroll_to_top][:exec].(event)
    executed = true
    [key, widget, executed]
  end
end
Actions

Also available in: Atom PDF