Skip to content

Add an integrated, feature-rich terminal panel #3567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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 gresources/nemo-shell-ui.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
</menu>
<menuitem name="Show Hide Menubar" action="Show Hide Menubar"/>
<menuitem name="Show Hide Statusbar" action="Show Hide Statusbar"/>
<menuitem name="Show Hide Terminal" action="Show Hide Terminal"/>
<separator/>
<menuitem name="Show Hide Extra Pane" action="Show Hide Extra Pane"/>
<menuitem name="Edit Location" action="Edit Location"/>
Expand Down
47 changes: 46 additions & 1 deletion libnemo-private/org.nemo.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,29 @@
<value nick="after-current-tab" value="0"/>
<value nick="end" value="1"/>
</enum>

<enum id="org.nemo.SizePrefixes">
<value value="0" nick="base-10"/>
<value value="1" nick="base-10-full"/>
<value value="2" nick="base-2"/>
<value value="3" nick="base-2-full"/>
</enum>

<enum id="org.nemo.TerminalSyncMode">
<value nick="none" value="0"/>
<value nick="fm-to-term" value="1"/>
<value nick="term-to-fm" value="2"/>
<value nick="both" value="3"/>
</enum>

<enum id="org.nemo.TerminalSshAutoConnectMode">
<value nick="off" value="0"/>
<value nick="sync-both" value="1"/>
<value nick="sync-fm-to-term" value="2"/>
<value nick="sync-term-to-fm" value="3"/>
<value nick="sync-none" value="4"/>
</enum>

<schema id="org.nemo" path="/org/nemo/" gettext-domain="nemo">
<child name="preferences" schema="org.nemo.preferences"/>
<child name="icon-view" schema="org.nemo.icon-view"/>
Expand Down Expand Up @@ -629,6 +644,36 @@
<summary>Whether the navigation window should be maximized.</summary>
<description>Whether the navigation window should be maximized by default.</description>
</key>
<key name="local-terminal-sync-mode" enum="org.nemo.TerminalSyncMode">
<default>'both'</default>
<summary>Local terminal folder synchronization mode</summary>
<description>Determines how the embedded terminal synchronizes its current directory with the file manager when navigating local folders. 'none': No synchronization. 'fm-to-term': File manager navigation changes terminal directory. 'term-to-fm': Terminal navigation changes file manager location. 'both': Synchronization works in both directions.</description>
</key>
<key name="ssh-terminal-auto-connect-mode" enum="org.nemo.TerminalSshAutoConnectMode">
<default>'off'</default>
<summary>SSH terminal auto-connection and synchronization mode preference</summary>
<description>Determines behavior when an SFTP location is active. 'off': Do not connect automatically. 'sync-both': Connect and sync both ways. 'sync-fm-to-term': Connect and sync File Manager to Terminal. 'sync-term-to-fm': Connect and sync Terminal to File Manager. 'sync-none': Connect without folder synchronization.</description>
</key>
<key name="terminal-height" type="i">
<default>300</default>
<summary>Terminal panel height</summary>
<description>Height of the terminal panel in pixels.</description>
</key>
<key name="terminal-visible" type="b">
<default>false</default>
<summary>Terminal pane visibility</summary>
<description>Whether the terminal pane should be visible.</description>
</key>
<key name="terminal-color-scheme" type="s">
<default>'system'</default>
<summary>Terminal color scheme</summary>
<description>The color scheme to use for the embedded terminal. Available values: 'system', 'dark', 'light', 'solarized-dark', 'solarized-light', 'matrix', 'one-half-dark', 'one-half-light', 'monokai', 'custom'.</description>
</key>
<key name="terminal-font-size" type="i">
<default>12</default>
<summary>Terminal font size</summary>
<description>The font size to use for the embedded terminal in point units.</description>
</key>
<key name="sidebar-width" type="i">
<default>170</default>
<summary>Width of the side pane</summary>
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ gmodule = dependency('gmodule-no-export-2.0', version: glib_version)
gobject = dependency('gobject-2.0', version: '>=2.0')
go_intr = dependency('gobject-introspection-1.0', version: '>=1.0')
json = dependency('json-glib-1.0', version: '>=1.6')
vte = dependency('vte-2.91', version: '>=0.52.0')

cinnamon= dependency('cinnamon-desktop', version: '>=4.8.0')
gail = dependency('gail-3.0')
Expand Down
3 changes: 2 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ nemoCommon_sources = [
'nemo-script-config-widget.c',
'nemo-self-check-functions.c',
'nemo-statusbar.c',
'nemo-terminal-widget.c',
'nemo-thumbnail-problem-bar.c',
'nemo-toolbar.c',
'nemo-trash-bar.c',
Expand Down Expand Up @@ -103,7 +104,7 @@ if enableEmptyView
endif

nemo_deps = [ cinnamon, gail, glib, gtk, math,
egg, nemo_extension, nemo_private, xapp ]
egg, nemo_extension, nemo_private, xapp, vte ]

if exempi_enabled
nemo_deps += exempi
Expand Down
1 change: 1 addition & 0 deletions src/nemo-actions.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
#define NEMO_ACTION_OPEN_IN_TERMINAL "OpenInTerminal"
#define NEMO_ACTION_FOLLOW_SYMLINK "FollowSymbolicLink"
#define NEMO_ACTION_OPEN_CONTAINING_FOLDER "OpenContainingFolder"
#define NEMO_ACTION_SHOW_HIDE_TERMINAL "Show Hide Terminal"

#define NEMO_ACTION_PLUGIN_MANAGER "NemoPluginManager"

Expand Down
Loading