Re: mcedit: Is there a way to tell mcedit to start in window mode instead of full screen?

2021-01-16 Thread bcurrey99 via mc
The cascading windows is a very nice idea because you could see all of the 
files that  were opened.But if that is too difficult, dividing the screen into 
two rows of tiled windows (maximum 6 or 8) would be reasonable .Thanks much for 
your better idea. Bob Currey Sent from my Galaxy
 Original message From: Sebastian Gniazdowski via mc 
 Date: 1/16/21  9:13 AM  (GMT-06:00) To: mc@gnome.org Subject: 
Re: mcedit: Is there a way to tell mcedit to start in window mode instead of 
full screen? (I'm replying to the list this time, just ensuring that it's not 
missed)Can I ask for clarification:- when an option, -w for example, will be 
given,- then mc should start with the file's window in windowed (not fullscreen 
mode),- for multiple files, possibly arranged the windows in e.g.: cascading 
way,?I think that this would involve first creating a CK_WindowCascade action 
that would arrange the windows (first exiting fullscreen if needed).On Fri, 15 
Jan 2021 at 14:32, Bob Currey via mc  wrote:
I looked on the --help screen but didn't see an option to open in 
window mode$ mcedit --helpUsage:  mcedit [OPTION…] [+lineno] file1[:lineno] 
[file2[:lineno]...]GNU Midnight Commander 4.8.25-154-g33c84e75eHelp Options:  
-h, --help    Show help options  --help-all    Show all 
help options  --help-terminal   Terminal options  --help-color  
    Color optionsApplication Options:  -V, --version Displays the 
current version  -f, --datadir Print data directory  -F, 
--datadir-info    Print extended info about used data directories  
--configure-options   Print configure options  -P, --printwd=  
Print last working directory to specified file  -U, --subshell    
Enables subshell support (default)  -u, --nosubshell  Disables subshell 
support  -l, --ftplog=   Log ftp dialog to specified file  -v, 
--view= Launches the file viewer on a file  -e, --edit= ... 
    Edit filesPlease send any bug reports (including the output of 'mc -V')as 
tickets at www.midnight-commander.orgMidnight Commander is my favorite "mst 
have" program on my Linux machines. Thanks for all your efforts :)Bob 
Currey___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc
-- Sebastian Gniazdowski
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: mcedit: Is there a way to tell mcedit to start in window mode instead of full screen?

2021-01-16 Thread Sebastian Gniazdowski via mc
(I'm replying to the list this time, just ensuring that it's not missed)

Can I ask for clarification:
- when an option, -w for example, will be given,
- then mc should start with the file's window in windowed (not fullscreen
mode),
- for multiple files, possibly arranged the windows in e.g.: cascading way,
?

I think that this would involve first creating a CK_WindowCascade action
that would arrange the windows (first exiting fullscreen if needed).

On Fri, 15 Jan 2021 at 14:32, Bob Currey via mc  wrote:

> I looked on the --help screen but didn't see an option to open in window
> mode
>
> $ mcedit --help
> Usage:
>   mcedit [OPTION…] [+lineno] file1[:lineno] [file2[:lineno]...]
>
>
> GNU Midnight Commander 4.8.25-154-g33c84e75e
>
>
> Help Options:
>   -h, --helpShow help options
>   --help-allShow all help options
>   --help-terminal   Terminal options
>   --help-color  Color options
>
> Application Options:
>   -V, --version Displays the current version
>   -f, --datadir Print data directory
>   -F, --datadir-infoPrint extended info about used data directories
>   --configure-options   Print configure options
>   -P, --printwd=  Print last working directory to specified file
>   -U, --subshellEnables subshell support (default)
>   -u, --nosubshell  Disables subshell support
>   -l, --ftplog=   Log ftp dialog to specified file
>   -v, --view= Launches the file viewer on a file
>   -e, --edit= ... Edit files
>
>
> Please send any bug reports (including the output of 'mc -V')
> as tickets at www.midnight-commander.org
>
> Midnight Commander is my favorite "mst have" program on my Linux
> machines.
>
> Thanks for all your efforts :)
>
> Bob Currey
>
>
> ___
> mc mailing list
> https://mail.gnome.org/mailman/listinfo/mc
>


-- 
Sebastian Gniazdowski
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: mcedit: Center current line in middle of screen

2021-01-16 Thread Martin Michel
Hi Sebastian,

thank you for sharing this!  In fact, I also digged into the source and
made a quick fix for my needs before I read your last message.  I was
surprised how well the API is crafted, so changing small things directly
in the C source code is probably the way to go for minor features like
this.

> I'm thinking that such feature has a minor drawback which can be
> additionally addressed – it is little offensive, IMO, to human brain
> to observe such jumps.

Personally, I have no need for moving the display slowly or gradually, I
think this adds complexity.  I am a fan of minimalism but fully respect
any efforts to make software more accessible.  So I am curious if you
come up with some changes here, would be interesting.

There is major difference in my patch however — and this is important for
my personal text editing experience:  I mostly feel the need to center
the current line when I am already at the bottom of the buffer, eg.
editing long text or code and the cursor line is both on the bottom of
the window and the buffer.  Therefore I made a hack to redraw the window
when I am in the bottom half of both window and buffer.

Btw, I was also long-time vim and emacs user, but got fed up with many
things in both editors, especially with the complexity and bloat which
came with third-party packages and extensions.  That is why I am still
looking for a replacement and mcedit is indeed on the very top of my
list.

Anyhow, I will upload my patch to your ticket, please feel free to
delete/reuse/modify it for your proposed changes.

Kind regards, 

Martin
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc