Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

feat: render terminals in the bottom dock #14

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/status-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ class StatusBar extends View {

const fromIndex = parseInt(dataTransfer.getData('from-index'))
const view = this.terminalViews[fromIndex]
if (!view) return
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even with the terminals in the bottom panel, when moved, I see an error notification because view is undefined here

This comment was marked as resolved.

Copy link
Member

@the-j0k3r the-j0k3r Nov 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving dock NOT panel theres an error.

[Enter steps to reproduce:]

generic

Atom: 1.41.0 x64
Electron: 4.2.7
OS: Ubuntu 18.04.3
Thrown From: terminus package 4.0.2

Stack Trace

Uncaught TypeError: Cannot read property 'destroy' of undefined

At /home/terminus/Documents/Example/terminus/lib/view.js:750

TypeError: Cannot read property 'destroy' of undefined
    at TerminusView.toggleTabView (/home/terminus/Documents/Example/terminus/lib/view.js:750:18)
    at StatusBar.onDropTabBar (/home/terminus/Documents/Example/terminus/lib/status-bar.js:514:10)
    at HTMLUListElement.tabBar.on.event (/home/terminus/Documents/Example/terminus/lib/status-bar.js:183:39)
    at HTMLUListElement.dispatch (/home/terminus/Downloads/terminus/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLUListElement.elemData.handle (/home/terminus/Downloads/terminus/node_modules/jquery/dist/jquery.js:4121:28)

Commands

Non-Core Packages

terminus 4.0.2 

FYI this works without being on dock

generic

Without this PR its actually possible to move the terminal into the bottom dock even if docks arent implemented

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the toolbar on windows hides once the terminal is too big.
terminus1

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea the input button should be in the status bar while using the dock. I hadn't gotten to that yet.

I think we should move forward with the strategy in #15

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds good. =)

view.css('height', '')
view.terminal.element.style.height = atom.config.get('terminus.style.defaultPanelHeight')
// const tabBar = $(event.target).closest('.tab-bar');
Expand Down