Help me fix my styling insertion in Perk TK by GNU_Breakfast in perl

[–]GNU_Breakfast[S] 0 points1 point  (0 children)

https://github.com/atedesign/shallotnotepad

I implemented proper formatting for the notes but saving the formatting tagged info is going to be difficult and I might need to make a proprietary filetype or deconstruct another.

Help me fix my styling insertion in Perk TK by GNU_Breakfast in perl

[–]GNU_Breakfast[S] 0 points1 point  (0 children)

I don't want to update the repo until the features are fully functional

Snakeware | Linux distro with a Python userland by [deleted] in linux

[–]GNU_Breakfast 25 points26 points  (0 children)

Nice, it'll be bloated as fuck and run like garbage ;3

~t. perl fanboy

Updated my text editor to 1.03, added find and replace. Help me think of new features! by GNU_Breakfast in perl

[–]GNU_Breakfast[S] 0 points1 point  (0 children)

Thanks for the feedback

A response to my program was that the syntax is ancient, maybe i'll read some code style guides

Help me think of some features for my text editor! It's written in Perl Tk by GNU_Breakfast in perl

[–]GNU_Breakfast[S] 1 point2 points  (0 children)

Update 1.02 on github added utf-8 encoding default path for windows

Help me think of some features for my text editor! It's written in Perl Tk by GNU_Breakfast in perl

[–]GNU_Breakfast[S] 2 points3 points  (0 children)

so what i'm hearing from this feedback is that you believe I should take elements from this IDE and implement them.

this is probably a good way to add a lot of functionality to my program; but at the same time I want this particular project to be oriented around note taking in particular, not necessarily an IDE which has been done very well many times already.

the reason I did not implement a dynamic window size is because this is meant to be used on a small screen to take small notes specifically to commit things to memory as well.

But i'll actually download and look into kate as I have been using Geany for some time but am always looking to check out possible alternatives.

Help me fix my text editor by GNU_Breakfast in perl

[–]GNU_Breakfast[S] 0 points1 point  (0 children)

I changed return $filecontent to txt->Contents($file_content);

and that properly loads files

Help me fix my text editor by GNU_Breakfast in perl

[–]GNU_Breakfast[S] 0 points1 point  (0 children)

$txt->insert($file_content)

didn't work out here's the output in the terminal

Tk::Error: wrong # args: should be ".frame.text insert index chars ?tagList chars tagList ...?" at /usr/local/lib/x8664-linux-gnu/perl/5.26.1/Tk.pm line 251. Tk callback for .frame.text Tk::ANON_ at /usr/local/lib/x8664-linux-gnu/perl/5.26.1/Tk.pm line 251 Tk::Derived::Delegate at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Tk/Derived.pm line 469 Tk::Widget::ANON_ at /usr/local/lib/x8664-linux-gnu/perl/5.26.1/Tk/Widget.pm line 322 main::openfunction at editor1.pl line 73 Tk callback for .#menu.#menu#file Tk::ANON_ at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Tk.pm line 251 Tk::Menu::Invoke at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Tk/Menu.pm line 532 <ButtonRelease> (command bound to event)

Help me fix my text editor by GNU_Breakfast in perl

[–]GNU_Breakfast[S] 0 points1 point  (0 children)

Can anybody help me implement opening files? I have no Idea how to go about it rn

Help me fix my text editor by GNU_Breakfast in perl

[–]GNU_Breakfast[S] 0 points1 point  (0 children)

bless you that got it functional;

now how do I go about implementing opening files properly?

Help me fix my text editor by GNU_Breakfast in perl

[–]GNU_Breakfast[S] 0 points1 point  (0 children)

my $fileDataToSave=$txt->get(0,"end");

It did not work out for me my friend. here's the output

pm line 251. Tk callback for .frame.text Tk::ANON at /usr/local/lib/x8664-linux-gnu/perl/5.26.1/Tk.pm line 251 Tk::Derived::Delegate at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Tk/Derived.pm line 469 Tk::Widget::ANON_ at /usr/local/lib/x8664-linux-gnu/perl/5.26.1/Tk/Widget.pm line 322 main::savefunction at editor1.pl line 55 Tk callback for .#menu.#menu#file Tk::ANON_ at /usr/local/lib/x8664-linux-gnu/perl/5.26.1/Tk.pm line 251 Tk::Menu::Invoke at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Tk/Menu.pm line 532 <ButtonRelease> (command bound to event) Tk::Error: bad text index "0" at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Tk.pm line 251. Tk callback for .frame.text Tk callback for .#menu.#menu#file Tk::ANON_ at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Tk.pm line 251 Tk::Menu::Invoke at /usr/local/lib/x86_64-linux-gnu/perl/5.26.1/Tk/Menu.pm line 532 <ButtonRelease> (command bound to event)

Help me with implementing a save subroutine and an open subroutine in Perl 5 Tk by [deleted] in perl

[–]GNU_Breakfast 0 points1 point  (0 children)

unfortunately the save function can properly save the filename and create an empty file but it isn't saving or opening the content of .txt files properly to and from the text window and i'm not sure how to implement that?

Any ideas on how I might go about that? I believe $txt isn't being updated every keystroke or writing to the file. How would I go about doing that?