Commit Graph

151 Commits

Author SHA1 Message Date
neon443
24bf52ff16 added textbox to make pretty textboxes with label
updated connectionview to use nice textboxes with labels
put disconnect and minimize on the left
2025-06-30 13:52:24 +01:00
neon443
9c32778d01 fix passpharse 2025-06-30 12:16:04 +01:00
neon443
463ac768c2 fix theme column being clipped at the trailing edge 2025-06-30 12:13:25 +01:00
neon443
c877b14ad5 fix servers with no auth
improve theme view column calculation
2025-06-30 12:11:33 +01:00
neon443
24d4ecbdf0 vbump 2025-06-29 18:52:35 +01:00
neon443
1e730582c0 ui background matches theme
ui bg is 70% opacity
2025-06-29 18:51:52 +01:00
neon443
a4a71968fe theme list is now adaptive - it divides the width of the view by 200 to get the columns count
each theme preview is 150-250 wide
2025-06-29 17:52:37 +01:00
neon443
80ddde3a62 applying themes on the fly!! (to sessions already active)
added applySelectedTheme to sshhandler which will run applyselectedtheme on the terminalview if it exists
added applyselectedtheme to apply the chosen theme in hostsmanager
applying of the chosen theme on appear of any shell view
made the tap target for sessions actually the whole list item
fix undefined behaivour from modifying published values from background threads
2025-06-29 16:39:03 +01:00
neon443
8e69dfc165 terminalViewContainer is now an observable object
made the session list view more pretty
terminalviewcontaner has a static shared property which is an instance of itself
then it has sessions inside with a dict of uuid:terminalcontainer inside
hostsview is in the section "hosts"
2025-06-29 16:25:49 +01:00
neon443
331a921499 MULTI SESSIONS!!!
terminalviewcontainer has a dict of [handler, terminalView] with a uuid key
each session gets a new uuid, and on disconnect, the session is removed from terminalviewcontainer
sessions list view to reopen sessions
remove multiview
extracted terminalviewcontainer
2025-06-29 15:40:46 +01:00
neon443
870ebb6fcc made the theme picker ui pretty
boxes now touch and dont have spacing between
vertical layout
context menu actually targets correct theme
the themebox is flexible and can be smaller/larger doesnt matter
2025-06-29 13:42:05 +01:00
neon443
24ca75f8c6 added isSelected property to make isselected checking cleaner 2025-06-29 12:11:31 +01:00
neon443
af00ab1e7c updated clone script to use a 78% smaller 20mb tar.xz archive instead of a zip
it has a compression ratio of 0.1 yayyy
 - faster xcode cloud builds
2025-06-29 11:52:03 +01:00
neon443
b8a8b20056 vbump 2025-06-29 11:35:16 +01:00
neon443
7bb562a16a Merge remote-tracking branch 'refs/remotes/origin/main' 2025-06-29 11:29:37 +01:00
neon443
4ca3bc035f Awdjfghkahdsgjf;h
id and name were swapped loll
switch back to icloud defaults for hostsmanager
update xcode* themes to camel case
2025-06-29 11:22:29 +01:00
neon443
331b21b23f improve is theme selected
gave all builtin themes uuids
2025-06-29 10:49:52 +01:00
neon443
a4d245caec !!!!!!!!!!
fixed selecting themes - it now actually remembers!!
fix all themes having no names
fix remembering selected themes
added toTheme to return a theme from a themecodable
removed themeNames - its not needed as the names are saved in the ThemeCodable itself
extracted colorcodable and themecodable into their own files
removed all the debug prints
2025-06-29 10:43:47 +01:00
neon443
834fb266e9 theme picker ui is pretty now
added a bunch of builtin htemes
applytheme takes a theme
added builtin themes enum
added decodeloacltheme func
added builtinthemes array property
selectedtheme is now an actual theme instead of an index
its really annoying it doesnt really work rn
2025-06-29 09:59:53 +01:00
Nihaal Sharma
6915d8b665 Update README.md 2025-06-29 09:10:14 +01:00
neon443
f19f32682f added selecting and applying themes
added selectTheme to set the selectedtheme index
added isthemeselected to check if a theme is selected
applytheme takes an index now

ui needs work lol - cant select default, and selction doesnt save between sessions
2025-06-28 16:06:11 +01:00
neon443
0f3f936638 Merge remote-tracking branch 'refs/remotes/origin/main' 2025-06-28 15:44:41 +01:00
neon443
4affc532d9 fix adding new hosts, it will navigate u to a new connection view with a host.blank, and add the host if it doesnt exist
added addhostifneeded
extracted hostskeys stuff to hostkeysview
added nav titles to everything
removed tabs, now just a list
renamed savedHosts -> hosts
2025-06-28 15:37:50 +01:00
neon443
7ceef899df fix duplicate ssh keys in keys, now shows the hosts that use that key if u tap on it
added theme deletion
added animations on change of themes list
getkeys doesnt return duplicates, thanks to:
wrote a custom == operator to check if keys are the same, ignoring uuid
added gethostskeysusedon to get the hosts that use a key
fix refreshing of hosts on modification
added cancel to import alert
2025-06-28 14:59:59 +01:00
Nihaal Sharma
830192144d add README.md 2025-06-28 13:19:15 +01:00
neon443
d0c84b19f4 added renaming themes
gonna add delete themes next
2025-06-27 21:45:09 +01:00
neon443
a607996ca5 fixed ui clipping
made the radius concentric and the padding perfect
2025-06-27 21:20:27 +01:00
neon443
3698232a51 added thememanager view and thempreviw
it uses a lazyhgrid
2025-06-27 20:48:41 +01:00
neon443
c343066fb5 make decodeTheme cleaner, still works yayyy 2025-06-27 18:27:10 +01:00
neon443
338957e986 theme loading works!! before i tried decoding the entire array when it expected one theme lol 2025-06-27 18:25:16 +01:00
neon443
d33b7d4eaf added downloadtheme funciton to download and import a theme from an iterm2colorschemes.com link
added import theme to import a theme
updated loadthemes
updated themesview to add import buttons and updated the view
fix themesview making a new instance of hostsmanager
added suiColor to get a swiftui color from a swiftterm color
fix uicolor returning black all the time
2025-06-27 18:01:27 +01:00
neon443
56289f0f6d added themes to hostsmanager
added loadthemes
added savethemes
theme is now identifieable
theme has a computed property themecodable to make it easier to convert
extended swiftterm.color to have a colorCodabel property
adding themes amanger ui
2025-06-27 10:59:53 +01:00
neon443
f14492d3fe added applyTheme() function
added SwiftTerm.Color.uiColor extension to get a UIColor from SwiftTerm.Color
rename SSHTerminalView to SSHTerminalDelegate
2025-06-27 10:38:03 +01:00
neon443
73282fa65d adding theme support!!
looking at swiftermapp, it uses string splitting to parse a plist of colours
i couldnt be asked to do this, so i made my own codable types and non codable types to automatically parse the plist lol
anyways might merge the Codable and non codabel types later, but i thik it works now so im leaving it as is rn
moved scrollback restore funcito higher
2025-06-27 10:29:53 +01:00
neon443
b59c52f239 remove the bell emoji, just the flat one for now 2025-06-27 09:20:04 +01:00
neon443
b43d92e2d5 remove print 2025-06-26 16:36:45 +01:00
neon443
4d10245569 1.2 2025-06-26 16:32:08 +01:00
neon443
09fd4a10fd YESSS
ok so now you can minimize an ssh session
 - it will remember the scrollback,
- if u uminimixe it and then reconnect, it works
it uses a shared static var in TerminalViewContainer to keep SSHTerminal instances
scrollback restoration works and everything
2025-06-26 16:25:35 +01:00
neon443
747406df5d asdfasdfasdf 2025-06-26 15:50:25 +01:00
neon443
c6699a9818 implement scrollback saving
implement a scrollback cap of 10MiB
add prettyscrollback() to return kib, mib etc
tried a different resuming thingy
2025-06-26 15:46:58 +01:00
neon443
f082d8b77c tried to implement resuming 2025-06-26 15:03:59 +01:00
neon443
84b0b3cc7a vbump 2025-06-26 13:53:37 +01:00
neon443
bb0ea0f9ee added animated screen flash for bell
screen will flash with a semi transparent white overlay and a bell emoji for 250ms
remove bell from nav bar, too distracting with the bell in the muiddle as well
2025-06-26 13:53:18 +01:00
neon443
a41edbb1aa added bell - the title will show a bell emoji if the bell has been rung for 0.2s
fix massive memory leak :cry
it liteally got to 10gigs :wilt
fixed cpu usage - 90+% lower
2025-06-26 13:38:06 +01:00
neon443
061d6d54d2 bump 2025-06-26 13:17:41 +01:00
neon443
de213c0d72 remove the minimize button 2025-06-26 13:16:14 +01:00
neon443
98e5b01970 center text
fix alignment
comment out ssh_free
fix Face ID appearing on touch id devices
2025-06-26 13:12:33 +01:00
neon443
0291c3c613 vbump 2025-06-26 12:49:54 +01:00
neon443
51459f1839 fix crash when disconnecting, fix close terminal on exit 2025-06-26 12:49:27 +01:00
neon443
319373682c simlplify read from channel loop
main thread ui updates in disconnect()
2025-06-26 12:32:38 +01:00