StackOverflowで「 Atomエディタで本文1行目をタブに表示したい 」なる質問を見かけたので勉強がてらに作ってみた。 パッケージなどにはしていないので init.coffee に書くだけのお手軽仕様。 atom.workspace.observeTextEditors (editor) -> editor.onDidStopChanging => elm = document.querySelector(".tab.sortable.active > .title") elm.innerHTML = editor.getText().split("\n")[0] setTimeout -> items = [] atom.workspace.getPanes().map (panel) -> panel.items.map (item) -> items.push item.b