Recent

Author Topic: Surf Units in Text Mode Ide  (Read 2884 times)

mosquito

  • Full Member
  • ***
  • Posts: 144
Surf Units in Text Mode Ide
« on: April 24, 2024, 01:58:21 pm »

Using fp ("Text Mode Ide"), when there is a compilation error, I can navigate from the 'Compiler Messages' window to the affected unit.


So, is there a keyboard shortcut to be able to do this from the code editor? . It would be Lazarus-like behavior when doing Ctrl + LM on the name of a unit, procedure, etc
« Last Edit: April 24, 2024, 02:01:40 pm by mosquito »

mika

  • Full Member
  • ***
  • Posts: 107
Re: Surf Units in Text Mode Ide
« Reply #1 on: May 09, 2024, 08:26:16 am »
Ctrl-Enter while cursor is on unit name
It does not work under Linux a like system.

mosquito

  • Full Member
  • ***
  • Posts: 144
Re: Surf Units in Text Mode Ide
« Reply #2 on: May 10, 2024, 06:21:32 pm »

Thanks for the information.
I have a penguin tattoo, bad luck xD.

mika

  • Full Member
  • ***
  • Posts: 107
Re: Surf Units in Text Mode Ide
« Reply #3 on: May 28, 2024, 09:02:04 am »
I found solution. If you are willing to patch up fpc source code, recompile and use a xterm with additional configuration.
Patch in attachment
to apply use command in root of source code:
Code: [Select]
patch -p 1 -i ctrl_enter_xterm_unix_keyboard.diffrecompile example script c.sh
Code: [Select]
export PP=/home/EnterUsername/fpc322/lib/fpc/3.2.2/ppcx64
make singlezipinstall OS_TARGET=linux CPU_TARGET=x86_64  ALLOW_WARNINGS=1 OPT=" -O4 -CpCOREAVX2 -OpCOREAVX2 "
add to /home/EnterUsername/.Xresources
Code: [Select]
xterm*VT100.Translations: #override \
     Shift <KeyPress> Insert: insert() \n\
     Shift <KeyPress> Delete: insert() \n\
    Ctrl Shift <Key>V:    insert-selection(CLIPBOARD) \n\
    Ctrl Shift <Key>C:    copy-selection(CLIPBOARD) \n\
    Ctrl <KeyPress> Return: string(0x0a)
Last line is what do the magic. Shift+Ins and Shift+Del as well will work with this configuration. Log out, log in is required or forced reload of xterm configuration file.
« Last Edit: May 28, 2024, 09:10:04 am by mika »

mosquito

  • Full Member
  • ***
  • Posts: 144
Re: Surf Units in Text Mode Ide
« Reply #4 on: June 01, 2024, 04:36:22 pm »
Thank you so much.

 

TinyPortal © 2005-2018