Skip to content

Commit

Permalink
imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cdepillabout committed Oct 23, 2023
1 parent 35f39e1 commit 09f7007
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 66 deletions.
73 changes: 10 additions & 63 deletions src/Termonad/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Config.Dyre (wrapMain, newParams)
import Control.Lens ((^.), (^..), over, set, view, ix)
import Data.FileEmbed (embedFile)
import Data.FocusList (focusList, moveFromToFL, updateFocusFL)
import qualified Data.List as List
import Data.Sequence (findIndexR)
import qualified Data.Text as Text
import Data.Text.Encoding (encodeUtf8)
Expand All @@ -28,20 +27,11 @@ import GI.Gtk
( Application
, ApplicationWindow(ApplicationWindow)
, Box(Box)
, CheckButton(CheckButton)
, ComboBoxText(ComboBoxText)
, Dialog(Dialog)
, Entry(Entry)
, FontButton(FontButton)
, Label(Label)
, PolicyType(PolicyTypeAutomatic)
, PositionType(PositionTypeRight)
, ResponseType(ResponseTypeAccept, ResponseTypeNo, ResponseTypeYes)
, ResponseType(ResponseTypeNo, ResponseTypeYes)
, ScrolledWindow(ScrolledWindow)
, SpinButton(SpinButton)
, pattern STYLE_PROVIDER_PRIORITY_APPLICATION
, aboutDialogNew
, adjustmentNew
, applicationAddWindow
, applicationGetActiveWindow
, applicationSetAccelsForAction
Expand All @@ -50,9 +40,6 @@ import GI.Gtk
, boxPackStart
, builderNewFromString
, builderSetApplication
, comboBoxGetActiveId
, comboBoxSetActiveId
, comboBoxTextAppend
, containerAdd
, cssProviderLoadFromData
, cssProviderNew
Expand All @@ -61,13 +48,8 @@ import GI.Gtk
, dialogNew
, dialogResponse
, dialogRun
, entryBufferGetText
, entryBufferSetText
, entryGetText
, entryNew
, fontChooserSetFontDesc
, fontChooserGetFontDesc
, getEntryBuffer
, gridAttachNextTo
, gridNew
, labelNew
Expand All @@ -79,18 +61,11 @@ import GI.Gtk
, onNotebookPageReordered
, onNotebookSwitchPage
, onWidgetDeleteEvent
, scrolledWindowSetPolicy
, setWidgetMargin
, spinButtonGetValueAsInt
, spinButtonSetAdjustment
, spinButtonSetValue
, styleContextAddProviderForScreen
, toggleButtonGetActive
, toggleButtonSetActive
, widgetDestroy
, widgetGrabFocus
, widgetSetCanFocus
, widgetSetVisible
, widgetShow
, widgetShowAll
, windowPresent
Expand All @@ -102,95 +77,67 @@ import qualified GI.Gtk as Gtk
import GI.Pango
( FontDescription
, pattern SCALE
, fontDescriptionGetFamily
, fontDescriptionGetSize
, fontDescriptionGetSizeIsAbsolute
, fontDescriptionNew
, fontDescriptionSetFamily
, fontDescriptionSetSize
, fontDescriptionSetAbsoluteSize
)
import GI.Vte
( CursorBlinkMode(..)
, catchRegexError
( catchRegexError
, regexNewForSearch
, terminalCopyClipboard
, terminalPasteClipboard
, terminalSearchFindNext
, terminalSearchFindPrevious
, terminalSearchSetRegex
, terminalSearchSetWrapAround
, terminalSetBoldIsBright
, terminalSetCursorBlinkMode
, terminalSetFont
, terminalSetScrollbackLines
, terminalSetWordCharExceptions
, terminalSetAllowBold
)
import System.Environment (getExecutablePath)
import System.FilePath (takeFileName)
import System.IO.Error (doesNotExistErrorType, ioeGetErrorType, ioeGetFileName, tryIOError)
import Termonad.Gtk (appNew, imgToPixbuf, objFromBuildUnsafe, terminalSetEnableSixelIfExists)
import Termonad.Cli (parseCliArgs, applyCliArgs)
import Termonad.Gtk (appNew, imgToPixbuf, objFromBuildUnsafe)
import Termonad.Keys (handleKeyPress)
import Termonad.Lenses
( lensBoldIsBright
, lensEnableSixel
, lensAllowBold
, lensConfirmExit
, lensCursorBlinkMode
( lensConfirmExit
, lensFontConfig
, lensOptions
, lensShowMenu
, lensShowScrollbar
, lensShowTabBar
, lensScrollbackLen
, lensTMNotebookTabTermContainer
, lensTMNotebookTabs
, lensTMNotebookTabTerm
, lensTMStateApp
, lensTMStateConfig
, lensTMStateFontDesc
, lensTerm
, lensWordCharExceptions, lensTMStateWindows, lensTMWindowNotebook
, lensTMStateWindows, lensTMWindowNotebook
)
import Termonad.Preferences (saveToPreferencesFile, showPreferencesDialog)
import Termonad.Preferences (showPreferencesDialog)
import Termonad.Term
( createTerm
, relabelTabs
, termNextPage
, termPrevPage
, termExitFocused
, setShowTabs
, showScrollbarToPolicy
)
import Termonad.Types
( ConfigOptions(..)
, FontConfig(..)
( FontConfig(..)
, FontSize(FontSizePoints, FontSizeUnits)
, ShowScrollbar(..)
, ShowTabBar(..)
, TMConfig
, TMNotebookTab
, TMState
, TMState'
, TMWindowId
, fontSizeFromFontDescription
, getFocusedTermFromState
, getTMNotebookFromTMState
, getTMNotebookFromTMState'
, getTMWindowFromTMState'
, modFontSize
, newEmptyTMState
, tmNotebook
, tmNotebookTabTermContainer
, tmNotebookTabs
, tmStateApp
, tmStateWindows
, tmWindowAppWin
, tmWindowNotebook, fontSizeFromFontDescription
)
import Termonad.XML (interfaceText, menuText, preferencesText)
import Termonad.Cli (parseCliArgs, applyCliArgs)
import Termonad.IdMap (keysIdMap)
import Termonad.XML (interfaceText, menuText)

setupScreenStyle :: IO ()
setupScreenStyle = do
Expand Down
5 changes: 2 additions & 3 deletions src/Termonad/Preferences.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,13 @@ import Termonad.Types
, TMNotebookTab
, TMState
, TMWindowId
, fontConfigFromFontDescription
, getTMWindowFromTMState'
, tmNotebook
, tmNotebookTabTermContainer
, tmNotebookTabs
, tmStateApp
, tmStateWindows
, tmWindowAppWin
, tmWindowNotebook, fontConfigFromFontDescription
, tmWindowNotebook
)
import Termonad.XML (preferencesText)
import Termonad.IdMap (keysIdMap)
Expand Down

0 comments on commit 09f7007

Please sign in to comment.